PIC10F222-I/P Microchip Technology, PIC10F222-I/P Datasheet
PIC10F222-I/P
Specifications of PIC10F222-I/P
Available stocks
Related parts for PIC10F222-I/P
PIC10F222-I/P Summary of contents
Page 1
... Memory Programming Specification This document includes the programming specifications for the following devices: • PIC10F220 • PIC10F222 1.0 PROGRAMMING THE PIC10F220/222 The PIC10F220/222 is programmed using a serial method. The Serial mode will allow the PIC10F220/222 to be programmed while in the user’s system. This allows for increased design flexibility ...
Page 2
... In the configuration memory space, 0x100-0x13F for the PIC10F220 and 0x200-0x23F for the PIC10F222 are physically implemented. However, only locations 0x100-0x103 and 0x200-0x203 are available. Other locations are reserved. ...
Page 3
... 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 PIC10F220 and 0x3FF for the PIC10F222. The Increment Address command will increment the PC. The available commands are shown in Table 3-1. FIGURE 3-1: ...
Page 4
... DS41266C-page 4 Mapping (MSb … LSb DLY strt_bit LSb DLY 1 HLD T 2 DLY strt_bit LSb T 1 DLY T 1 HLD Input Data 0, data (14 data (14 Externally Timed Internally Timed MSb stp_bit SET -+T 1 HLD DLY stp_bit MSb Input Output © 2007 Microchip Technology Inc. ...
Page 5
... A timing diagram of this command is shown in Figure 3- 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 PIC10F220 or 0x3FF for the PIC10F222 to 0x000. FIGURE 3-5: INCREMENT ADDRESS COMMAND 1 ...
Page 6
... OSCCAL bits into computer/programmer temporary memory. 2. Enter Program/Verify mode. 3. Increment PC to 0x200/0x400 (first user ID location). 4. Perform a Bulk Erase command. 5. Wait T to complete Bulk Erase. ERA 6. Restore OSCCAL bits. 7. Restore backup OSCCAL bits. DIS Next Command 1 2 © 2007 Microchip Technology Inc. ...
Page 7
... TABLE 3-2: BULK ERASE RESULTS Program Memory Space PC = Program Memory Configuration Word or Program Memory Space First User ID Location FIGURE 3-8: BULK ERASE PROGRAM MEMORY COMMAND 1 2 ICSPCLK 1 ICSPDAT T 1 SET T HLD © 2007 Microchip Technology Inc. Configuration Reset Vector Word PIC10F220/222 ...
Page 8
... READING AND TEMPORARY SAVING OF THE OSCCAL CALIBRATION BITS Increment Address Increment Address DS41266C-page 8 Start Enter Programming Mode 0x0FF/0x1FF? Yes Read Calibration Bits and Save in Computer/Programmer Temp. Memory 0x104/0x204? Yes Read Backup OSCCAL Calibration Bits and Save in Computer/Programmer Temp. Memory Exit Programming Mode Done © 2007 Microchip Technology Inc. ...
Page 9
... FIGURE 3-10: RESTORING/PROGRAMMING THE OSCCAL CALIBRATION BITS Increment Address Increment Address © 2007 Microchip Technology Inc. PIC10F220/222 Start Enter Programming Mode 0x0FF/0x1FF? Yes Read Calibration Bits from Computer/Programmer Temp. Memory Write Calibration Bits back as the operand of a MOVLW instruction to 0x0FF/0x1FF 0x104/0x204? ...
Page 10
... Exit Programming Mode Restore OSCCAL bits ( Figure 3-10 Program Configuration Memory Figure 3-12 ( Done DS41266C-page 10 ) Report No Programming Failure Yes ) ) PROGRAM CYCLE Load Data for Program Memory Begin Programming Command (Externally timed) Wait T PROG End Programming Wait T DIS © 2007 Microchip Technology Inc. ...
Page 11
... Correct? Yes Increment Address Command No Address = 0x100/0x200 Yes Load Data Command One-Word Programming Cycle (see Figure 3-11) © 2007 Microchip Technology Inc. PIC10F220/222 Programs Configuration Word Report No Programming Failure Programs User ID’s Read Data Command Report No Data Programming Correct? Failure Yes ...
Page 12
... Figure 3-10 Exit Programming Mode Done Read and save OSCCAL bits Figure 3 Enter Program/Verify mode PC = 0x1FF/ 0x 3FF (Config Word 0x100/0x200? (First User ID) Yes Bulk Erase Device Restore OSCCAL Bits Wait T ERA Exit Programming Mode ERA ) Figure 3- Done © 2007 Microchip Technology Inc. ...
Page 13
... MCPU enabled bit 0 IOFSCS: Internal Oscillator Frequency Select bit MHz MHz Legend Readable bit W = Writable bit -n = Value at POR ‘1’ = Bit is set © 2007 Microchip Technology Inc. — — — MCLRE Unimplemented bit, read as ‘0’ ‘0’ = Bit is cleared PIC10F220/222 ...
Page 14
... Checksum is calculated by reading the contents of the PIC10F220/222 memory locations and adding up the opcodes up to the maximum user addressable location (e.g., 0x1FF for the PIC10F222). Any Carry bits exceeding 16 bits are neglected. Finally, the Configuration Word (appropriately masked) is added to the checksum. Checksum computation for the PIC10F220/222 is shown in Table 5-2 ...
Page 15
... 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 Note 1: Checksum shown assumes that SUM_ID contains the unprotected checksum. TABLE 5-2: CHECKSUM COMPUTATIONS – PIC10F222 Device Code-Protect PIC10F222 OFF SUM[0x000:0x1FE] + CFGW & 0x01F ON SUM[0x00:0x3F] + CFGW & ...
Page 16
... DD 10°C ≤ T ≤ 40°C A 4.5V ≤ V ≤ 5.5V DD Conditions/ Max. Units Comments 5.5 V 5.5 V 0.5 mA 0.5 mA 13.5 V 0.45 mA μs 1.0 μs — — — ns μs — — ns — ns μs — μs — ( ( μs — — ms © 2007 Microchip Technology Inc. ...
Page 17
... PowerInfo, PowerMate, PowerTool, REAL ICE, rfLAB, Select Mode, Smart Serial, SmartTel, Total Endurance, UNI/O, WiperLock and ZENA 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. ...
Page 18
... Fax: 886-3-572-6459 Taiwan - Kaohsiung Tel: 886-7-536-4818 Fax: 886-7-536-4803 Taiwan - Taipei Tel: 886-2-2500-6610 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350 © 2007 Microchip Technology Inc. EUROPE Austria - Wels Tel: 43-7242-2244-39 Fax: 43-7242-2244-393 Denmark - Copenhagen Tel: 45-4450-2828 Fax: 45-4485-2829 France - Paris Tel: 33-1-69-53-63-20 ...