AN519. Implementing a Simple Serial Mouse Controller. Implementing a Simple Serial Mouse Controller INTRODUCTION THEORY OF OPERATION

Size: px
Start display at page:

Download "AN519. Implementing a Simple Serial Mouse Controller. Implementing a Simple Serial Mouse Controller INTRODUCTION THEORY OF OPERATION"

Transcription

1 A59 Implementing a Simple Serial Mouse Controller ITRODUCTIO The mouse is becoming increasingly popular as a standard pointing data entry device. It is no doubt that the demand of the mouse is increasing. Various kinds of mice can be found in the market, including optical mouse, opto-mechanical mouse, and its close relative, trackball. The mouse interfaces to the host via an RS- 3 port or a dedicated interface card. Their mechanisms are very similar. The major electrical components of a mouse are: Microcontroller Photo-transistors Infrared emitting diode Voltage conversion circuit The intelligence of the mouse is provided by the microcontroller, hence the features and performance of a mouse is greatly related to the microcontroller used. This application note describes the implementation of a serial mouse using the PIC6C54. The PIC6C54 is a high speed 8-bit CMOS microcontroller offered by Microchip Technology Inc. It is an ideal candidate for a mouse controller. THEOR OF OPERATIO A mouse can be divided into several functional blocks: Microcontroller Button detection Motion detection RS-3 signal generation 5V DC power supply unit A typical functional block diagram is shown in Figure. In Figure, three push buttons are connected to the input ports of the PIC6C54. When a switch opening or closure is detected, a message is formatted and sent to the host. The X and movements are measured by counting the pulses generated by the photo-couplers. In the case of an opto-mechanical mouse, the infrared light emitted by the infrared diode is blocked by the rotating wheel, so that the pulses are generated on the phototransistor side. In case of an optical mouse, the infrared light emitted by the infrared diode is reflected off the reflective pad patterned with vertical and horizontal grid lines. It is then received by the photo-transistor in the mouse. When any X or movement is detected, a message is formatted and sent to the host. FIGURE - FUCTIOAL BLOCKS OF A SERIAL MOUSE Quadrature Encoders RS3 PORT OF HOST MICRO- COTROLLER V DC POWER COVERSIO CIRCUITR +5V DC PUSH BUTTOS 993 DS59B-page -7

2 The Microsoft Mouse System and the Mouse Systems device both use serial input techniques. The Mouse System protocol format contains five bytes of data. One byte describes the status of three push buttons, two bytes for the relative X movements and two bytes for the relative movements. The Microsoft protocol format contains three bytes of data describing the status of two push buttons and the relative X and movements. The details of these protocols are given in Table. Three lines are connected to the host via the RS-3 port: Signal Ground Received Data Request to Send Received Data carries the message sent by the mouse. While Request to Send provides a V DC for voltage conversion circuitry. A voltage of +5V DC is required for electronic components inside the mouse, however, +5V DC is not part of an RS-3 port, so voltage conversion circuitry is required. This circuit is typically composed of a 555 timer, Zener diodes, and capacitors. An example circuit is shown in Figure 3. Since the current supplied through the RS-3 port is limited to ma, the mouse cannot be designed to consume more than ma current unless an external power supply is provided. The PIC6C54, running at 4 MHz ( µs instruction cycle) can provide a very high tracking speed. An 8 MHz version of PIC6C54 is also available if higher performance is desired. FIGURE - PIC6C54 PI ASSIGMET +5V DC OSC OSC RB RA RA CLOCK DATA SIGALS FROM -COORD. PHOTO-TRASISTOR RB RB RA RA3 XCLOCK XDATA SIGALS FROM X-COORD. PHOTO-TRASISTOR VDD MCLR RB7 GD RECEIVED DATA PI OF HOST RS3 PORT FIGURE 3 - VOLTAGE COVERSIO CIRCUITR RS3 PORT RTS SIGAL GD RESET VCC OUTPUT DISCHARGE 555 THRESHOLD TRIGGER 33 µf.5 µf K K -V to V V to +V µf 5 K +5V DC OUTPUT DS59B-page

3 ABOUT THE SOFTWARE The major tasks performed by the software are button scanning, X and motion scanning, formatting and sending serial data to the host. These tasks need to be performed in parallel in order to gain better tracking speed. The pulses generated by the photo-couplers are counted while transmitting the serial signals to the RS- 3 port. The number of pulses reflects the speed of the movement. The more number of pulses, the faster the movement is. The directions of the movement are determined by the last states and the present states of the outputs of the photo-transistors. In Figure 4, XCLOCK and XDATA are outputs from the photo-transistors corresponding to the FIGURE 4 - VOLTAGE COVERSIO CIRCUITR X-axis movement. XDATA is read when a rising or a falling edge of XCLOCK is detected. For right movement, XDATA is either LOW at the rising edge of XCLOCK or HIGH at the falling edge of XCLOCK. The up and down movement detections follow the same logic. In Table, X7:X are data for relative movement. If X is positive, it implies that the mouse is moving to the right. If X is negative, it implies a movement to the left. Similarly, if is positive, it indicates that the mouse is moving down and if is negative, it indicates that the mouse is moving up. The pulses generated by the photo-couplers are checked before every bit is sent. A bit takes / second to send, if the distance between the grid lines is mm, the tracking speed will be up to mm/second. XCLOCK (XC) XDATA (XD) MOVE RIGHT MOVE LEFT CLOCK (C) DATA (D) MOVE UP MOVE DOW TABLE - MOUSE SSTEM AD MICROSOFT PROTOCOLS Mouse System Format* Microsoft Format* Bit Position Byte L M R L R 7 6 X7 X6 Byte X7 X6 X5 X4 X3 X X X X5 X4 X3 X X X Byte Byte 4 X7 X6 X5 X4 X3 X X X Byte * L = Left Key Status M = Middle Key Status R = Right Key Status = Pressed = Released X7-X = X-Axis Movement Data 7- = -Axis Movement Data 993 DS59B-page 3-73

4 The buttons are scanned after a message is sent and the time used to send the message is used as the debouncing time. The message is in an RS-3 format with baud, eight data bits, no parity, and two stop bits. The flow charts of the main program, subroutine BTE and subroutine BIT are shown in Figures 5, 6, and 7. Figure 5 shows the Trigger Flag is set when any change of button status or X/ movement is detected. Subroutine BTE is called in the main program five times to send five bytes of information. Subroutine BTE controls the status of the Received Data (RD) pin. If Trigger Flag is clear, RD will always be HIGH. Hence, no message will be sent even when subroutine BTE is called. Figure 7 shows that subroutine BIT counts the number of pulses from outputs of the photo-transistors, determines the directions, and generates / second delay to get baud timing. The mouse has been tested in Mouse System Mode and is functioning properly. A completed listing of the source program is given in Appendix A. SUMMAR The PIC6C54 from provides a very cost-effective, high performance mouse implementation. Its low power (typically < ma at µs instruction cycle), small package (8-pin) and high reliability (on-chip watchdog timer to prevent software hangups) are among several reasons why the PIC6C54 is uniquely suitable for mouse applications. FIGURE 5 - FLOW CHART OF THE MAI PROGRAM Reset Entry Initialize I/O Port - Get Initial Button Status Button Status Change Set Trigger Flag X Movement Count = Set Trigger Flag Right Flag Set egate X Count This application note provides the user with a simple, fully functional serial mouse implementation. The user may use this as a starting point for a more comprehensive design. For fully implemented and compliant mouse products see Microchip's ASSP device family (MTA4XXX). Movement Count = Set Trigger Flag Up Flag Set egate Count Data Button Byte Call Routine Byte Data X-Coor. Byte Call Routine Byte Data -Coor. Byte Call Routine Byte Data X-Coor. Byte Call Routine Byte Data -Coor. Byte Call Routine Byte Set Trigger Flag DS59B-page

5 FIGURE 6 - FLOW CHART OF ROUTIE BTE Byte Count '' Trigger Flag Set '' RD Pin (Start Bit) Call Routine Bit Trigger Flag Set Shift LSB of Data to Carry Carry = / '' RD Pin '' RD Pin Call Routine Bit Count Count + Count = 8 Return to Caller 993 DS59B-page 5-75

6 FIGURE 7 - FLOW CHART OF ROUTIE BIT Bit XC = / XC XC X Count X Count + Reset Right Flag X Count X Count + Reset Right Flag XD = / XD = / Set Right Flag Set Right Flag C = / C C Count Count + Reset Up Flag Count Count + Reset Up Flag D = / D = / Set Up Flag Set Trigger Flag Delay.833 ms Return to Caller DS59B-page

7 APPEDIX A: MPASM B.54 PAGE MOUSE TITLE MOUSE LIST P=6C54,R=O ******************************************* * * * MOUSE COTROLLER * * * * VERSIO : 5 APRIL, 99 * * * * MODE = PIC6C54XT CLK=4.MHZ * ******************************************* FILES ASSIGMET 3 STATUS EQU 3 STATUS REGISTER 5 RA EQU 5 I/O PORT A 6 RB EQU 6 I/O PORT B 8 TIMER EQU COUTER FOR DELA C CSTAT EQU 4 CO-ORDIATE STATUS D BSTAT EQU 5 BUTTO STATUS E DATA EQU 6 F DATA EQU 7 DATA EQU 5 BTE RS3 DATA DATA3 EQU DATA4 EQU 3 FLAGA EQU 3 GEERAL PURPOSE FLAG 4 XCOUT EQU 4 X-MOVEMET COUTER 5 COUT EQU 5 -MOVEMET COUTER 6 FLAGB EQU 6 GEERAL PURPOSE FLAG 8 COUT EQU 3 GEERAL PURPOSE COUTER 9 DATA_AREA EQU 3 FOR TEMP. STORAGE BIT ASSIGMET C EQU -CLOCK PI D EQU -DATA PI UP EQU MOVIG UP FLAG XC EQU X-CLOCK PI 3 XD EQU 3 X-DATA PI 3 RI EQU 3 MOVIG RIGHT FLAG BU EQU BUTTO # PI BU EQU BUTTO # PI CA EQU CARR FLAG 7 RD EQU 7 RECEIVED DATA PI TO RS3 ZERO_AREA EQU ZERO FLAG TR EQU TIGGER FLAG =========================================== SUBROUTIES =========================================== ******************************************* ORG ******************************************* =========================================== DELA A BIT TIME AD CHECK XC & C STATUS =========================================== 993 DS59B-page 7-77

8 BIT 745 BTFSS RA,XC XC = AA GOTO BIT 64C BTFSC CSTAT,XC (XC=) 3 A GOTO BIT (XC ALWAS = ) 4 B4 ICF XCOUT (XC ) BCF FLAGB,RI DEFAULT LEFT BTFSS RA,XD LEFT / RIGHT 7 A GOTO BIT BSF FLAGB,RI 9 A GOTO BIT BIT A 74C BTFSS CSTAT,XC (XC=) B A GOTO BIT (XC ALWAS = ) C B4 ICF XCOUT (XC ) D 476 BCF FLAGB,RI DEFAULT LEFT E 665 BTFSC RA,XD LEFT / RIGHT F A GOTO BIT 576 BSF FLAGB,RI BIT 75 BTFSS RA,C C = AB GOTO BIT 3 6C BTFSC CSTAT,C (C=) 4 A GOTO BITD (C ALWAS = ) 5 B5 ICF COUT (C ) BCF FLAGB,UP DEFAULT DOW 7 75 BTFSS RA,D DOW / UP 8 A GOTO BITD BSF FLAGB,UP A A GOTO BITD BIT B 7C BTFSS CSTAT,C (C=) C A GOTO BITD (C ALWAS = ) D B5 ICF COUT (C ) E 436 BCF FLAGB,UP DEFAULT DOW F 65 BTFSC RA,D DOW / UP A GOTO BITD 536 BSF FLAGB,UP BITD 5 MOVF RA,W SAVE COOR. STATUS 3 C MOVWF CSTAT 4 CC MOVLW 93D.833 MS DELA 5 8 MOVWF TIMER BITD 6 OP 7 E8 DECFSZ TIMER 8 A6 GOTO BITD 9 8 RETLW ================================================= ************************************************ * SUBROUTIE TO SED A BTE * * AS RS3C FORMAT 8,, * ************************************************ BTE A 78 CLRF COUT RESET 8 BIT COUT B 753 BTFSS FLAGA,TR A TRIGGER C AE GOTO BTE D 4E6 BCF RB,RD LOW RD FOR START BIT BTE E 9 CALL BIT BTE F 753 BTFSS FLAGA,TR A TRIGGER 3 A37 GOTO BTE RRF DATA_AREA SHIFT DATA TO CARR 3 73 BTFSS STATUS,CA / 33 A36 GOTO BTE DS59B-page

9 34 5E6 BSF RB,RD SED A 35 A37 GOTO BTE3 BTE 36 4E6 BCF RB,RD SED A BTE CALL BIT 38 B8 ICF COUT BTFSS COUT,3 COUT = 8 3A AF GOTO BTE 3B 753 BTFSS FLAGA,TR A TRIGGER 3C A4 GOTO BTE4 3D 4E6 BCF RB,RD SED SET BIT 3E 9 CALL BIT 3F 5E6 BSF RB,RD 4 9 CALL BIT 4 A44 GOTO BTE5 BTE4 4 9 CALL BIT 43 9 CALL BIT BTE RETLW ============================================ RESET ETR ============================================ IIT 45 CC MOVLW B ' DISABLE WATCH DOG 46 OPTIO 47 CF MOVLW B ' IIT RB~3 BE IPUTS 48 6 TRIS RB RB4~7 BE OUTPUTS 49 CFF MOVLW B ' IIT RA~3 BE IPUTS 4A 5 TRIS RA 4B 5E6 BSF RB,RD HIGH RD PI 4C 46 COMF RB,W GET IIT BUTTO IPUTS 4D E5 ADLW B ' 4E D8 IORLW B ' 4F D MOVWF BSTAT 5 E MOVWF DATA 5 5 MOVF RA,W 5 C MOVWF CSTAT CLRF FLAGA CLEAR TR FLAG CLRF XCOUT RESET XCOUT & COUT CLRF COUT SCA 56 6F CLRF DATA UPDATE X, MOVEMET DATA 57 7 CLRF DATA 58 7 CLRF DATA CLRF DATA4 5A 4 MOVF XCOUT,W XCOUT = 5B 743 BTFSS STATUS,ZERO_AREA 5C A8 GOTO WRITX SCAA 5D 5 MOVF COUT,W COUT = 5E 743 BTFSS STATUS,ZERO_AREA 5F A9 GOTO WRIT SCAB 6 46 COMF RB,W BUTTO STATUS CHAGE 6 E5 ADLW B ' 6 D8 IORLW B ' 63 AD SUBWF BSTAT BTFSC STATUS,ZERO_AREA IF CHAGE THE TRIGGER 65 A6B GOTO SCAC (O CHAGE) BSF FLAGA,TR (CHAGE) SET TRIGGER FLAG COMF RB,W FORMAT BUTTO STATUS DATA 68 E5 ADLW B ' 69 D8 IORLW B ' 993 DS59B-page 9-79

10 6A E MOVWF DATA SCAC 6B 46 COMF RB,W 6C E5 ADLW B ' 6D D8 IORLW B ' 6E D MOVWF BSTAT 6F E MOVF DATA,W SED DATA,,,3,4 TO HOST 7 39 MOVWF DATA_AREA 7 9A CALL BTE 7 F MOVF DATA,W MOVWF DATA_AREA 74 9A CALL BTE 75 MOVF DATA,W MOVWF DATA_AREA 77 9A CALL BTE 78 MOVF DATA3,W MOVWF DATA_AREA 7A 9A CALL BTE 7B MOVF DATA4,W 7C 39 MOVWF DATA_AREA 7D 9A CALL BTE 7E 453 BCF FLAGA,TR CLEAR TRIGGER FLAG 7F A56 GOTO SCA WRITX BSF FLAGA,TR SET TRIGGER FLAG 8 C4 MOVLW 4H IF XCOUT > 64 THE XCOUT < SUBWF XCOUT,W BTFSC STATUS,CA 84 A8D GOTO WRITR WRITS BTFSS FLAGB,RI LEFT / RIGHT 86 A9 GOTO WRITL COMF XCOUT (RIGHT) EG XCOUT ICF XCOUT,W WRITA 89 F MOVWF DATA 8A 3 MOVWF DATA3 8B 74 CLRF XCOUT RESET XCOUT 8C A5D GOTO SCAA WRITR 8D C4 MOVLW 4H XCOUT <- 64 8E 34 MOVWF XCOUT 8F A85 GOTO WRITS WRITL 9 4 MOVF XCOUT,W (LEFT) 9 A89 GOTO WRITA WRIT BSF FLAGA,TR SET TRIGGER FLAG 93 C4 MOVLW 4H IF COUT > 64 THE COUT < SUBWF COUT,W BTFSC STATUS,CA 96 A9F GOTO WRITV WRITW BTFSS FLAGB,UP DOW / UP 98 AA GOTO WRITD COMF COUT (UP) EG COUT 9A 95 ICF COUT,W WRITB 9B 3 MOVWF DATA 9C 3 MOVWF DATA4 9D 75 CLRF COUT RESET COUT 9E A6 GOTO SCAB DS59B-page

11 WRITV 9F C4 MOVLW 4H COUT <- 64 A 35 MOVWF COUT A A97 GOTO WRITW WRITD A 5 MOVF COUT,W (DOW) A3 A9B GOTO WRITB =========================================== RESET ETR =========================================== ORG 777 FF A45 GOTO IIT JUMP TO PROGRAM STARTIG ED ******************************************** Errors : Warnings : 993 DS59B-page -8

12 OTES: DS59B-page

13 WORLDWIDE SALES & SERVICE AMERICAS Corporate Office 355 West Chandler Blvd. Chandler, AZ Tel: Fax: Technical Support: Web: Atlanta 5 Sugar Mill Road, Suite B Atlanta, GA 335 Tel: Fax: Boston 5 Mount Royal Avenue Marlborough, MA 75 Tel: Fax: Chicago 333 Pierce Road, Suite 8 Itasca, IL 643 Tel: Fax: Dallas 465 Dallas Parkway, Suite 86 Dallas, TX Tel: Fax: Dayton 35 Rockridge Road Englewood, OH 453 Tel: Fax: Los Angeles 8 Von Karman, Suite 455 Irvine, CA 975 Tel: Fax: ew ork 5 Motor Parkway, Suite 46 Hauppauge, 788 Tel: Fax: AMERICAS (continued) San Jose 7 orth First Street, Suite 59 San Jose, CA 953 Tel: Fax: ASIA/PACIFIC Hong Kong Microchip Technology Unit o. 3-34, Tower Metroplaza 3 Hing Fong Road Kwai Fong,.T. Hong Kong Tel: 85 4 Fax: Korea Microchip Technology 68-, oungbo Bldg. 3 Floor Samsung-Dong, Kangnam-Ku, Seoul, Korea Tel: Fax: Singapore Microchip Technology Middle Road #-3 Prime Centre Singapore 8898 Tel: Fax: Taiwan Microchip Technology F-C 7 Tung Hua orth Road Taipei, Taiwan, ROC Tel: Fax: EUROPE United Kingdom Arizona Microchip Technology Ltd. Unit 6, The Courtyard Meadow Bank, Furlong Road Bourne End, Buckinghamshire SL8 5AJ Tel: Fax: France Arizona Microchip Technology SARL Rue du Buisson aux Fraises 93 Massy - France Tel: Fax: Germany Arizona Microchip Technology GmbH Gustav-Heinemann-Ring 5 D-8739 Muenchen, Germany Tel: Fax: Italy Arizona Microchip Technology SRL Centro Direzionale Colleoni Palazzo Pegaso Ingresso o. Via Paracelso 3, 4 Agrate Brianza (MI) Italy Tel: Fax: JAPA Microchip Technology Intl. Inc. Benex S- 6F 3-8-, Shin okohama Kohoku-Ku, okohama Kanagawa Japan Tel: Fax: //95 All rights reserved. 995, Microchip Technology Incorporated, USA. Information contained in this publication regarding device applications and the like is intended through suggestion only and may be superseded by updates. o representation or warranty is given and no liability is assumed by Microchip Technology Incorporated with respect to the accuracy or use of such information, or infringement of patents or other intellectual property rights arising from such use or otherwise. Use of Microchip s products as critical components in life support systems is not authorized except with express written approval by Microchip. o licenses are conveyed, implicitly or otherwise, under any intellectual property rights. The Microchip logo and name are registered trademarks of All rights reserved. All other trademarks mentioned herein are the property of their respective companies.

Techniques to Disable Global Interrupts

Techniques to Disable Global Interrupts Techniques to Disable Global Interrupts AN576 This application brief discusses four methods for disabling global interrupts. The method best suited for the application may then be used. All discussion

More information

FIGURE 1 - TABLE READ

FIGURE 1 - TABLE READ Implementing Table Read and Table Write AN548 INTRODUCTION This application brief discusses how to read data from program memory to data memory and write data from data memory to program memory. RETLW

More information

AN519. Implementing a Simple Serial Mouse Controller INTRODUCTION THEORY OF OPERATION FUNCTIONAL BLOCKS OF A SERIAL MOUSE

AN519. Implementing a Simple Serial Mouse Controller INTRODUCTION THEORY OF OPERATION FUNCTIONAL BLOCKS OF A SERIAL MOUSE Implementing a Simple Serial Mouse Controller INTRODUCTION The mouse is becoming increasingly popular as a standard pointing data entry device. There is no doubt that the demand for the mouse is increasing.

More information

AN551. Serial EEPROM Solutions vs. Parallel Solutions. Serial EEPROM Solutions vs. Parallel Solutions PARALLEL NON-VOLATILE MEMORIES SERIAL EEPROMS

AN551. Serial EEPROM Solutions vs. Parallel Solutions. Serial EEPROM Solutions vs. Parallel Solutions PARALLEL NON-VOLATILE MEMORIES SERIAL EEPROMS AN551 Serial EEPROM Solutions vs. Parallel Solutions In searching for solutions to their system non-volatile memory requirements, equipment, systems and product designers are faced with a plethora of design

More information

M Floating Point to ASCII Conversion

M Floating Point to ASCII Conversion M Floating Point to ASCII Conversion AN670 Authors: INTRODUCTION It is often necessary to output a floating point number to a display. For example, to check calculations, one might want to output floating

More information

TB011. Using SRAM With A PIC16CXXX IMPLEMENTATION INTRODUCTION BLOCK DIAGRAM OF MULTIPLEXED ADDRESS/DATA BUS ON A PIC16C74

TB011. Using SRAM With A PIC16CXXX IMPLEMENTATION INTRODUCTION BLOCK DIAGRAM OF MULTIPLEXED ADDRESS/DATA BUS ON A PIC16C74 Using SRAM With A PIC16CXXX TB011 Author: Rick Evans INTRODUCTION There are applications where a significant amount of data memory is required beyond what is in the microcontroller. For example, buffering

More information

ICSP Socket Module User s Guide

ICSP Socket Module User s Guide ICSP Socket Module User s Guide Information contained in this publication regarding device applications and the like is intended through suggestion only and may be superseded by updates. No representation

More information

TB004. Automatic Calibration of the WDT Time-out Period CONCLUSION INTRODUCTION IMPLEMENTATION FIGURE 1: PROGRAM FLOWCHART

TB004. Automatic Calibration of the WDT Time-out Period CONCLUSION INTRODUCTION IMPLEMENTATION FIGURE 1: PROGRAM FLOWCHART This document was created with FrameMaker 404 TB004 Automatic Calibration of the WDT Time-out Period Author: INTRODUCTION Stan D Souza Advanced Microcontroller Technology Division The WDT timer is a simple

More information

Electromechanical Switch Replacement Smart Switch for Automotive Applications and More

Electromechanical Switch Replacement Smart Switch for Automotive Applications and More Electromechanical Switch Replacement Smart Switch for Automotive Applications and More Author: Marc Hoffknecht Aachen, Germany email: hoffknecht@online.de INTELLIGENT PUSH BUTTON FOR AIR CONTROL AND MORE

More information

AN514. Software Interrupt Techniques CREATING CONSTANT TIME POLLING INTRODUCTION THEORY OF OPERATION

AN514. Software Interrupt Techniques CREATING CONSTANT TIME POLLING INTRODUCTION THEORY OF OPERATION Software Techniques AN514 INTRODUCTION This application note describes a unique method for implementing interrupts in software on the PIC16C5X series of microcontrollers. This method takes advantage of

More information

28C64A. 64K (8K x 8) CMOS EEPROM PACKAGE TYPE FEATURES DESCRIPTION BLOCK DIAGRAM

28C64A. 64K (8K x 8) CMOS EEPROM PACKAGE TYPE FEATURES DESCRIPTION BLOCK DIAGRAM 64K (8K x 8) CMOS EEPROM 28C64A FEATURES Fast Read Access Time 150 ns CMOS Technology for Low Power Dissipation - 30 ma Active - 100 µa Standby Fast Byte Write Time 200 µs or 1 ms Data Retention >200 years

More information

Electromechanical Switch Replacement Smart Switch for Car Windscreen Wiper Control

Electromechanical Switch Replacement Smart Switch for Car Windscreen Wiper Control Electromechanical Switch Replacement Smart Switch for Car Windscreen Wiper Control Author: Marc Hoffknecht Aachen, Germany email: hofknecht@online.de OPERATION FLOWCHART dry wet windscreen unit on PIC12C508

More information

PIC16C5X Disassembler

PIC16C5X Disassembler PIC16C5X Disassembler Electromechanical Timer Replacements Author: PROGRAM DEFINITION DIS16 is an intelligent and easy-to-use disassembler for PIC16C5X microcontrollers. It produces a compact assembler

More information

16K (2K x 8) CMOS EEPROM I/O0 I/O1 I/O2. Vcc NC NC A7 A6 A5 A4 A3 A Microchip Technology Inc. DS11125G-page 1

16K (2K x 8) CMOS EEPROM I/O0 I/O1 I/O2. Vcc NC NC A7 A6 A5 A4 A3 A Microchip Technology Inc. DS11125G-page 1 This document was created with FrameMaker 404 16K (2K x 8) CMOS EEPROM 28C16A FEATURES Fast Read Access Time 150 ns CMOS Technology for Low Power Dissipation - 30 ma Active - 100 µa Standby Fast Byte Write

More information

59C11. 1K 5.0V Microwire Serial EEPROM PACKAGE TYPES FEATURES DESCRIPTION BLOCK DIAGRAM. This document was created with FrameMaker 404

59C11. 1K 5.0V Microwire Serial EEPROM PACKAGE TYPES FEATURES DESCRIPTION BLOCK DIAGRAM. This document was created with FrameMaker 404 This document was created with FrameMaker 404 1K 5.0V Microwire Serial EEPROM 59C11 FEATURES Low power CMOS technology Pin selectable memory organization - 128 x 8 or 64 x 16 bit organization Single 5V

More information

How to Implement ICSP Using PIC17CXXX OTP MCUs PIC17CXXX IN-CIRCUIT SERIAL PROGRAMMING USING TABLE WRITE INSTRUCTIONS VPP 13V

How to Implement ICSP Using PIC17CXXX OTP MCUs PIC17CXXX IN-CIRCUIT SERIAL PROGRAMMING USING TABLE WRITE INSTRUCTIONS VPP 13V TB015 How to Implement ICSP Using PIC17CXXX OTP MCUs Author: INTRODUCTION Stan D Souza PIC17CXXX microcontroller (MCU) devices can be serially programmed using an RS-232 or equivalent serial interface.

More information

28C17A. 16K (2K x 8) CMOS EEPROM PACKAGE TYPES FEATURES DESCRIPTION BLOCK DIAGRAM. This document was created with FrameMaker 404

28C17A. 16K (2K x 8) CMOS EEPROM PACKAGE TYPES FEATURES DESCRIPTION BLOCK DIAGRAM. This document was created with FrameMaker 404 This document was created with FrameMaker 404 16K (2K x 8) CMOS EEPROM 28C17A FEATURES Fast Read Access Time 150 ns CMOS Technology for Low Power Dissipation - 30 ma Active - 100 µa Standby Fast Byte Write

More information

TB026. Calculating Program Memory Checksums Using a PIC16F87X ACCESSING MEMORY INTRODUCTION. PIC16C7X vs. PIC16F87X. Microchip Technology Inc.

TB026. Calculating Program Memory Checksums Using a PIC16F87X ACCESSING MEMORY INTRODUCTION. PIC16C7X vs. PIC16F87X. Microchip Technology Inc. M TB026 Calculating Program Memory Checksums Using a PIC16F87X Author: INTRODUCTION Many applications require the microcontroller to calculate a checksum on the program memory to determine if the contents

More information

AN536. Basic Serial EEPROM Operation. Basic Serial EEPROM Operation BASIC SERIAL EEPROM OPERATION CONTENTS SERIAL EEPROM APPLICATIONS

AN536. Basic Serial EEPROM Operation. Basic Serial EEPROM Operation BASIC SERIAL EEPROM OPERATION CONTENTS SERIAL EEPROM APPLICATIONS Basic Serial EEPROM Operation AN536 BASIC SERIAL EEPROM OPERATION Looking for the optimum non-volatile memory product for your system that requires a small footprint, byte level flexibility, low power,

More information

PIC16F84A. PIC16F84A Errata Sheet

PIC16F84A. PIC16F84A Errata Sheet M PIC16F84A Errata Sheet PIC16F84A The PIC16F84A parts you have received conform functionally to the Device Data Sheet (DS35007A), except for the anomalies described below. None. 2001 Microchip Technology

More information

Electromechanical Timer Replacement

Electromechanical Timer Replacement Electromechanical Timer Replacement Reminder Timer for Changing Chemicals in a Water Softener (IRON) Author: Michael MacDonald Mikaurie Prescott, WI USA email: mikemd@pressenter.com APPLICATION OPERATION:

More information

TC642DEMO FAN CONTROL MODULE FOR TC642/646 FEATURES GENERAL DESCRIPTION BOARD SCHEMATIC

TC642DEMO FAN CONTROL MODULE FOR TC642/646 FEATURES GENERAL DESCRIPTION BOARD SCHEMATIC FAN CONTROL MODULE FOR TC642/646 FEATURES Complete Implementation of TC642 or TC646 Fan Control Circuitry on a 1.5" x 2.0" Board Works with Standard Thermistors Temperature-proportional Fan Speed Control

More information

Section 35. Glossary

Section 35. Glossary M Section 35. A A/D See Analog to Digital. Acquisition Time (TACQ) This is related to Analog to Digital (A/D) converters. This is the time that the A/D s holding capacitor acquires the analog input voltage

More information

TB004. Automatic Calibration of the WDT Time-out Period CONCLUSION INTRODUCTION IMPLEMENTATION FIGURE 1: PROGRAM FLOWCHART

TB004. Automatic Calibration of the WDT Time-out Period CONCLUSION INTRODUCTION IMPLEMENTATION FIGURE 1: PROGRAM FLOWCHART This document was created with FrameMaker 404 TB004 Automatic Calibration of the WDT Time-out Period Author: INTRODUCTION Stan D Souza Advanced Microcontroller Technology Division The WDT timer is a simple

More information

AN530. Interfacing 93 Series Serial EEPROMs. Interfacing 93CX6 Serial EEPROMs to PIC16C5X Microcontrollers INTRODUCTION THE HARDWARE CONNECTION

AN530. Interfacing 93 Series Serial EEPROMs. Interfacing 93CX6 Serial EEPROMs to PIC16C5X Microcontrollers INTRODUCTION THE HARDWARE CONNECTION AN530 Interfacing 93CX6 Serial EEPROMs to PIC16C5X Microcontrollers INTRODUCTION Microchip Technology Inc. s popular 93C46/56/66 and 93LC46/56/66 Serial EEPROMs feature a three/four wire serial interface

More information

Using the 8-Bit Parallel Slave Port

Using the 8-Bit Parallel Slave Port M AN579 Using the 8-Bit Parallel Slave Port Author: INTRODUCTION PIC16C64/74 microcontrollers from Microchip Technology Inc. can be interfaced with ease into a multi-microprocessor environment using its

More information

PIC17C7XX. PIC17C7XX Data Sheet Errata. Voltage. Frequency. Voltage. Frequency. Clarifications/Corrections to the Data Sheet:

PIC17C7XX. PIC17C7XX Data Sheet Errata. Voltage. Frequency. Voltage. Frequency. Clarifications/Corrections to the Data Sheet: M PIC17C7XX PIC17C7XX Data Sheet Errata Clarifications/Corrections to the Data Sheet: In the Device Data Sheet (DS30289B), the following clarifications and corrections should be noted. 1. Module: Electrical

More information

PIC16F872 Rev. A2 Silicon Errata Sheet. As with any windowed EPROM device, please cover the window at all times, except when erasing.

PIC16F872 Rev. A2 Silicon Errata Sheet. As with any windowed EPROM device, please cover the window at all times, except when erasing. PIC16F872 Rev. A2 Silicon Errata Sheet The PIC16F872 Rev. A2 parts you have received conform functionally to the Device Data Sheet (DS30221A), except for the anomalies described below. All the problems

More information

How to Implement ICSP Using PIC16CXXX OTP MCUs VDD. MCLR/VPP ICSP Connector. To application circuit Isolation circuits

How to Implement ICSP Using PIC16CXXX OTP MCUs VDD. MCLR/VPP ICSP Connector. To application circuit Isolation circuits TB013 How to Implement ICSP Using PIC16CXXX OTP MCUs Author: Rodger Richey INTRODUCTION In-Circuit Serial Programming (ICSP ) is a great way to reduce your inventory overhead and time-to-market for your

More information

PIC16C54C/55A/56A/57C/58B

PIC16C54C/55A/56A/57C/58B PIC16C54C/55A/56A/57C/58B (Rev. A Silicon) Errata Sheet The PIC16C54C/55A/56A/57C/58B (Rev. A Silicon ONLY) parts you have received conform functionally to the PIC16C5X Device Data Sheet (DS30453D), except

More information

Serial Port Utilities

Serial Port Utilities Serial Port Utilities AN57 INTRODUCTION PIC17C2 has an on chip high speed Universal Synchronous Asynchronous Receiver Transmitter (USART). The serial port can be configured to operate either in fullduplex

More information

AN602. How to get 10 Million Cycles out of your Microchip Serial EEPROM 10 MILLION CYCLE GUARENTEE INTRODUCTION ENDURANCE. Thi d t t d ith F M k 4 0 4

AN602. How to get 10 Million Cycles out of your Microchip Serial EEPROM 10 MILLION CYCLE GUARENTEE INTRODUCTION ENDURANCE. Thi d t t d ith F M k 4 0 4 Thi d t t d ith F M k 4 0 4 AN602 How to get 10 Million Cycles out of your Microchip Serial EEPROM Author: INTRODUCTION Microchip Technology Incorporated recently became the first manufacturer of Serial

More information

Optimizing Serial Bus Operations with Proper Write Cycle Times

Optimizing Serial Bus Operations with Proper Write Cycle Times AN559 Optimizing Serial Bus Operations with Proper Write Cycle Times SERIAL EEPROM WRITE TIME REQUIREMENTS Elements of the Write Cycle Time The total write operation time for a Serial EEPROM is determined

More information

Embedded Systems. PIC16F84A Sample Programs. Eng. Anis Nazer First Semester

Embedded Systems. PIC16F84A Sample Programs. Eng. Anis Nazer First Semester Embedded Systems PIC16F84A Sample Programs Eng. Anis Nazer First Semester 2017-2018 Development cycle (1) Write code (2) Assemble / compile (3) Simulate (4) Download to MCU (5) Test Inputs / Outputs PIC16F84A

More information

TB033. Using the PIC16F877 To Develop Code For PIC16CXXX Devices INTRODUCTION. Stan D Souza, Rodger Richey Microchip Technology Inc.

TB033. Using the PIC16F877 To Develop Code For PIC16CXXX Devices INTRODUCTION. Stan D Souza, Rodger Richey Microchip Technology Inc. Using the PIC16F877 To Develop Code For PIC16CXXX Devices TB033 Authors: INTRODUCTION Stan D Souza, Rodger Richey With the release of the FLASH-based PIC16F87X family, Microchip Technology has completed

More information

93C66A/B. 4K 5.0V Automotive Temperature Microwire Serial EEPROM FEATURES PACKAGE TYPE BLOCK DIAGRAM DESCRIPTION

93C66A/B. 4K 5.0V Automotive Temperature Microwire Serial EEPROM FEATURES PACKAGE TYPE BLOCK DIAGRAM DESCRIPTION 查询 93C66A 供应商 捷多邦, 专业 PCB 打样工厂,24 小时加急出货 M 4K 5.0V Automotive Temperature Microwire Serial EEPROM FEATURES Single supply 5.0V operation Low power CMOS technology - 1 ma active current (typical) - 1 µa

More information

PIC16F872 Rev. A0 Silicon Errata Sheet. As with any windowed EPROM device, please cover the window at all times, except when erasing.

PIC16F872 Rev. A0 Silicon Errata Sheet. As with any windowed EPROM device, please cover the window at all times, except when erasing. PIC16F872 Rev. A0 Silicon Errata Sheet The PIC16F872 (Rev. A0) parts you have received conform functionally to the Device Data Sheet (DS30221A), except for the anomalies described below. All of the problems

More information

PIC16F87X. PIC16F87X Rev. B3 Silicon Errata Sheet DC SPECIFICATION CHANGES FROM DATA SHEET

PIC16F87X. PIC16F87X Rev. B3 Silicon Errata Sheet DC SPECIFICATION CHANGES FROM DATA SHEET PIC16F87X Rev. B3 Silicon Errata Sheet The PIC16F87X (Rev. B3) parts you have received conform functionally to the Device Data Sheet (DS30292A), except for the anomalies described below. All the problems

More information

MPLAB ICE. Processor Module and Device Adapter Specification 2.0 TERMINOLOGY CONTENTS 1.0 INTRODUCTION SYSTEM. 2.1 Host to Pod Cable. 2.

MPLAB ICE. Processor Module and Device Adapter Specification 2.0 TERMINOLOGY CONTENTS 1.0 INTRODUCTION SYSTEM. 2.1 Host to Pod Cable. 2. MPLAB ICE Processor Module and Device Adapter Specification CONTENTS 1.0 INTRODUCTION... 1 2.0 TERMINOLOGY... 1 3.0 PROCESSOR MODULES... 2 4.0 EMULATOR-RELATED ISSUES... 4 5.0 DEVICE ADAPTER ISSUES...

More information

M 25AA640/25LC640/25C640

M 25AA640/25LC640/25C640 M 25AA640/25LC640/25C640 64K SPI Bus Serial EEPROM DEVICE SELECTION TABLE Part Number FEATURES Low power CMOS technology - Write current: 3 ma typical - Read current: 500 µa typical - Standby current:

More information

ICSP SOCKET MODULE USER S GUIDE

ICSP SOCKET MODULE USER S GUIDE M ICSP SOCKET MODULE USER S GUIDE 2002 Microchip Technology Inc. DS51113D All rights reserved. Copyright 2002, Microchip Technology Incorporated, USA. Information contained in this publication regarding

More information

Lesson 14. Title of the Experiment: Introduction to Microcontroller (Activity number of the GCE Advanced Level practical Guide 27)

Lesson 14. Title of the Experiment: Introduction to Microcontroller (Activity number of the GCE Advanced Level practical Guide 27) Lesson 14 Title of the Experiment: Introduction to Microcontroller (Activity number of the GCE Advanced Level practical Guide 27) Name and affiliation of the author: N W K Jayatissa Department of Physics,

More information

PS4200EV. PS4200 Evaluation Kit 1.0 INTRODUCTION. 1.1 Evaluation Kit Contents

PS4200EV. PS4200 Evaluation Kit 1.0 INTRODUCTION. 1.1 Evaluation Kit Contents PS4200 Evaluation Kit PS4200EV 1.0 INTRODUCTION The PS4200EV evaluation kit provides the opportunity to evaluate the PS402 IC quickly and easily. The evaluation kit contains all of the hardware and software

More information

TB028. Technique to Calculate Day of Week DESCRIPTION OF SOFTWARE INTRODUCTION THEORY OF CALCULATION. Microchip Technology Inc.

TB028. Technique to Calculate Day of Week DESCRIPTION OF SOFTWARE INTRODUCTION THEORY OF CALCULATION. Microchip Technology Inc. M Technique to Calculate Day of Week TB028 Author: INTRODUCTION Tan Beng Hai Basically, there are two kinds of electronic systems that come with a built-in calendar. The first kind of system is used mainly

More information

AN767. Interfacing Microchip's Fan Speed Controllers to a SPI Port STANDARD IMPLEMENTATION INTRODUCTION

AN767. Interfacing Microchip's Fan Speed Controllers to a SPI Port STANDARD IMPLEMENTATION INTRODUCTION Interfacing Microchip's Speed Controllers to a SPI Port Author: INTRODUCTION Paul Paglia, Microchip Technology, Inc. Microchip's TC642, TC643, and TC646 are the world's first integrated circuits dedicated

More information

AN586. Macros for Page and Bank Switching INTRODUCTION

AN586. Macros for Page and Bank Switching INTRODUCTION Macros for Page and Bank Switching Author: Mark Palmer Microchip Technology Inc. Contributions: Mike Morse Sr. Field Applications Engineer (Dallas) INTRODUCTION This application note discusses the use

More information

Simplifying External Memory Connections of PIC17CXXX PICmicro Microcontrollers. FIGURE 1: EXTERNAL MEMORY INTERFACE BLOCK DIAGRAM (x16 DEVICES)

Simplifying External Memory Connections of PIC17CXXX PICmicro Microcontrollers. FIGURE 1: EXTERNAL MEMORY INTERFACE BLOCK DIAGRAM (x16 DEVICES) Simplifying External Memory Connections of PIC17CXXX PICmicro Microcontrollers TB027 Author: Rodger Richey INTRODUCTION The PIC17CXXX family of PICmicro microcontrollers has an external program memory

More information

PIC16C745/765. PIC16C745/765 Rev. A2 Silicon/Data Sheet Errata

PIC16C745/765. PIC16C745/765 Rev. A2 Silicon/Data Sheet Errata Rev. A2 Silicon/Data Sheet Errata The (Rev. A2) parts you have received conform functionally to the Device Data Sheet (DS41124C), except for the anomalies described below. None. Note: The silicon revision

More information

AN613. Using Microchip 93 Series Serial EEPROMs with Microcontroller SPI Ports INTRODUCTION THEORY OF OPERATION. Thi d t t d ith F M k 4 0 4

AN613. Using Microchip 93 Series Serial EEPROMs with Microcontroller SPI Ports INTRODUCTION THEORY OF OPERATION. Thi d t t d ith F M k 4 0 4 Thi d t t d ith F M k 4 0 4 AN613 Using Microchip 93 Series Serial EEPROMs with Microcontroller SPI Ports Author: INTRODUCTION Keith Pazul Memory and ASSP Division Systems requiring embedded control are

More information

Discrete Logic Replacement A Keypad Controller for Bi-directional Key Matrix

Discrete Logic Replacement A Keypad Controller for Bi-directional Key Matrix A Keypad Controller for Bi-directional Key Matrix Author: Vladimir Velchev AVEX - Vladimir Velchev Sofia, Bulgaria email:avex@iname.com APPLICATION OPERATION: The PIC microcontroller can replace the traditional

More information

Chapter 4 Sections 1 4, 10 Dr. Iyad Jafar

Chapter 4 Sections 1 4, 10 Dr. Iyad Jafar Starting to Program Chapter 4 Sections 1 4, 10 Dr. Iyad Jafar Outline Introduction Program Development Process The PIC 16F84A Instruction Set Examples The PIC 16F84A Instruction Encoding Assembler Details

More information

FIGURE 1 - TIMER3 WITH PERIOD REGISTER AND SINGLE CAPTURE REGISTER

FIGURE 1 - TIMER3 WITH PERIOD REGISTER AND SINGLE CAPTURE REGISTER Using the Capture Module AN545 INTRODUCTION The PIC16/17 family of RISC-like microcontrollers has been designed to provide advanced performance and a cost-effective solution for a variety of applications.

More information

A Better Mouse Trap. Consumer Appliance, Widget, Gadget APPLICATION OPERATION: Ontario, Canada

A Better Mouse Trap. Consumer Appliance, Widget, Gadget APPLICATION OPERATION: Ontario, Canada A Better Mouse Trap Author: APPLICATION OPERATION: My application uses a PIC12C508 to produce realistic sounding mouse-like coos that all mice are sure to find seductive. The entire circuit should be imbedded

More information

AN583. Implementation of the Data Encryption Standard Using PIC17C42 KEY SCHEDULE INTRODUCTION THE DATA ENCRYPTION STANDARD

AN583. Implementation of the Data Encryption Standard Using PIC17C42 KEY SCHEDULE INTRODUCTION THE DATA ENCRYPTION STANDARD Implementation of the Data Encryption Standard Using PIC17C42 Authors: INTRODUCTION Al Lovrich Mark Palmer Microchip Technology Inc. In January 1977, The United States government adopted a product cipher

More information

DERTS Design Requirements (1): Microcontroller Architecture & Programming

DERTS Design Requirements (1): Microcontroller Architecture & Programming Lecture (5) DERTS Design Requirements (1): Microcontroller Architecture & Programming Prof. Kasim M. Al-Aubidy Philadelphia University 1 Lecture Outline: Features of microcomputers and microcontrollers.

More information

Improving the Susceptibility of an Application to ESD HIGH VOLTAGE POWER SUPPLY 5V POWER SUPPLY PIN VSS

Improving the Susceptibility of an Application to ESD HIGH VOLTAGE POWER SUPPLY 5V POWER SUPPLY PIN VSS Thi d t t d ith F M k 4 4 Improving the Susceptibility of an Application to ESD Author: David Wilkie Reliability Engineering INDUCED LATCH-UP All semiconductor devices are sensitive to electrostatic discharge

More information

AN609. Interfacing Microchip Serial EEPROMs to Motorola 68HC11 Microcontroller INTRODUCTION. Thi d t t d ith F M k Memory and ASSP Division

AN609. Interfacing Microchip Serial EEPROMs to Motorola 68HC11 Microcontroller INTRODUCTION. Thi d t t d ith F M k Memory and ASSP Division Thi d t t d ith F M k 4 0 4 AN609 Interfacing Microchip Serial EEPROMs to Motorola 68HC11 Microcontroller Author: INTRODUCTION Keith Pazul Memory and ASSP Division There are many different microcontrollers

More information

AN713. Controller Area Network (CAN) Basics INTRODUCTION CAN PROTOCOL BASICS CAN OVERVIEW

AN713. Controller Area Network (CAN) Basics INTRODUCTION CAN PROTOCOL BASICS CAN OVERVIEW Controller Area Network (CAN) Basics AN713 Author: INTRODUCTION Controller Area Network (CAN) was initially created by German automotive system supplier Robert Bosch in the mid-1980s for automotive applications

More information

M Using Timer1 in Asynchronous Clock Mode

M Using Timer1 in Asynchronous Clock Mode M Using Timer1 in Asynchronous Clock Mode AN580 Author INTRODUCTION This application note discusses the use of the PIC16CXXX Timer1 module as an asynchronous clock. The Timer1 module has it own oscillator

More information

When JP1 is cut, baud rate is Otherwise, baud rate is Factory default is that JP1 is shorted. (JP1 is jumper type in some model)

When JP1 is cut, baud rate is Otherwise, baud rate is Factory default is that JP1 is shorted. (JP1 is jumper type in some model) ELCD SERIES INTRODUCTION ALCD is Serial LCD module which is controlled through Serial communication. Most of existing LCD adopts Parallel communication which needs lots of control lines and complicated

More information

TB042. Interfacing a KEELOQ Encoder to a PLL Circuit THE RF ENABLE OUTPUT OVERVIEW WHY USE A PLL HCS362 INTERFACE INTERFACING TO PLLS

TB042. Interfacing a KEELOQ Encoder to a PLL Circuit THE RF ENABLE OUTPUT OVERVIEW WHY USE A PLL HCS362 INTERFACE INTERFACING TO PLLS Interfacing a KEELOQ Encoder to a PLL Circuit Author: OVERVIEW Most of the recently introduced advanced KEELOQ Encoders, like the HCS362, HCS365, HCS370 and HCS412, have provisions for controlling a multiple

More information

EVALUATION KIT FOR TC642/TC646/TC647/TC648/TC649 BDC FAN CONTROLLERS

EVALUATION KIT FOR TC642/TC646/TC647/TC648/TC649 BDC FAN CONTROLLERS EVALUATION KIT FOR TC64/TC646/TC647/TC648/TC649 BDC FAN CONTROLLERS FEATURES Complete Evaluation / Prototyping Vehicle for Microchip s TC64, TC646,TC647, TC648 and TC649 BDC Fan Controllers Works with

More information

PIC16F87X 13.0 INSTRUCTION SET SUMMARY INSTRUCTIONS DESCRIPTIONS

PIC16F87X 13.0 INSTRUCTION SET SUMMARY INSTRUCTIONS DESCRIPTIONS PIC6F87X 3.0 INSTRUCTION SET SUMMARY Each PIC6F87X instruction is a 4bit word, divided into an OPCODE which specifies the instruction type and one or more operands which further specify the operation of

More information

Assembly Language Instructions

Assembly Language Instructions Assembly Language Instructions Content: Assembly language instructions of PIC16F887. Programming by assembly language. Prepared By- Mohammed Abdul kader Assistant Professor, EEE, IIUC Assembly Language

More information

Silicon Epitaxial Planar Zener Diode for Stabilized Power Supply. Type No. Mark Package Code HZS Series Type No. MHD B 7

Silicon Epitaxial Planar Zener Diode for Stabilized Power Supply. Type No. Mark Package Code HZS Series Type No. MHD B 7 Silicon Epitaxial Planar Zener Diode for Stabilized Power Supply Features REJ3G184-3Z (Previous: ADE-28-12B) Rev.3. Mar.11.24 Low leakage, low zener impedance and maximum power dissipation of 4 mw are

More information

SOLUTIONS!! DO NOT DISTRIBUTE!!

SOLUTIONS!! DO NOT DISTRIBUTE!! THE UNIVERSITY OF THE WEST INDIES EXAMINATIONS OF FEBRUARY MID-TERM 2005 Code and Name of Course: EE25M Introduction to Microprocessors Paper: Date and Time: Duration: One Hour INSTRUCTIONS TO CANDIDATES:

More information

Dept. of Computer Engineering Final Exam, First Semester: 2016/2017

Dept. of Computer Engineering Final Exam, First Semester: 2016/2017 Philadelphia University Faculty of Engineering Course Title: Embedded Systems (630414) Instructor: Eng. Anis Nazer Dept. of Computer Engineering Final Exam, First Semester: 2016/2017 Student Name: Student

More information

In-Circuit Serial Programming (ICSP ) for PIC16C715 OTP MCUs

In-Circuit Serial Programming (ICSP ) for PIC16C715 OTP MCUs PIC16C715 In-Circuit Serial Programming (ICSP ) for PIC16C715 OTP MCUs This document includes the programming specifications for the following devices: PIC16C715 Pin Diagrams PDIP, SOIC, Windowed CERDIP

More information

University of Jordan Faculty of Engineering and Technology Department of Computer Engineering Embedded Systems Laboratory

University of Jordan Faculty of Engineering and Technology Department of Computer Engineering Embedded Systems Laboratory University of Jordan Faculty of Engineering and Technology Department of Computer Engineering Embedded Systems Laboratory 0907334 6 Experiment 6:Timers Objectives To become familiar with hardware timing

More information

Chapter 13. PIC Family Microcontroller

Chapter 13. PIC Family Microcontroller Chapter 13 PIC Family Microcontroller Lesson 15 Instruction Set Most instructions execution Time One instruction cycle If XTAL frequency = 20 MHz, then instruction cycle time is 0.2 s or 200 ns (= 4/20

More information

PIC 16F84A programming (II)

PIC 16F84A programming (II) Lecture (05) PIC 16F84A programming (II) Dr. Ahmed M. ElShafee ١ Introduction to 16F84 ٣ PIC16F84 belongs to a class of 8-bit microcontrollers of RISC architecture. Program memory (FLASH) EEPROM RAM PORTA

More information

SEEVAL 32 Quick Start Guide

SEEVAL 32 Quick Start Guide SEEVAL 32 Quick Start Guide 2003 Microchip Technology Inc. Advance Information DS51338A Information contained in this publication regarding device applications and the like is intended through suggestion

More information

TB079. Programming Baseline Flash Devices with PICkit 1 PIC12F508/509 AND PIC16F505 PROGRAMMING INTRODUCTION. PICkit 1 FIRMWARE VERSION 2.0.

TB079. Programming Baseline Flash Devices with PICkit 1 PIC12F508/509 AND PIC16F505 PROGRAMMING INTRODUCTION. PICkit 1 FIRMWARE VERSION 2.0. TB079 Baseline Flash Devices with PICkit 1 Author: INTRODUCTION The PICkit 1 Baseline Flash Programmer PC application together with the PICkit 1 Flash Starter Kit firmware version 2.0.0 or later can program

More information

INTRODUCTION. Mechanical Considerations APPLICATION NOTE Z86E21 THERMAL PRINTER CONTROLLER ZILOG

INTRODUCTION. Mechanical Considerations APPLICATION NOTE Z86E21 THERMAL PRINTER CONTROLLER ZILOG ZILOG DESIGNING A LOW-COST THERMAL PRINTER USING THE Z86E21 TO CONTROL THE OPERATING CURRENT ON LOW-COST THERMAL PRINTERS PROVIDES DESIGN FLEXIBILITY AND HELPS SAFEGUARD PERFORMANCE. INTRODUCTION Compact

More information

PICMASTER PICMASTER CE

PICMASTER PICMASTER CE PICMASTER PICMASTER CE Emulator Probe Specification INTRODUCTION The probes for PICMASTER (PM) and PICMASTER CE (PMCE) are interchangeable personality modules that allow the emulator to be reconfigured

More information

Weekly Report: Interactive Wheel of Fortune Week 4 02/014/07-02/22/07 Written by: Yadverinder Singh

Weekly Report: Interactive Wheel of Fortune Week 4 02/014/07-02/22/07 Written by: Yadverinder Singh Work Completed: Weekly Report: Interactive Wheel of Fortune Week 4 02/014/07-02/22/07 Written by: Yadverinder Singh Last week started with the goal to complete writing the overall program for the game.

More information

TB082. Understanding Reset Events On The PIC10F20X INTRODUCTION WATCHDOG TIMER OR WDT POWER-ON RESET (POR)

TB082. Understanding Reset Events On The PIC10F20X INTRODUCTION WATCHDOG TIMER OR WDT POWER-ON RESET (POR) Understanding Reset Events On The PIC10F20X Author: INTRODUCTION The PIC10F20X family of microcontrollers utilizes the baseline 12-bit microcontroller core from Microchip. Because this core does not support

More information

EEE111A/B Microprocessors

EEE111A/B Microprocessors EEE111A/B Microprocessors Revision Notes Lecture 1: What s it all About? Covers the basic principles of digital signals. The intelligence of virtually all communications, control and electronic devices

More information

EPROM Memory Programming Specification TABLE 1-1: PIN DESCRIPTIONS (DURING PROGRAMMING): PIC16C64X/66X

EPROM Memory Programming Specification TABLE 1-1: PIN DESCRIPTIONS (DURING PROGRAMMING): PIC16C64X/66X M PIC16C64X/66X EPROM Memory Programming Specification This document includes the programming specifications for the following devices: PIC16C642 PIC16C662 1. PROGRAMMING THE PIC16C64X/66X The PIC16C64X/66X

More information

Flow Charts and Assembler Programs

Flow Charts and Assembler Programs Flow Charts and Assembler Programs Flow Charts: A flow chart is a graphical way to display how a program works (i.e. the algorithm). The purpose of a flow chart is to make the program easier to understand.

More information

Lecture (04) PIC16F84A (3)

Lecture (04) PIC16F84A (3) Lecture (04) PIC16F84A (3) By: Dr. Ahmed ElShafee ١ Central Processing Unit Central processing unit (CPU) is the brain of a microcontroller responsible for finding and fetching the right instruction which

More information

Designed to GO... Universal Battery Monitor Using the bq2018 Power Minder IC. Typical Applications. Features. Figure 1. bq2018 Circuit Connection

Designed to GO... Universal Battery Monitor Using the bq2018 Power Minder IC. Typical Applications. Features. Figure 1. bq2018 Circuit Connection Designed to GO... Practical and Cost-Effective Battery Management Design Examples by Benchmarq Series 2018, Number One Universal Battery Monitor Using the bq2018 Power Minder IC Features Counts charge

More information

CENG 336 INT. TO EMBEDDED SYSTEMS DEVELOPMENT. Spring 2006

CENG 336 INT. TO EMBEDDED SYSTEMS DEVELOPMENT. Spring 2006 CENG 336 INT. TO EMBEDDED SYSTEMS DEVELOPMENT Spring 2006 Recitation 01 21.02.2006 CEng336 1 OUTLINE LAB & Recitation Program PIC Architecture Overview PIC Instruction Set PIC Assembly Code Structure 21.02.2006

More information

FLASH Memory Programming Specification

FLASH Memory Programming Specification FLASH Memory Programming Specification This document includes the programming specifications for the following devices: PIC16F73 PIC16F74 PIC16F76 PIC16F77 1.0 PROGRAMMING THE The is programmed using a

More information

Connecting EPSON Display Controllers to Topway LCD Panels

Connecting EPSON Display Controllers to Topway LCD Panels Connecting EPSON Display Controllers to Topway LCD Panels Document Number: Issue Date: 2012/04/23 SEIKO EPSON CORPORATION Rev. 1.0 Page 2 NOTICE No part of this material may be reproduced or duplicated

More information

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING. EE Microcontroller Based System Design

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING. EE Microcontroller Based System Design DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EE6008 - Microcontroller Based System Design UNIT III PERIPHERALS AND INTERFACING PART A 1. What is an

More information

16.317: Microprocessor-Based Systems I Spring 2012

16.317: Microprocessor-Based Systems I Spring 2012 16.317: Microprocessor-Based Systems I Spring 2012 Exam 3 Solution 1. (20 points, 5 points per part) Multiple choice For each of the multiple choice questions below, clearly indicate your response by circling

More information

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING. EE6008 Microcontroller based system design

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING. EE6008 Microcontroller based system design Year: IV DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EE6008 Microcontroller based system design Semester : VII UNIT I Introduction to PIC Microcontroller

More information

FM1233A 3-Pin µc Supervisor Circuit

FM1233A 3-Pin µc Supervisor Circuit FM133A 3-Pin µc Supervisor Circuit General Description The FM133A is a supervisor circuit that monitors a microprocessor power supply or other system voltage and issues a reset pulse when a fault condition

More information

Done 1 NVB THF TLF T/R POL 1SHOT. Figure 1: Status register

Done 1 NVB THF TLF T/R POL 1SHOT. Figure 1: Status register Introduction to Microprocessors Feisal Mohammed 12th January 2001 Mini-project This project is to implement a temperature monitor using the PicStic4, the DS1821 temperature sensor and a LCD display. The

More information

8-bit RISC Microcontroller. Application Note. AVR 305: Half Duplex Compact Software UART

8-bit RISC Microcontroller. Application Note. AVR 305: Half Duplex Compact Software UART AVR 305: Half Duplex Compact Software UART Features 32 Words of Code, Only Handles Baud Rates of up to 38.4 kbps with a 1 MHz XTAL Runs on Any AVR Device Only Two Port Pins Required Does Not Use Any Timer

More information

S5U1C88000P Manual (S1C88 Family Peripheral Circuit Board)

S5U1C88000P Manual (S1C88 Family Peripheral Circuit Board) MF1434-01 CMOS 8-BIT SINGLE CHIP MICROCOMPUTER S5U1C88000P Manual (S1C88 Family Peripheral Circuit Board) NOTICE No part of this material may be reproduced or duplicated in any form or by any means without

More information

PIC14C000. EPROM Memory Programming Specification PIN DIAGRAM 1.0 PROGRAMMING THE PIC14C000

PIC14C000. EPROM Memory Programming Specification PIN DIAGRAM 1.0 PROGRAMMING THE PIC14C000 EPROM Memory Programming Specification This document includes the programming specifications for the following devices: PIC14C PIN DIAGRAM PDIP, SOIC, SSOP, Windowed CERDIP 1. PROGRAMMING THE PIC14C The

More information

TOPIC 3 INTRODUCTION TO PIC ASSEMBLY LANGUAGE. E4160 Microprocessor & Microcontroller System. Prepared by : Puziah Yahaya JKE, POLISAS / DEC 2010

TOPIC 3 INTRODUCTION TO PIC ASSEMBLY LANGUAGE. E4160 Microprocessor & Microcontroller System. Prepared by : Puziah Yahaya JKE, POLISAS / DEC 2010 TOPIC 3 INTRODUCTION TO PIC ASSEMBLY LANGUAGE Prepared by : Puziah Yahaya JKE, POLISAS / DEC 2010 E4160 Microprocessor & Microcontroller System Learning Outcomes 2 At the end of this topic, students should

More information

LAB WORK 2. 1) Debugger-Select Tool-MPLAB SIM View-Program Memory Trace the program by F7 button. Lab Work

LAB WORK 2. 1) Debugger-Select Tool-MPLAB SIM View-Program Memory Trace the program by F7 button. Lab Work LAB WORK 1 We are studying with PIC16F84A Microcontroller. We are responsible for writing assembly codes for the microcontroller. For the code, we are using MPLAB IDE software. After opening the software,

More information

2-wire Serial EEPROM Smart Card Modules AT24C32SC AT24C64SC

2-wire Serial EEPROM Smart Card Modules AT24C32SC AT24C64SC Features Low-voltage and Standard-voltage Operation 5.0 (V CC = 4.5V to 5.5V) 2.7 (V CC = 2.7V to 5.5V) Internally Organized 4096 x 8, 8192 x 8 2-wire Serial Interface Schmitt Trigger, Filtered Inputs

More information

Battery-Voltage. 16K (2K x 8) Parallel EEPROMs AT28BV16. Features. Description. Pin Configurations

Battery-Voltage. 16K (2K x 8) Parallel EEPROMs AT28BV16. Features. Description. Pin Configurations Features 2.7 to 3.6V Supply Full Read and Write Operation Low Power Dissipation 8 ma Active Current 50 µa CMOS Standby Current Read Access Time - 250 ns Byte Write - 3 ms Direct Microprocessor Control

More information

1-Megabit (128K x 8) Low Voltage Paged Parallel EEPROMs

1-Megabit (128K x 8) Low Voltage Paged Parallel EEPROMs Features Single 3.3V ± 10% Supply Fast Read Access Time - 200 ns Automatic Page Write Operation Internal Address and Data Latches for 128 Bytes Internal Control Timer Fast Write Cycle Time Page Write Cycle

More information

When is Data Susceptible to Corruption

When is Data Susceptible to Corruption Parallel EEPROM Data Protection Advantages of EEPROMs EEPROMs provide the memory solution wherever reprogrammable, nonvolatile memory is required. They are easy to use, requiring little or no support hardware

More information

EECE.3170: Microprocessor Systems Design I Summer 2017 Homework 5 Solution

EECE.3170: Microprocessor Systems Design I Summer 2017 Homework 5 Solution For each of the following complex operations, write a sequence of PIC 16F1829 instructions that performs an equivalent operation. Assume that X, Y, and Z are 16-bit values split into individual bytes as

More information