PIC10F220-I/OT Microchip Technology, PIC10F220-I/OT Datasheet - Page 30
![384B Flash, 16B RAM, 4 I/O, 8bit ADC 6 SOT-23 BAG](/photos/16/3/160337/6-sot23-large-300dpi-lyrd_sml.jpg)
PIC10F220-I/OT
Manufacturer Part Number
PIC10F220-I/OT
Description
384B Flash, 16B RAM, 4 I/O, 8bit ADC 6 SOT-23 BAG
Manufacturer
Microchip Technology
Series
PIC® 10Fr
Datasheet
1.PIC10F220-IMC.pdf
(86 pages)
Specifications of PIC10F220-I/OT
Processor Series
PIC10F
Core
RISC
Data Bus Width
8 bit
Program Memory Type
Flash
Program Memory Size
256 B
Data Ram Size
16 B
Interface Type
RS-232, USB
Maximum Clock Frequency
8 MHZ
Number Of Programmable I/os
4
Number Of Timers
1
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
Package / Case
SOT-23-6
Operating Temperature Range
- 40 C to + 85 C
Processor To Be Evaluated
PIC10F220
Supply Current (max)
100 nA
Core Processor
PIC
Core Size
8-Bit
Speed
8MHz
Connectivity
-
Peripherals
POR, WDT
Number Of I /o
4
Eeprom Size
-
Ram Size
16 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 2x8b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Lead Free Status / Rohs Status
Details
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC10F220-I/OT
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
PIC10F220/222
6.2.1
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 the prescaler assignment
from Timer0 to the WDT.
EXAMPLE 6-1:
FIGURE 6-5:
DS41270E-page 28
CLRWDT
CLRF
MOVLW
OPTION
CLRWDT
MOVLW
OPTION
Note 1: T0CS, T0SE, PSA, PS<2:0> are bits in the OPTION register.
GP2/T0CKI
WDT Enable bit
TMR0
‘00xx1111’b ;These 3 lines (5, 6, 7)
‘00xx1xxx’b ;Set Postscaler to
Watchdog
2: T0CKI is shared with pin GP2 on the PIC10F220/222.
SWITCHING PRESCALER
ASSIGNMENT
Timer
Pin
T
CY
(= F
T0SE
(2)
OSC
CHANGING PRESCALER
(TIMER0 → WDT)
BLOCK DIAGRAM OF THE TIMER0/WDT PRESCALER
;Clear WDT
;Clear TMR0 & Prescaler
;are required only if
;desired
;PS<2:0> are 000 or 001
;desired WDT rate
(1)
/4)
0
1
PSA
M
U
X
(1)
0
1
T0CS
M
U
X
(1)
8-bit Prescaler
0
8-to-1 MUX
Time-Out
8
MUX
WDT
To change prescaler from the WDT to the Timer0
module, use the sequence shown in Example 6-2. This
sequence must be used even if the WDT is disabled. A
CLRWDT instruction should be executed before
switching the prescaler.
EXAMPLE 6-2:
1
0
CLRWDT
MOVLW
OPTION
1
PSA
M
U
X
(1)
‘xxxx0xxx’
PSA
PS<2:0>
(1)
Cycles
Sync
2
CHANGING PRESCALER
(WDT→TIMER0)
;Clear WDT and
;prescaler
;Select TMR0, new
;prescale value and
;clock source
© 2007 Microchip Technology Inc.
(1)
TMR0 Reg
Data Bus
8