PIC10F220EOT MICROCHIP [Microchip Technology], PIC10F220EOT Datasheet

no-image

PIC10F220EOT

Manufacturer Part Number
PIC10F220EOT
Description
6-Pin, 8-Bit Flash Microcontrollers
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
PIC10F220/222
Data Sheet
6-Pin, 8-Bit Flash Microcontrollers
Preliminary
© 2006 Microchip Technology Inc.
DS41270B

Related parts for PIC10F220EOT

PIC10F220EOT Summary of contents

Page 1

Flash Microcontrollers © 2006 Microchip Technology Inc. PIC10F220/222 Data Sheet Preliminary DS41270B ...

Page 2

Note 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 ...

Page 3

Flash Microcontrollers Device Included In This Data Sheet: • PIC10F220 • PIC10F222 High-Performance RISC CPU: • Only 33 single-word instructions to learn • All single-cycle instructions except for program branches which are two-cycle • 12-bit wide instructions • ...

Page 4

PIC10F220/222 Pin Diagrams 6-Lead SOT-23 GP0/AN0/ICSPDAT V SS GP1/AN1/ICSPCLK 8-Lead DIP N GP2/T0CKI/F OSC GP1/AN1/ICSPCLK DS41270B-page GP3/MCLR GP2/T0CKI/F GP3/MCLR N ...

Page 5

Table of Contents 1.0 General Description...................................................................................................................................................................... 5 2.0 Device Varieties .......................................................................................................................................................................... 7 3.0 Architectural Overview ................................................................................................................................................................. 9 4.0 Memory Organization ................................................................................................................................................................. 13 5.0 I/O Port ....................................................................................................................................................................................... 21 6.0 TMR0 Module and TMR0 Register............................................................................................................................................. 25 7.0 Analog-to-Digital (A/D) converter ............................................................................................................................................... 29 ...

Page 6

PIC10F220/222 NOTES: DS41270B-page 4 Preliminary © 2006 Microchip Technology Inc. ...

Page 7

GENERAL DESCRIPTION The PIC10F220/222 devices, from Technology, are low-cost, high-performance, 8-bit, fully-static Flash-based CMOS microcontrollers. They employ a RISC architecture with only 33 single-word/ single-cycle instructions. All instructions are single- cycle (1 s) except for program branches, which take ...

Page 8

PIC10F220/222 NOTES: DS41270B-page 6 Preliminary © 2006 Microchip Technology Inc. ...

Page 9

DEVICE VARIETIES A variety of packaging options are available. Depend- ing on application and production requirements, the proper device option can be selected using the information in this section. When placing orders, please use the PIC10F220/222 Product Identification System ...

Page 10

PIC10F220/222 NOTES: DS41270B-page 8 Preliminary © 2006 Microchip Technology Inc. ...

Page 11

ARCHITECTURAL OVERVIEW The high performance of the PIC10F220/222 devices can be attributed to a number of architectural features commonly found in RISC microprocessors. To begin with, the PIC10F220/222 devices use a Harvard archi- tecture in which program and data ...

Page 12

PIC10F220/222 FIGURE 3-1: BLOCK DIAGRAM 9-10 Program Counter Flash 512 256 x 12 Program STACK1 Memory STACK2 Program 12 Bus Instruction Reg Direct Addr 8 Device Reset Timer Instruction Power-on Decode & Reset Control Watchdog Timer Timing ...

Page 13

Clocking Scheme/Instruction Cycle The clock is internally divided by four to generate four non-overlapping quadrature clocks, namely Q1, Q2, Q3 and Q4. Internally, the PC is incremented every Q1, and the instruction is fetched from program memory and latched ...

Page 14

PIC10F220/222 NOTES: DS41270B-page 12 Preliminary © 2006 Microchip Technology Inc. ...

Page 15

MEMORY ORGANIZATION The PIC10F220/222 memories are organized into pro- gram memory and data memory. Data memory banks are accessed using the File Select Register (FSR). 4.1 Program Memory Organization for the PIC10F220 The PIC10F220 devices have a 9-bit Program ...

Page 16

PIC10F220/222 4.3 Data Memory Organization Data memory is composed of registers or bytes of RAM. Therefore, data memory for a device is specified by its register file. The register file is divided into two functional groups: Special Function Registers (SFR) ...

Page 17

TABLE 4-1: SPECIAL FUNCTION REGISTER (SFR) SUMMARY Address Name Bit 7 Bit 6 00h INDF Uses contents of FSR to address data memory (not a physical register) 01h TMR0 8-Bit Real-Time Clock/Counter (1) 02h PCL Low Order 8 Bits of ...

Page 18

PIC10F220/222 REGISTER 4-1: STATUS REGISTER: (ADDRESS: 03h) R/W-0 R/W-0 R/W-0 GPWUF — — bit 7 Legend Readable bit W = Writable bit -n = Value at POR ‘1’ = Bit is set bit 7 GPWUF: GPIO Reset bit ...

Page 19

OPTION Register The OPTION register is a 8-bit wide, write-only register, which contains various control bits to configure the Timer0/WDT prescaler and Timer0. The OPTION register is not memory mapped and is therefore only addressable by executing the OPTION ...

Page 20

PIC10F220/222 4.6 OSCCAL Register The Oscillator Calibration (OSCCAL) register is used to calibrate the internal precision 4/8 MHz oscillator contains seven bits for calibration Note: Erasing the device will also erase the pre- programmed internal calibration value for ...

Page 21

Program Counter As a program instruction is executed, the Program Counter (PC) will contain the address of the next program instruction to be executed. The PC value is increased by one every instruction cycle, unless an instruction changes the ...

Page 22

PIC10F220/222 4.9 Indirect Data Addressing; INDF and FSR Registers The INDF register is not a physical register. Addressing INDF actually addresses the register whose address is contained in the FSR register (FSR is a pointer). This is indirect addressing. 4.9.1 ...

Page 23

I/O PORT As with any other register, the I/O register(s) can be written and read under program control. However, read instructions (e.g., MOVF GPIO, W) always read the I/O pins independent of the pin’s Input/Output modes. On Reset, all ...

Page 24

PIC10F220/222 FIGURE 5-2: BLOCK DIAGRAM OF GP0 AND GP1 GPPU Data Bus D Q Data WR Latch Port Reg D Q TRIS Latch TRIS ‘f’ Reset Analog Enable RD Port Mis-Match ADC ...

Page 25

TABLE 5-3: SUMMARY OF PORT REGISTERS Address Name Bit 7 Bit 6 N/A TRISGPIO — — N/A OPTION GPWU GPPU 03h STATUS GPWUF — 06h GPIO — — Legend: Shaded cells not used by Port registers, read as ‘0’, – ...

Page 26

PIC10F220/222 NOTES: DS41270B-page 24 Preliminary © 2006 Microchip Technology Inc. ...

Page 27

TMR0 MODULE AND TMR0 REGISTER The Timer0 module has the following features: • 8-bit timer/counter register, TMR0 • Readable and writable • 8-bit software programmable prescaler • Internal or external clock select: - Edge select for external clock Figure ...

Page 28

PIC10F220/222 FIGURE 6-3: TIMER0 TIMING: INTERNAL CLOCK/PRESCALE 1 ...

Page 29

TIMER0 INCREMENT DELAY Since the prescaler output is synchronized with the internal clocks, there is a small delay from the time the external clock edge occurs to the time the Timer0 mod- ule is actually incremented. Figure 6-4 shows ...

Page 30

PIC10F220/222 6.2.1 SWITCHING PRESCALER ASSIGNMENT The prescaler assignment is fully under software control (i.e., it can be changed “on-the-fly” during pro- gram execution). To avoid an unintended device Reset, the following instruction sequence (Example 6-1) must be executed when changing ...

Page 31

ANALOG-TO-DIGITAL (A/D) CONVERTER The A/D converter allows conversion of an analog signal into an 8-bit digital signal. 7.1 Clock Divisors The A/D Converter has a single clock source setting, INTOSC/4. The A/D Converter requires complete a ...

Page 32

PIC10F220/222 7.7 Analog Conversion Result Register The ADRES register contains the results of the last conversion. These results are present during the sam- pling period of the next analog conversion process. After the sampling period is over, ADRES is cleared ...

Page 33

REGISTER 7-1: ADCON0 REGISTER (ADDRESS 07h) (CONTINUED) bit 0 ADON: ADC Enable bit 1 = ADC module is operating 0 = ADC module is shut-off and consumes no power Note 1: When the ANS bits are set, the channel(s) selected ...

Page 34

PIC10F220/222 7.9 A/D Acquisition Requirements For the ADC to meet its specified accuracy, the charge holding capacitor (C ) must be allowed to fully HOLD charge to the input channel voltage level. The Analog Input model is shown in Figure ...

Page 35

SPECIAL FEATURES OF THE CPU What sets a microcontroller apart from other proces- sors are special circuits that deal with the needs of real- time applications. The PIC10F220/222 microcontrol- lers have a host of such features intended to maximize ...

Page 36

PIC10F220/222 8.2 Oscillator Configurations 8.2.1 OSCILLATOR TYPES The PIC10F220/222 devices are offered with internal oscillator mode only. • INTOSC: Internal 4/8 MHz Oscillator 8.2.2 INTERNAL 4/8 MHz OSCILLATOR The internal oscillator provides a 4/8 MHz (nominal) system clock (see Section ...

Page 37

TABLE 8-2: RESET CONDITION FOR SPECIAL REGISTERS Power-on Reset MCLR Reset during normal operation MCLR Reset during Sleep WDT Reset during Sleep WDT Reset normal operation Wake-up from Sleep on pin change Legend unchanged unknown, – ...

Page 38

PIC10F220/222 FIGURE 8-2: SIMPLIFIED BLOCK DIAGRAM OF ON-CHIP RESET CIRCUIT V DD Power-up Detect GP3/MCLR/V PP MCLRE WDT Reset WDT Time-out Pin Change Sleep Wake-up on pin Change Reset FIGURE 8-3: TIME-OUT SEQUENCE ON POWER-UP (MCLR PULLED LOW ...

Page 39

FIGURE 8-5: TIME-OUT SEQUENCE ON POWER-UP (MCLR TIED TO V TIME V DD MCLR Internal POR DRT Time-out Internal Reset Note: When V rises slowly, the T DD value. In this example, the chip will reset properly if, and only ...

Page 40

PIC10F220/222 8.5 Device Reset Timer (DRT) On the PIC10F220/222 devices, the DRT runs any time the device is powered up. The DRT operates on an internal oscillator. The pro- cessor is kept in Reset as long as the DRT is ...

Page 41

FIGURE 8-6: WATCHDOG TIMER BLOCK DIAGRAM From Timer0 Clock Source (Figure 6-5) Watchdog Timer WDT Enable Configuration Bit Note 1: T0CS, T0SE, PSA, PS<2:0> are bits in the OPTION register. TABLE 8-4: SUMMARY OF REGISTERS ASSOCIATED WITH THE WATCHDOG TIMER ...

Page 42

PIC10F220/222 8.8 Reset on Brown-out A Brown-out is a condition where device power (V dips below its minimum value, but not to zero, and then recovers. The device should be reset in the event of a Brown-out. To reset PIC10F220/222 ...

Page 43

WAKE-UP FROM SLEEP The device can wake-up from Sleep through one of the following events external Reset input on GP3/MCLR/V when configured as MCLR Watchdog Timer Time-out Reset (if WDT was enabled change ...

Page 44

PIC10F220/222 NOTES: DS41270B-page 42 Preliminary © 2006 Microchip Technology Inc. ...

Page 45

INSTRUCTION SET SUMMARY The PIC16 instruction set is highly orthogonal and is comprised of three basic categories. • Byte-oriented operations • Bit-oriented operations • Literal and control operations Each PIC16 instruction is a 12-bit word divided into an opcode, ...

Page 46

PIC10F220/222 TABLE 9-2: INSTRUCTION SET SUMMARY Mnemonic, Description Operands f,d Add W and f ADDWF f,d AND W with f ANDWF f Clear f CLRF – Clear W CLRW f, d Complement f COMF f, d Decrement f DECF f, ...

Page 47

Instruction Description ADDWF Add W and f Syntax: [ label ] ADDWF f,d Operands Operation: (W) + (f) (destination) Status Affected: C, DC, Z Description: Add the contents of the W register and register ‘f’. ...

Page 48

PIC10F220/222 BTFSS Bit Test f, Skip if Set Syntax: [ label ] BTFSS f,b Operands < 7 Operation: skip if (f<b> Status Affected: None Description: If bit ‘b’ in register ‘f’ is ‘1’, ...

Page 49

DECF Decrement f Syntax: [ label ] DECF f,d Operands [0,1] Operation: (f) – 1 (dest) Status Affected: Z Description: Decrement register ‘f’. If ‘d’ is ‘0’, the result is stored in the W register. If ...

Page 50

PIC10F220/222 IORWF Inclusive OR W with f Syntax: [ label ] IORWF f,d Operands [0,1] Operation: (W).OR. (f) (dest) Status Affected: Z Description: Inclusive OR the W register with register ‘f’. If ‘d’ is ‘0’, the ...

Page 51

RETLW Return with Literal in W Syntax: [ label ] RETLW k Operands 255 Operation: k (W); TOS PC Status Affected: None Description: The W register is loaded with the eight-bit literal ‘k’. The program counter is loaded ...

Page 52

PIC10F220/222 TRIS Load TRIS Register Syntax: [ label ] TRIS f Operands Operation: (W) TRIS register f Status Affected: None Description: TRIS register ‘f’ loaded with the contents of the W ...

Page 53

ELECTRICAL CHARACTERISTICS (†) Absolute Maximum Ratings Ambient temperature under bias.............................................................................................................-40°C to +125°C Storage temperature ...............................................................................................................................-65°C to +150°C Voltage on V with respect to V ..................................................................................................................0 to +6. Voltage on MCLR with respect to V .............................................................................................................0 to +13.5V ...

Page 54

PIC10F220/222 FIGURE 10-1: VOLTAGE-FREQUENCY GRAPH, -40 C 6.0 5.5 5.0 4 (Volts) 4.0 3.5 3.0 2.5 2.0 0 DS41270B-page 52 T +125 Frequency (MHz) Preliminary 20 25 © 2006 Microchip Technology Inc. ...

Page 55

DC Characteristics: PIC10F220/222 (Industrial) DC CHARACTERISTICS Param Sym Characteristic No. D001 V Supply Voltage DD D002 V RAM Data Retention Voltage DR D003 V V Start Voltage to ensure POR DD Power-on Reset D004 S V Rise Rate to ...

Page 56

PIC10F220/222 10.2 DC Characteristics: PIC10F220/222 (Extended) DC CHARACTERISTICS Param Sym Characteristic No. D001 V Supply Voltage DD D002 V RAM Data Retention Voltage DR D003 V V Start Voltage to ensure POR DD Power-on Reset D004 S V Rise Rate ...

Page 57

DC CHARACTERISTICS: PIC10F220/222 (Industrial, Extended) TABLE 10-1: DC CHARACTERISTICS Param Sym Characteristic No. V Input Low Voltage IL I/O ports: D030 with TTL buffer D030A D031 with Schmitt Trigger buffer D032 MCLR, T0CKI V Input High Voltage IH I/O ports: ...

Page 58

PIC10F220/222 TABLE 10-2: PULL-UP RESISTOR RANGES V (Volts) Temperature ( C) DD GP0/GP1 2.0 - 125 5.5 - 125 GP3 2.0 - 125 5.5 - 125 Legend: TBD = To Be determined. ...

Page 59

Timing Parameter Symbology and Load Conditions The timing parameter symbols have been created following one of the following formats: 1. TppS2ppS 2. TppS T F Frequency Lowercase subscripts (pp) and their meanings CLKOUT cy Cycle ...

Page 60

PIC10F220/222 FIGURE 10-3: RESET, WATCHDOG TIMER AND DEVICE RESET TIMER TIMING V DD MCLR Internal POR 32 DRT (2) Timeout Internal Reset Watchdog Timer Reset (1) I/O pin Note 1: I/O pins must be taken out of High-impedance mode by ...

Page 61

TABLE 10-5: TIMER0 CLOCK REQUIREMENTS AC CHARACTERISTICS Param Sym Characteristic No. 40 Tt0H T0CKI High Pulse Width 41 Tt0L T0CKI Low Pulse Width 42 Tt0P T0CKI Period * These parameters are characterized but not tested. Note 1: Data in the ...

Page 62

PIC10F220/222 TABLE 10-7: A/D CONVERTER CHARACTERISTICS (PIC10F222) Param Sym Characteristic No. A01 N Resolution R A03 E Integral Error IL A04 E Differential Error DL A05 E Full-scale Range FS A06 E Offset Error OFF A07 E Gain Error GN ...

Page 63

DEVELOPMENT SUPPORT ® The PICmicro microcontrollers are supported with a full range of hardware and software development tools: • Integrated Development Environment ® - MPLAB IDE Software • Assemblers/Compilers/Linkers TM - MPASM Assembler - MPLAB C18 and MPLAB C30 ...

Page 64

PIC10F220/222 11.2 MPASM Assembler The MPASM Assembler is a full-featured, universal macro assembler for all PICmicro MCUs. The MPASM Assembler generates relocatable object files for the MPLINK Object Linker, Intel files, MAP files to detail memory usage and symbol reference, ...

Page 65

MPLAB ICE 2000 High-Performance In-Circuit Emulator The MPLAB ICE 2000 In-Circuit Emulator is intended to provide the product development engineer with a complete microcontroller design tool set for PICmicro microcontrollers. Software control of the MPLAB ICE 2000 In-Circuit Emulator ...

Page 66

PIC10F220/222 11.11 PICSTART Plus Development Programmer The PICSTART Plus Development Programmer is an easy-to-use, low-cost, prototype programmer. It connects to the PC via a COM (RS-232) port. MPLAB Integrated Development Environment software makes using the programmer simple and efficient. The ...

Page 67

DC AND AC CHARACTERISTICS GRAPHS AND CHARTS Graphs and charts are not available at this time. © 2006 Microchip Technology Inc. PIC10F220/222 Preliminary DS41270B-page 65 ...

Page 68

PIC10F220/222 NOTES: DS41270B-page 66 Preliminary © 2006 Microchip Technology Inc. ...

Page 69

PACKAGING INFORMATION 13.1 Package Marking Information 6-Lead SOT-23 XXNN 8-Lead PDIP XXXXXXXX XXXXXNNN YYWW Legend: XX...X Customer-specific information Y Year code (last digit of calendar year) YY Year code (last 2 digits of calendar year) WW Week code (week ...

Page 70

PIC10F220/222 6-Lead Plastic Small Outline Transistor (OT) (SOT-23 Dimension Limits Number of Pins Pitch Outside lead pitch Overall Height Molded Package Thickness Standoff Overall Width Molded Package Width Overall Length Foot Length Foot Angle Lead ...

Page 71

Plastic Dual In-line (P) – 300 mil Body (PDIP Dimension Limits Number of Pins Pitch Top to Seating Plane Molded Package Thickness Base to Seating Plane Shoulder to Shoulder Width Molded Package Width Overall Length ...

Page 72

PIC10F220/222 APPENDIX A: REVISION HISTORY Revision A Original release of document. Revision B (03/2006) Table 3-1, GP1; Section 4.7, Program Counter; Table 5- 2; Figure 8-5; Section 9.1, ANDWF, SLEEP, SUBWF, SWAPF, XORLW. DS41270B-page 70 Preliminary © 2006 Microchip Technology ...

Page 73

INDEX A ALU ..................................................................................... 11 Assembler MPASM Assembler..................................................... 64 B Block Diagram On-Chip Reset Circuit ................................................. 38 Timer0......................................................................... 27 TMR0/WDT Prescaler................................................. 30 Watchdog Timer.......................................................... 41 Brown-Out Protection Circuit .............................................. Compilers MPLAB C18 ................................................................ 64 MPLAB C30 ................................................................ ...

Page 74

PIC10F220/222 Z Zero bit ................................................................................ 11 DS41270B-page 72 Preliminary © 2006 Microchip Technology Inc. ...

Page 75

THE MICROCHIP WEB SITE Microchip provides online support via our WWW site at www.microchip.com. This web site is used as a means to make files and information easily available to customers. Accessible by using your favorite Internet browser, the web ...

Page 76

PIC10F220/222 READER RESPONSE It is our intention to provide you with the best documentation possible to ensure successful use of your Microchip prod- uct. If you wish to provide your comments on organization, clarity, subject matter, and ways in which ...

Page 77

PRODUCT IDENTIFICATION SYSTEM To order or obtain information, e.g., on pricing or delivery, refer to the factory or the listed sales office PART NO. X /XX Device Temperature Package Range (1) Device: PIC10F220 , PIC10F222 Temperature I = -40 C ...

Page 78

W ORLDWIDE AMERICAS ASIA/PACIFIC Corporate Office Australia - Sydney 2355 West Chandler Blvd. Tel: 61-2-9868-6733 Chandler, AZ 85224-6199 Fax: 61-2-9868-6755 Tel: 480-792-7200 China - Beijing Fax: 480-792-7277 Tel: 86-10-8528-2100 Technical Support: Fax: 86-10-8528-2104 http://support.microchip.com China - Chengdu Web Address: Tel: ...

Related keywords