1 Memory Programming Specification This document includes the programming specifications for the following devices: PIC10F200 PIC10F202 PIC10F204 PIC10F PROGRAMMING THE PIC10F200/202/204/206 The PIC10F200/202/204/206 is programmed using a serial method. The Serial mode will allow the PIC10F200/202/204/206 to be programmed while in the user s system. This allows for increased design flexibility. This programming specification applies to PIC10F200/202/204/206 devices in all packages. Pin Diagrams SOT Hardware Requirements The PIC10F200/202/204/206 requires one power supply for VDD (5.0V) and one for VPP (12V). 1.2 Program/Verify Mode The Program/Verify mode for the PIC10F200/202/204/ 206 allows programming of user program memory for user ID locations, backup OSCCAL location and the Configuration Word. SOT-23 GP0 VSS GP PIC10F200/ GP3/MCLR/VPP VDD GP2/T0CKI/FOSC4 GP0/CIN+ VSS GP1/CIN PIC10F204/ GP3/MCLR/VPP VDD GP2/T0CKI/COUT/FOSC4 PDIP PDIP N/C VDD GP2/T0CKI/FOSC4 GP PIC10F200/ GP3/MCLR/VPP N/C VSS VDD N/C GP2/T0CKI/COUT/FOSC4 GP0 GP1/CIN PIC10F204/ GP3/MCLR/VPP VSS N/C GP0/CIN+ TABLE 1-1: PIN DESCRIPTIONS (DURING PROGRAMMING): PIC10F200/202/204/206 During Programming Pin Name Function Pin Type Pin Description GP1 ICSPCLK I Clock input Schmitt Trigger input GP0 ICSPDAT I/O Data input/output Schmitt Trigger input MCLR/VPP Program/Verify mode P (1) Program Mode Select VDD VDD P Power Supply VSS VSS P Ground Legend: I = Input, O = Output, P = Power te 1: In the PIC10F200/202/204/206, the programming high voltage is internally generated. To activate the Program/Verify mode, high voltage of IIHH current capability (see Table 6-1) needs to be applied to the MCLR input Microchip Technology Inc. Preliminary DS41228D-page 1
2 2.0 MEMORY MAPPING 2.1 User Program Memory Map The user memory space extends from (0x000-0x0FF) on the PIC10F200/204 and (0x000-0x1FF) on the PIC10F202/206. In Program/Verify mode, the program memory space extends from (0x000-0x1FF) for the PIC10F200/204 and (0x000-0x3FF) for the PIC10F202/206. The first half, (0x000-0x0FF) and (0x000-0x1FF) respectively, is user program memory. The second half, (0x100-0x1FF) and (0x200-0x3FF) respectively, is configuration memory. The PC will increment from (0x000-0x0FF) and (0x000-0x1FF) respectively, then to 0x100 and 0x200, respectively (not to 0x000). In the configuration memory space, 0x100-0x13F for the PIC10F200/204 and 0x200-0x23F for the PIC10F202/206 are physically implemented. However, only locations 0x100-0x103 and 0x200-0x203 are available. Other locations are reserved. 2.2 User ID Locations A user may store identification information (ID) in four user ID locations. The user ID locations are mapped in [0x100:0x103] and [0x200:0x203], respectively. It is recommended that the user use only the four Least Significant bits (LSb) of each user ID location and program the upper 8 bits as 1 s. The user ID locations read out normally, even after code protection is enabled. It is recommended that user ID location is written as bbbb where bbbb is user ID information. 2.3 Configuration Word The Configuration Word register is physically located at 0x1FF and 0x3FF, respectively. It is only available upon Program mode entry. Once an Increment Address command is issued, the Configuration Word is no longer accessible, regardless of the address of the program counter. te: By convention the Configuration Word register is stored at the logical address location of 0xFFF within the hex file generated for the PIC10F200/202/204/206. This logical address location may not reflect the actual physical address for the part itself. It is the responsibility of the programming software to retrieve the Configuration Word register from the logical address within the hex file and translate the address to the proper physical location when programming. FIGURE 2-1: User Memory Space Config Memory Space FIGURE 2-2: User Memory Space Config Memory Space PIC10F200/204 PROGRAM MEMORY MAP On-chip User Program Memory Reset Vector User ID Locations Backup OSCCAL value Reserved Unimplemented Configuration Word PIC10F202/206 PROGRAM MEMORY MAP On-chip User Program Memory Reset Vector User ID Locations Backup OSCCAL value Reserved Unimplemented Configuration Word 2.4 Oscillator Calibration Bits The oscillator calibration bits are stored at the Reset vector as the operand of a MOVLW instruction. Programming interfaces must allow users to program the calibration bits themselves for custom trimming of the INTOSC. Capability for programming the calibration bits when programming the entire memory array must also be maintained for backwards compatibility. 2.5 Backup OSCCAL Value 000h 00Fh 010h 0FEh 0FFh 100h- 103h 104h 105h 13Fh 140h 1FEh 1FFh 000h 0FFh 100h 1FEh 1FFh 200h 203h 204h 205h 23Fh 240h 3FEh 3FFh The backup OSCCAL value, 0x104/0x204, is a factory reserved location where the OSCCAL value is stored during testing of the INTOSC. This location is not erased during a standard bulk erase, but is erased if the PC is moved into configuration memory prior to invoking a bulk erase. If this value is erased, it is the user s responsibility to rewrite it back to this location for future use. DS41228D-page 2 Preliminary 2004 Microchip Technology Inc.
3 3.0 COMMANDS AND ALGORITHMS 3.1 Program/Verify Mode The Program/Verify mode is entered by holding pins ICSPCLK and ICSPDAT low while raising VDD pin from VIL to VDD. Then raise VPP from VIL to VIHH. Once in this mode, the user program memory and configuration memory can be accessed and programmed in serial fashion. Clock and data are Schmitt Trigger input in this mode. The sequence that enters the device into the Programming/Verify mode places all other logic into the Reset state (the MCLR pin was initially at VIL). This means that all I/O are in the Reset state (high-impedance inputs) PROGRAMMING The programming sequence loads a word, programs, verifies, and finally increments the PC. Program/Verify mode entry will set the address to 0x1FF for the PIC10F200/204 and 0x3FF for the PIC10F202/206. The Increment Address command will increment the PC. The available commands are shown in Table 3-1. FIGURE 3-1: VPP VDD ICSPDAT ENTERING HIGH VOLTAGE PROGRAM/ VERIFY MODE TPPDP THLD SERIAL PROGRAM/VERIFY OPERATION The ICSPCLK pin is used for clock input and the ICSPDAT pin is used for data input/output during serial operation. To input a command, the clock pin is cycled six times. Each command bit is latched on the falling edge of the clock with the LSb of the command being input first. The data must adhere to the setup (TSET1) and hold (THLD1) times with respect to the falling edge of the clock (see Table 6-1). Commands that do not have data associated with them are required to wait a minimum of TDLY2 measured from the falling edge of the last command clock to the rising edge of the next command clock (see Table 6-1). Commands that do have data associated with them (Read and Load) are also required to wait TDLY2 between the command and the data segment measured from the falling edge of the last command clock to the rising edge of the first data clock. The data segment, consisting of 16 clock cycles, can begin after this delay. te: After every End Programming command, a delay of TDIS is required. The first and last clock pulses during the data segment correspond to the Start and Stop bits respectively. Input data is a don't care during the Start and Stop cycles. The 14 clock pulses between the Start and Stop cycles clock the 14 bits of input/output data. Data is transferred LSb first. During Read commands, in which the data is output from the PIC10F200/202/204/206, the ICSPDAT pin transitions from the high-impedance input state to the lowimpedance output state at the rising edge of the second data clock (first clock edge after the Start cycle). The ICSPDAT pin returns to the high-impedance state at the rising edge of the 16th data clock (first edge of the Stop cycle). See Figure 3-3. The commands that are available are described in Table 3-1. ICSPCLK TABLE 3-1: COMMAND MAPPING FOR PIC10F200/202/204/206 Command Mapping (MSb LSb) Data Load Data for Program Memory x x , data (14), 0 Read Data from Program Memory x x , data (14), 0 Increment Address x x Begin Programming x x Externally Timed End Programming x x Bulk Erase Program Memory x x Internally Timed 2004 Microchip Technology Inc. Preliminary DS41228D-page 3
4 Load Data For Program Memory After receiving this command, the chip will load in a 14-bit data word when 16 cycles are applied, as described previously. Because this is a 12-bit core, the two MSbs of the data word are ignored. A timing diagram for the Load Data command is shown in Figure 3-2. FIGURE 3-2: LOAD DATA COMMAND (PROGRAM/VERIFY) ICSPCLK TDLY ICSPDAT TSET1 THLD1 x x strt_bit LSb MSb X X stp_bit TDLY1 TSET1 -+THLD Read Data From Program Memory After receiving this command, the chip will transmit data bits out of the program memory (user or configuration) currently addressed, starting with the second rising edge of the clock input. The data pin will go into Output mode on the second rising clock edge, and it will revert to Input mode (high-impedance) after the 16th rising edge. Because this is a 12-bit core, the two MSbs of the 14-bit word will be read as 0 s. If the program memory is code-protected (CP = 0), portions of the program memory will be read as zeros. See Section 5.0 Code Protection for details. FIGURE 3-3: READ DATA FROM PROGRAM MEMORY COMMAND TDLY ICSPCLK TDLY3 ICSPDAT x X TSET1 TDLY1 strt_bit LSb MSb stp_bit THLD1 input output input DS41228D-page 4 Preliminary 2004 Microchip Technology Inc.
5 Increment Address The PC is incremented when this command is received. A timing diagram of this command is shown in Figure 3-4. It is not possible to decrement the address counter. To reset this counter, the user must either exit and re-enter Program/Verify mode or increment the PC from 0x1FF for the PIC10F200/204 or 0x3FF for the PIC10F202/ 206 to 0x000. FIGURE 3-4: INCREMENT ADDRESS COMMAND ICSPCLK TDLY2 Next Command 1 2 ICSPDAT x x TSET1 THLD Begin Programming (Externally Timed) A Load command must be given before every Begin Programming command. Programming will begin after this command is received and decoded. Programming requires (TPROG) time and is terminated using an End Programming command. This command programs the current location, no erase is performed. FIGURE 3-5: BEGIN PROGRAMMING (EXTERNALLY TIMED) ICSPCLK TPROG End Programming Command 1 2 ICSPDAT x x 0 1 TSET1 THLD Microchip Technology Inc. Preliminary DS41228D-page 5
6 End Programming The End Programming command terminates the program process. A delay of TDIS (see Table 6-1) is required before the next command to allow the internal programming voltage to discharge (see Figure 3-6). FIGURE 3-6: END PROGRAMMING (EXTERNALLY TIMED) ICSPCLK TDIS Next Command 1 2 ICSPDAT x x TSET1 THLD Bulk Erase Program Memory After this command is performed, the entire program memory and Configuration Word is erased. te 1: A fully erased part will read 1 s in every program memory location. 2: The oscillator calibration bits are erased if a bulk erase is invoked. They must be read and saved prior to erasing the device and restored during the programming operation. Oscillator calibration bits are stored at the Reset vector as the operand of a MOVLW instruction. To perform a bulk erase of the program memory and configuration fuses, the following sequence must be performed (see Figure 3-12). 1. Read and save 0x0FF/0x1FF oscillator calibration bits and 0x104/0x204 backup OSCCAL bits into computer/programmer temporary memory. 2. Enter Program/Verify mode. PC is set to Configuration Word address. 3. Perform a Bulk Erase Program Memory command. 4. Wait TERA to complete bulk erase. 5. Restore OSCCAL bits. To perform a full device bulk erase of the program memory, configuration fuses, user IDs and backup OSCCAL value, the following sequence must be performed (see Figure 3-13). 1. Read and save 0x0FF/0x1FF oscillator calibration bits and 0x104/0x204 backup OSCCAL bits into computer/programmer temporary memory. 2. Enter Program/Verify mode. 3. Increment PC to 0x200/400 (first user ID location). 4. Perform a Bulk Erase command. 5. Wait TERA to complete bulk erase. 6. Restore OSCCAL bits. 7. Restore backup OSCCAL bits. DS41228D-page 6 Preliminary 2004 Microchip Technology Inc.
7 TABLE 3-2: PC = BULK ERASE RESULTS Program Memory Space Program Memory Reset Vector Configuration Memory Space Configuration Word User ID Backup OSCCAL Configuration Word or Program Memory Space E E E U U First User ID Location E E E E E Legend: E = Erased, U = Unaffected FIGURE 3-7: BULK ERASE PROGRAM MEMORY COMMAND TERA Next Command ICSPCLK ICSPDAT TSET x x THLD Microchip Technology Inc. Preliminary DS41228D-page 7
8 FIGURE 3-8: READING AND TEMPORARY SAVING OF THE OSCCAL CALIBRATION BITS Start Enter Programming Mode Increment Address PC = 0x0FF/1FF? Read Calibration Bits and Save in Computer/Programmer Temp. Memory Increment Address PC = 0x104/204? Read Backup OSCCAL Calibration Bits and Save in Computer/Programmer Temp. Memory Exit Programming Mode Done DS41228D-page 8 Preliminary 2004 Microchip Technology Inc.
9 FIGURE 3-9: RESTORING/PROGRAMMING THE OSCCAL CALIBRATION BITS Start Enter Programming Mode Increment Address PC = 0x0FF/1FF? Read Calibration Bits from Computer/Programmer Temp. Memory Write Calibration Bits back as the operand of a MOVLW instruction to 0x0FF/1FF Increment Address PC = 0x104/204? Read Backup OSCCAL Calibration Bits from Computer/Programmer Temp. Memory Write Backup OSCCAL Bits back to 0x104/204 Exit Programming Mode Done 2004 Microchip Technology Inc. Preliminary DS41228D-page 9
10 FIGURE 3-10: PROGRAM FLOW CHART PIC10F200/202/204/206 PROGRAM MEMORY Start Read and save OSCCAL bits (Figure 3-8) Enter Programing Mode PC = 0x1FF/3FF (Config Word) Increment Address Bulk Erase Device PROGRAM CYCLE One-Word Program Cycle Read Data from Program Memory Load Data for Program Memory Begin Programming Command (Externally timed) Data Correct? Report Programming Failure Wait TPROG End Programming Increment Address Command All Programming Locations Done? Wait TDIS Exit Programming Mode Restore OSCCAL bits (Figure 3-9) Program Configuration Memory (Figure 3-11) Done DS41228D-page 10 Preliminary 2004 Microchip Technology Inc.
11 FIGURE 3-11: PROGRAM FLOW CHART PIC10F200/202/204/206 CONFIGURATION MEMORY Start Enter Programming Mode PC = 0x1FF/3FF (Config Word) Load Data Command Programs Configuration Word One-Word Programming Cycle (see Figure 3-10) Read Data Command Data Correct? Increment Address Command Report Programming Failure Address = 0x100/200 Load Data Command Programs User ID s One-Word Programming Cycle (see Figure 3-10) Read Data Command Data Correct? Increment Address Command Report Programming Failure Address = 0x104/204? Exit Programming Mode Done 2004 Microchip Technology Inc. Preliminary DS41228D-page 11
12 FIGURE 3-12: PROGRAM FLOW CHART ERASE PROGRAM MEMORY, CONFIGURATION WORD Start Bulk Erase Device Read and save OSCCAL bits (Figure 3-8) Wait TERA Enter Program/Verify mode PC = 0x1FF/3FF (Config Word) Restore OSCCAL bits (Figure 3-9) Exit Programming Mode Done FIGURE 3-13: PROGRAM FLOW CHART ERASE PROGRAM MEMORY, CONFIGURATION WORD AND USER ID Start Read and save OSCCAL bits (Figure 3-8) Enter Program/Verify mode PC = 0x1FF/3FF (Config Word) Increment PC PC = 0x100/200? (First User ID) Bulk Erase Device Wait TERA Restore OSCCAL Bits (Figure 3-9) Exit Programming Mode Done DS41228D-page 12 Preliminary 2004 Microchip Technology Inc.
13 4.0 CONFIGURATION WORD The PIC10F200/202/204/206 has several configuration bits. These bits can be programmed (reads 0 ) or left unchanged (reads 1 ), to select various device configurations. REGISTER 4-1: CONFIGURATION WORD PIC10F200/202/204/206 MCLRE CP WDTE bit 11 bit 0 bit 11-5 Unimplemented: Read as 1 bit 4 MCLRE: Master Clear Enable bit 1 = GP3/MCLR pin functions as MCLR 0 = GP3/MCLR pin functions as GP3, MCLR internally tied to VDD bit 3 CP: Code Protection bit 1 = Code protection off 0 = Code protection on bit 2 WDTE: Watchdog Timer Enable bit 1 = WDT enabled 0 = WDT disabled bit 1-0 Unimplemented: Read as 1 (1) te 1: On the PIC10F200/202/204/206, the only available oscillator selection is 4 MHz INTOSC. Therefore, bits FOSC <1:0> are unimplemented. Legend: R = Readable bit W = Writable bit U = Unimplemented bit, read as 0 - n = Value at POR 1 = Bit is set 0 = Bit is cleared x = Bit is unknown 2004 Microchip Technology Inc. Preliminary DS41228D-page 13
14 5.0 CODE PROTECTION For the PIC10F200/202/204/206, once code protection is enabled, all program memory locations 0x040-0x0FE (F200/204) and 0x040-x1FE (F202/206) inclusive, read all 0 s. Program memory locations 0x000-0x03F, 0x0FF (F200/204) and 0x1FF (F202/206) are always unprotected. The user ID locations, backup OSCCAL locations, and the Configuration Word read out in an unprotected fashion. It is possible to program the user ID locations, backup OSCCAL locations and the Configuration Word after code-protect is enabled. 5.1 Disabling Code Protection It is recommended that the following procedure be performed before any other programming is attempted. It is also possible to turn code protection off (CP = 1) using this procedure. However, all data within the program memory will be erased when this procedure is executed, and thus, the security of the code is not compromised. To disable code-protect: a) Enter Program mode. b) Execute Bulk Erase Program Memory command (001001). c) Wait TERA. 5.3 Checksum Computation CHECKSUM Checksum is calculated by reading the contents of the PIC10F200/202/204/206 memory locations and adding up the opcodes up to the maximum user addressable location (e.g., 0x1FF for the PIC10F202/206). Any carry bits exceeding 16 bits are neglected. Finally, the Configuration Word (appropriately masked) is added to the checksum. Checksum computation for the PIC10F200/202/204/ 206 is shown in Table 5-2. The checksum is calculated by summing the following: The contents of all program memory locations The Configuration Word, appropriately masked Masked user ID locations (when applicable) The Least Significant 16 bits of this sum is the checksum. The following table describes how to calculate the checksum for each device. te: The checksum calculation differs depending on the code-protect setting. The Configuration Word and user ID locations can always be read regardless of the code protect settings. 5.2 Embedding Configuration Word and User ID Information in the Hex File te: To allow portability of code, the programmer is required to read the Configuration Word and user ID locations from the hex file when loading the hex file. If Configuration Word information was not present in the hex file, then a simple warning message may be issued. Similarly, while saving a hex file, Configuration Word and user ID information must be included. An option to not include this information may be provided. Microchip Technology Incorporated feels strongly that this feature is important for the benefit of the end customer. DS41228D-page 14 Preliminary 2004 Microchip Technology Inc.
15 TABLE 5-1: CHECKSUM COMPUTATIONS PIC10F200/204 (1) Device Code-Protect Checksum* Blank Value 0x723 at 0 and Max Address PIC10F200/204 OFF SUM[0x000:0x0FE] + CFGW & 0x01C 0xEF1D 0xDD65 ON SUM[0x00:0x3F] + CFGW & 0x01C + SUM_ID 0xEEF1 0xD45D Legend: CFGW = Configuration Word SUM[a:b] = [Sum of locations a to b inclusive] SUM_ID = User ID locations masked by 0xF then made into a 16-bit value with ID0 as the Most Significant nibble. For example, ID0 = 0x1, ID1 = 0x2, ID2 = 0x3, ID3 = 0x4, then SUM_ID = 0x1234. *Checksum = [Sum of all the individual expressions] MODULO [0xFFFF] + = Addition & = Bitwise AND te 1: Checksum shown assumes that SUM_ID contains the unprotected checksum. TABLE 5-2: CHECKSUM COMPUTATIONS PIC10F202/206 (1) Device Code-Protect Checksum* Blank Value 0x723 at 0 and Max Address PIC10F202/206 OFF SUM[0x000:0x1FE] + CFGW & 0x01C 0xEE1D 0xDC65 ON SUM[0x00:0x3F] + CFGW & 0x01C + SUM_ID 0xEDF1 0xD35D Legend: CFGW = Configuration Word SUM[a:b] = [Sum of locations a to b inclusive] SUM_ID = User ID locations masked by 0xF then made into a 16-bit value with ID0 as the Most Significant nibble. For example, ID0 = 0x1, ID1 = 0x2, ID2 = 0x3, ID3 = 0x4, then SUM_ID = 0x1234. *Checksum = [Sum of all the individual expressions] MODULO [0xFFFF] + = Addition & = Bitwise AND te 1: Checksum shown assumes that SUM_ID contains the unprotected checksum Microchip Technology Inc. Preliminary DS41228D-page 15
16 6.0 PROGRAM/VERIFY MODE ELECTRICAL CHARACTERISTICS TABLE 6-1: AC/DC CHARACTERISTICS AC/DC CHARACTERISTICS TIMING REQUIREMENTS FOR PROGRAM/VERIFY MODE Standard Operating Conditions (unless otherwise stated) Operating Temperature 10 C TA 40 C Operating Voltage 4.5V VDD 5.5V Sym Characteristics Min Typ Max Units General VDDPROG VDD level for read/write operations, program TBD 5.5 V memory VDDERA VDD level for bulk erase/write operations, V program memory IDDPROG IDD level for read/write operations, program TBD TBD ma memory IDDERA IDD level for bulk erase/write operations, TBD TBD ma program memory VIHH High voltage on MCLR for Program/Verify V mode entry IIHH MCLR pin current during Program/Verify 0.5 TBD ma mode TVHHR MCLR rise time (VSS to VIHH) for Program/ 1.0 µs Verify mode entry TPPDP Hold time after VPP 5 µs VIH1 (ICSPCLK, ICSPDAT) input high level 0.8 VDD V VIL1 (ICSPCLK, ICSPDAT) input low level 0.2 VDD V TSET0 ICSPCLK, ICSPDAT setup time before MCLR (Program/Verify mode selection pattern setup time) 100 ns THLD0 ICSPCLK, ICSPDAT hold time after MCLR (Program/Verify mode selection pattern setup time) 5 µs Serial Program/Verify TSET1 Data in setup time before clock 100 ns THLD1 Data in hold time after clock 100 ns TDLY1 Data input not driven to next clock input (delay required between command/data or command/command) 1.0 µs TDLY2 Delay between clock to clock of next 1.0 µs command or data TDLY3 Clock to data out valid (during Read Data) 80 ns TERA Erase cycle time 6 10 (1) ms TPROG Programming cycle time (externally timed) 1 2 (1) ms TDIS Time delay for internal programming voltage 100 µs discharge TRESET Time between exiting Program mode with VDD and VPP at GND and then re-entering Program mode by applying VDD. 10 ms Legend: te 1: Conditions/ Comments TBD = To Be Determined. Minimum time to ensure that function completes successfully over voltage, temperature and device variations. DS41228D-page 16 Preliminary 2004 Microchip Technology Inc.
17 te the following details of the code protection feature on Microchip devices: Microchip products meet the specification contained in their particular Microchip Data Sheet. Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions. There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip s Data Sheets. Most likely, the person doing so is engaged in theft of intellectual property. Microchip is willing to work with the customer who is concerned about the integrity of their code. Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not mean that we are guaranteeing the product as unbreakable. Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our products. Attempts to break Microchip s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act. Information contained in this publication regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WAR- RANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip s products as critical components in life support systems is not authorized except with express written approval by Microchip. licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights. Trademarks The Microchip name and logo, the Microchip logo, Accuron, dspic, KEELOQ, microid, MPLAB, PIC, PICmicro, PICSTART, PRO MATE, PowerSmart, rfpic, and SmartShunt are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. AmpLab, FilterLab, MXDEV, MXLAB, PICMASTER, SEEVAL, SmartSensor and The Embedded Control Solutions Company are registered trademarks of Microchip Technology Incorporated in the U.S.A. Analog-for-the-Digital Age, Application Maestro, dspicdem, dspicdem.net, dspicworks, ECAN, ECONOMONITOR, FanSense, FlexROM, fuzzylab, In-Circuit Serial Programming, ICSP, ICEPIC, Migratable Memory, MPASM, MPLIB, MPLINK, MPSIM, PICkit, PICDEM, PICDEM.net, PICLAB, PICtail, PowerCal, PowerInfo, PowerMate, PowerTool, rflab, rfpicdem, Select Mode, Smart Serial, SmartTel and Total Endurance are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies. 2004, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved. Printed on recycled paper. Microchip received ISO/TS-16949:2002 quality system certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona and Mountain View, California in October The Company s quality system processes and procedures are for its PICmicro 8-bit MCUs, KEELOQ code hopping devices, Serial EEPROMs, microperipherals, nonvolatile memory and analog products. In addition, Microchip s quality system for the design and manufacture of development systems is ISO 9001:2000 certified Microchip Technology Inc. DS41228D-page 17
18 WORLDWIDE SALES AND SERVICE AMERICAS Corporate Office 2355 West Chandler Blvd. Chandler, AZ Tel: Fax: Technical Support: Web Address: Atlanta Alpharetta, GA Tel: Fax: Boston Westford, MA Tel: Fax: Chicago Itasca, IL Tel: Fax: Dallas Addison, TX Tel: Fax: Detroit Farmington Hills, MI Tel: Fax: Kokomo Kokomo, IN Tel: Fax: Los Angeles Mission Viejo, CA Tel: Fax: San Jose Mountain View, CA Tel: Fax: Toronto Mississauga, Ontario, Canada Tel: Fax: ASIA/PACIFIC Australia - Sydney Tel: Fax: China - Beijing Tel: Fax: China - Chengdu Tel: Fax: China - Fuzhou Tel: Fax: China - Hong Kong SAR Tel: Fax: China - Shanghai Tel: Fax: China - Shenyang Tel: Fax: China - Shenzhen Tel: Fax: China - Shunde Tel: Fax: China - Qingdao Tel: Fax: ASIA/PACIFIC India - Bangalore Tel: Fax: India - New Delhi Tel: Fax: Japan - Kanagawa Tel: Fax: Korea - Seoul Tel: Fax: or Singapore Tel: Fax: Taiwan - Kaohsiung Tel: Fax: Taiwan - Taipei Tel: Fax: Taiwan - Hsinchu Tel: Fax: EUROPE Austria - Weis Tel: Fax: Denmark - Ballerup Tel: Fax: France - Massy Tel: Fax: Germany - Ismaning Tel: Fax: Italy - Milan Tel: Fax: Netherlands - Drunen Tel: Fax: England - Berkshire Tel: Fax: /27/04 DS41228D-page Microchip Technology Inc.
Solder Reflow Recommendation AN233 Author: INTRODUCTION Ravi Sharma Microchip Technology Inc. The electronic manufacturing industry is moving towards lead-free, environmentally safe assembly processes.
Using the PIC MCU CTMU for Temperature Measurement Author: Padmaraja Yedamale Microchip Technology Inc. The Charge Time Measurement Unit (CTMU), introduced on the latest generation of PIC24F and PIC18F
A Simple Circuit for Driving Microcontroller Friendly PWM Generators TB085 Author: Keith Curtis Microchip Technology Inc. INTRODUCTION The recent interest in intelligent power supplies has driven the development
WORKSHOP-IN-A-BOX 2: LOW POWER SOLUTIONS DEMONSTRATION BOARD 2004 Microchip Technology Inc. DS51512A Note the following details of the code protection feature on Microchip devices: Microchip products meet
dspic30f3012/3013 Rev. B0 Silicon Errata dspic30f3012/3013 (Rev. B0) Silicon Errata The dspic30f3012/3013 (Rev. B0) samples you have received were found to conform to the specifications and functionality
PIC18F2520 MCP3909 3-Phase Energy Meter Reference Design - Meter Test Results and Adapting the Meter Design for other Requirements Author: OVERVIEW Craig L. King Microchip Technology Inc. This application
Transformerless Power Supplies: Resistive and Capacitive Author: Reston Condit Microchip Technology Inc. INTRODUCTION There are several ways to convert an AC voltage at a wall receptacle into the DC voltage
Software Real-Time Clock and Calendar Using PIC16F1827 Author: INTRODUCTION Cristian Toma Microchip Technology Inc. This application note describes the implementation of software Real-Time Clock and Calendar
Migrating Applications to USB from RS-232 UART with Minimal Impact on PC Software Author: INTRODUCTION Rawin Rojvanit Microchip Technology Inc. The RS-232 serial interface is no longer a common port found
Water-Resistant Capacitive Sensing AN1286 Author: INTRODUCTION Thomas Perme Steven Lin Microchip Technology Inc. This application note describes a new hardware sensing method which is resilient to water
USB Mass Storage Class on an Embedded Host Author: INTRODUCTION With the introduction of Microchip's microcontrollers with the USB OTG peripheral, microcontroller applications can easily support USB Embedded
AN0 Gas and Water Metering with the PIC6F9X Family Author: INTRODUCTION Electronic utility meters are an important step towards automating the utility metering process. Automated utility meters allow many
Installing and Licensing MPLAB XC C Compilers DS50002059G Note the following details of the code protection feature on Microchip devices: Microchip products meet the specification contained in their particular
M PIC16F8X EEPROM Memory Programming Specification This document includes the programming specifications for the following devices: PIC16F83 PIC16CR83 PIC16F84 PIC16CR84 PIC16F84A 1. PROGRAMMING THE PIC16F8X
Obsolete Device 1 µa Low Dropout Positive Regulator TC Features Low Dropout : 120 mv (typ) at 100 ma, 80 mv (typ) at 200 ma High Output Current: 20 ma (V OUT =.0V) High Accuracy Output : ±2% (max) (±1%
Timers: Timer0 Tutorial (Part 1) 2007 Microchip Technology Inc. DS51682A Note the following details of the code protection feature on Microchip devices: Microchip products meet the specification contained
PIC32 USB Plug-In Module for the Explorer 16 Development Board PIC32MX Overview The PIC32 USB Plug-In Module (PIM) demonstrates the capabilities of PIC32MX460F512 and PIC32MX795F512 microcontrollers using
MCP2003 Power-Down and Wake-Up Handling in the Case of LIN Bus Loss Author: INTRODUCTION Frank Ziegenhorn Microchip Technology Inc. This technical brief gives a description of how to set the MCP2003 in
Recommended Usage of Microchip 23X256/23X640 SPI Serial SRAM Devices Author: INTRODUCTION Martin Bowman Microchip Technology Inc. This document details recommended usage of the Microchip 23X256 and 23X640
Introducing the EMC Newsletter What is EMC? Issue 1, November 2004 NOVEMBER 2004 Rodger Richey Senior Applications Manager Welcome to the first issue of the EMC Newsletter created by the Application Engineers
Precision Temperature-Sensing With RTD Circuits Author: INTRODUCTION Bonnie C. Baker Microchip Technology Inc. The most widely measured phenomena in the process control environment is temperature. Common
M AN709 System Level Design Considerations When Using I 2 C TM Serial EEPROM Devices Author: INTRODUCTION Rick Stoneking Developing systems that implement the I 2 C protocol for communicating with serial
Battery Fuel Measurement Using Delta-Sigma ADC Devices Author: INTRODUCTION Youbok Lee, Ph.D. Microchip Technology Inc. The battery fuel status indicator is a common feature of the battery-supported handheld
8-Pin SOIC/MSOP/TSSOP/DIP Evaluation Board User s Guide 2005 Microchip Technology Inc. DS51544A Note the following details of the code protection feature on Microchip devices: Microchip products meet the
Universal Programming Module OVERVIEW The Universal Programming Module (UPM) is a handy, low-cost board that supports the programming of Microchip devices using MPLAB in-circuit emulators and debuggers.
PICkit 2 Microcontroller Programmer USER S GUIDE 2007 Microchip Technology Inc. DS51553D Note the following details of the code protection feature on Microchip devices: Microchip products meet the specification
Bidirectional VF Control of Single and -Phase Induction Motors Using the PIC6F7 Author: INTRODUCTION Padmaraja Yedamale Microchip Technology Inc. Single-phase induction motors are extensively used in appliances
KEELOQ with AES Microcontroller-Based Code Hopping Encoder Authors: INTRODUCTION This application note describes the design of a microcontroller-based KEELOQ Hopping Encoder using the AES encryption algorithm.
Precision Temperature-to-Voltage Converter Features Supply Voltage Range: - TC147: 2.7V to 4.4V - TC147A: 2.V to.v Wide Temperature Measurement Range: - -4 o C to +12 o C High Temperature Converter Accuracy:
Manchester Decoder Using the CLC and NCO Authors: ABSTRACT A Manchester decoder can be built using Microchip s award winning CLC (Configurable Logic Cell) blocks and NCO (Numerically Controlled Oscillator)
M AN771 Suppressing Acoustic Noise in PWM Fan Speed Control Systems Author: INTRODUCTION Kyle Gaede Microchip Technology Inc. Fan speed control extends fan service life and decreases acoustic airflow noise
Stepper Motor Control Using the PICF8 AN90 Author: INTRODUCTION This application note describes how to drive a bipolar stepping motor with the PICF8. The Enhanced Capture Compare PWM (ECCP) module is used
Not recommended for new designs. MCRF202 125 khz Passive RFID Device with Sensor Input Features External Sensor input Data polarity changes with Sensor input condition Read-only data transmission 96 or
PICkit 2 Programmer/Debugger User s Guide 2008 Microchip Technology Inc. DS51553E Note the following details of the code protection feature on Microchip devices: Microchip products meet the specification
mtouch Metal Over Cap Technology AN1325 Authors: INTRODUCTION Keith Curtis Dieter Peter Microchip Technology Inc. As a user interface, capacitive touch has several advantages: it is low power, low cost,
Analog Conditioning Circuits An Overview Author: INTRODUCTION Target Audience This application note is intended for hardware design engineers that need to condition the output of common analog sensors.
2 µa Low-Dropout Positive Voltage Regulator Features 2.0 µa Typical Quiescent Current Input Operating Voltage Range up to 10.0V Low-Dropout Voltage (LDO): - 120 mv (typical) @ 100 ma - 380 mv (typical)
PIC18F2410/2510/4410/4510 Rev. B4 Silicon Errata The PIC18F2410/2510/4410/4510 Rev. B4 parts you have received conform functionally to the Device Data Sheet (DS39636C), except for the anomalies described
DEVELOPMENT SYSTEMS Uninstalling Incorrect USB Device Drivers RECOMMENDED UNINSTALL METHODS When using Microchip development tools, trouble may be experienced as a result of incorrect device drivers being
Precision Temperature-to-Voltage Converter Features Supply Voltage Range: - TC1047: 2.7V to 4.4V - TC1047A: 2.5V to 5.5V Wide Temperature Measurement Range: -40 o Cto+125 o C High Temperature Converter
KEELOQ with Advanced Encryption Standard (AES) Receiver/Decoder Author: OVERVIEW Enrique Aleman Microchip Technology Inc. This application note describes a KEELOQ with AES code hopping decoder implemented
M Section 27. Device Configuration Bits HIGHLIGHTS This section of the manual contains the following major topics: 27.1 Introduction...27-2 27.2 Configuration Word Bits...27-4 27.3 Program Verification/Code
M AN Application Circuits of the TC0/TC1SolidState Temperature Sensors Author: INTRODUCTION Microchip Technology Inc. The TC0/TC1are solidstate temperature sensors that are easy to program and interface
An Introduction to USB Descriptors with a Game Port to USB Game Pad Translator Example Author: INTRODUCTION This Technical Brief demonstrates the translation of a game port game pad to a USB game pad using
6A High-Speed MOSFET Drivers Features atch-up Protected: Will Withstand >1.5A Reverse Output Current ogic Input Will Withstand Negative Swing Up To 5V ESD Protected: 4 kv Matched Rise and Fall Times: -
In-Circuit Serial Programming (ICSP ) Guide 2003 Microchip Technology Inc. May 2003 DS30277D te the following details of the code protection feature on Microchip devices: Microchip products meet the specification
: Protecting Intellectual Property in Collaborative System Designs Author: EXECUTIVE SUMMARY Microchip s CodeGuard Security enables multiple parties to more securely share resources (memory, interrupts
LIN Serial Analyzer User s Guide Rev2.0 2008 Microchip Technology Inc. DS51675B Note the following details of the code protection feature on Microchip devices: Microchip products meet the specification
PICkit TM 2 Microcontroller Programmer USER S GUIDE 2006 Microchip Technology Inc. DS51553B Note the following details of the code protection feature on Microchip devices: Microchip products meet the specification
Demonstrating the Set_Report Request With a PS/2 to USB Keyboard Translator Example Author: INTRODUCTION This Technical Brief details the translation of a PS/2 keyboard to a USB keyboard using the PIC16C745/
A1095 Emulating Data EEPROM for PIC18 and PIC24 Microcontrollers and dspic Digital Signal Controllers Author: ITRODUCTIO Microchip Technology has expanded its product portfolio to include a wide variety
PICkit 3 Programmer/Debugger User s Guide 2009 Microchip Technology Inc. DS51795A Note the following details of the code protection feature on Microchip devices: Microchip products meet the specification
PICmicro DC Motor Control Tips n Tricks M Table of Contents Tips n Tricks Tips N Tricks Introduction TIP #1: Brushed DC Motor Drive Circuits...2 TIP #2: Brushless DC Motor Drive Circuits...5 TIP #3: Stepper
Comparing CAN and ECAN Modules AN916 Author: Caio Gübel Microchip Technology Inc. With the arrival of the PIC18FXX8X family of microcontrollers featuring the Enhanced Control Area Network (ECAN) module,
Data Sheet 6-Pin, 8-bit Flash Microcontrollers 2007 Microchip Technology Inc. DS41239D Note the following details of the code protection feature on Microchip devices: Microchip products meet the specification
MCP9700/9700A MCP9701/9701A Low-Power Linear Active Thermistor ICs Features Tiny Analog Temperature Sensor Available Packages: - SC70-5, SOT-23-5, TO-92-3 Wide Temperature Measurement Range: - -40 C to
Layout Tips for 12-Bit A/D Converter Application Author: INTRODUCTION Bonnie C. Baker Microchip Technology Inc. This Application Note originally started as a cook book for a true 12-bit layout. The assumption
Software PID Control of an Inverted Pendulum Using the PIC6F68 Author: John Charais Ruan Lourens Microchip Technology Inc. INTRODUCTION The purpose of this application note is to describe how a PIC6F68
Emulating High-Endurance Data EEPROM for PIC10 and PIC12 AN1687 Author: INTRODUCTION Willem J. Smit Microchip Technology Inc. Given Microchip s growing portfolio of microcontrollers, it is self-evident
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
Designing A Li-Ion Battery Charger and Load Sharing System With Microchip s Stand-Alone Li-Ion Battery Charge Management Controller Author: INTRODUCTION Brian Chu Microchip Technology Inc. Batteries often
Development Tools Integrated Development Environment Transforming Ideas Into Realities The typical product development life cycle is comprised of smaller cycles each representing an iterative process toward
SQTP SM Specification for PIC16C5X/5XA Serialized Quick Turn Programming Specification for PIC16C5X/5XA OVERVIEW Serialization is a method of programming PIC16C5X and PIC16C5XA microcontrollers whereby
3A Dual High-Speed Power MOSFET Drivers Features High Peak Output Current: 4.5A (typical) Wide Input Supply Voltage Operating Range: - 4.5V to 18V High Capacitive Load Drive Capability: - 18 pf in 12 ns
PS/2 to USB Mouse Translator TB55 Author: OVERVIEW Reston Condit Microchip Technology Inc. This Technical Brief details the translation of a PS/2 mouse to a USB mouse using the PIC16C745/765. The PIC16C745/765
Section 20. Comparator HIGHLIGHTS This section of the manual contains the following major topics: 20.1 Introduction... 20-2 20.2 Comparator Control egister... 20-3 20.3 Operation... 20-4 20.4 Interrupts...
Timers: Timer0 Tutorial (Part 2) 2008 Microchip Technology Inc. DS51702A Note the following details of the code protection feature on Microchip devices: Microchip products meet the specification contained
ROM Microcontrollers Selecting the MCU Memory Technology That s Right for You Seamless Migration From To ROM www.microchip.com Many Applications Require Flexible Solutions Selecting only one microcontroller
Buck Configuration High-Power LED Driver AN874 Author: INTRODUCTION The circuit and firmware described in this application note demonstrates a minimal parts count driver/controller for a high-power (1W
Current Sensing Circuit Concepts and Fundamentals Author: INTRODUCTION Yang Zhen Microchip Technology Inc. Current sensing is a fundamental requirement in a wide range of electronic applications. Typical
A Digital Constant Current Power LED Driver Author: INTRODUCTION Stephen Bowling Microchip Technology Inc. This document describes a power LED driver solution using the PIC12HV615 microcontroller (MCU).
Using USB Keyboard with an Embedded Host Author: INTRODUCTION Amardeep Gupta Microchip Technology Inc. Microcontroller applications can easily support USB embedded host functionality with the introduction
February 1999 NM9366 (MICROWIRE Bus Interface) 4096-Bit Serial EEPROM General Description The NM9366 devices are 4096 bits of CMOS non-volatile electrically erasable memory divided into 256 16-bit registers.
Touch Through Metal mtouch Metal Over Capacitive Technology Part 1 2010 Microchip Technology Incorporated. All Rights Reserved. Touch Through Metal Slide 1 Hello and welcome to Microchip s Touch Through
Using External Data Memory with PIC24F/24H/dsPIC33F Devices AN1210 Author: INTRODUCTION Vidyadhar Vivekananda Microchip Technology Inc. This application note describes the methodology to use the Parallel
Microchip MiWi Wireless Networking Protocol Stack Author: INTRODUCTION Implementing applications with wireless networking is now common. From consumer devices to industrial applications, there is a growing