PIC12C672T-04I/SM Microchip Technology, PIC12C672T-04I/SM Datasheet - Page 172

no-image

PIC12C672T-04I/SM

Manufacturer Part Number
PIC12C672T-04I/SM
Description
IC MCU OTP 2KX14 A/D 8-SOIJ
Manufacturer
Microchip Technology
Series
PIC® 12Cr
Datasheets

Specifications of PIC12C672T-04I/SM

Core Processor
PIC
Core Size
8-Bit
Speed
4MHz
Peripherals
POR, WDT
Number Of I /o
5
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
OTP
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
3 V ~ 5.5 V
Data Converters
A/D 4x8b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
8-SOIC (5.3mm Width), 8-SOP, 8-SOEIAJ
For Use With
XLT08SO-1 - SOCKET TRANSITION 8SOIC 150/208AC164312 - MODULE SKT FOR PM3 16SOIC309-1048 - ADAPTER 8-SOIC TO 8-DIP309-1047 - ADAPTER 8-SOIC TO 8-DIP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Connectivity
-
PICmicro MID-RANGE MCU FAMILY
11.3
DS31011A-page 11-4
Instruction
PC
(Program
Counter)
Fetch
Instruction
Execute
TMR0
PC
(Program
Counter)
Instruction
Fetch
TMR0
Instruction
Executed
Operation
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
T0
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
T0
PC-1
PC-1
Timer mode is selected by clearing the T0CS bit (OPTION<5>). In timer mode, the Timer0 mod-
ule will increment every instruction cycle (without prescaler). If the TMR0 register is written, the
increment is inhibited for the following two instruction cycles
user can work around this by writing an adjusted value to the TMR0 register.
Counter mode is selected by setting the T0CS bit (OPTION<5>). In counter mode, Timer0 will
increment either on every rising or falling edge of the T0CKI pin. The incrementing edge is deter-
mined by the Timer0 Source Edge Select the T0SE bit (OPTION<4>). Clearing the T0SE bit
selects the rising edge. Restrictions on the external clock input are discussed in detail in Subsec-
tion
The prescaler is mutually exclusively shared between the Timer0 module and the Watchdog
Timer. The prescaler assignment is controlled in software by the PSA control bit (OPTION<3>).
Clearing the PSA bit will assign the prescaler to the Timer0 module. The prescaler is not readable
or writable. When the prescaler is assigned to the Timer0 module, prescale values of 1:2, 1:4,...,
1:256 are selectable. Subsection
Any write to the TMR0 register will cause a 2 instruction cycle (2T
TMR0 register has been written with the new value, TMR0 will not be incremented until the third
instruction cycle later
write to the TMR0 register will immediately update the TMR0 register and clear the prescaler. The
incrementing of Timer0 (TMR0 and Prescaler) will also be inhibited 2 instruction cycles (T
if the prescaler is configured as 2, then after a write to the TMR0 register TMR0 will not increment
for 4 Timer0 clocks
clocks later.
Figure 11-2: Timer0 Timing: Internal Clock/No Prescale
Figure 11-3: Timer0 Timing: Internal Clock/Prescale 1:2
MOVWF TMR0
11.5 “Using Timer0 with an External Clock”
MOVWF TMR0
T0+1
PC
T0+1
PC
MOVF TMR0,W
Write TMR0
executed
MOVF TMR0,W
T0+2
Write TMR0
executed
PC+1
(Figure
PC+1
(Figure
MOVF TMR0,W
11-3). After that, TMR0 will increment every prescaler number of
Read TMR0
reads NT0
11-2). When the prescaler is assigned to the Timer0 module, any
MOVF TMR0,W
NT0
Read TMR0
reads NT0
PC+2
11.6 “TMR0 Prescaler”
PC+2
MOVF TMR0,W
Read TMR0
reads NT0
MOVF TMR0,W
Read TMR0
reads NT0
NT0
PC+3
PC+3
NT0
.
MOVF TMR0,W
Read TMR0
reads NT0
MOVF TMR0,W
Read TMR0
reads NT0
NT0
PC+4
PC+4
details the operation of the prescaler.
(Figure 11-2
MOVF TMR0,W
Read TMR0
reads NT0
MOVF TMR0,W
1997 Microchip Technology Inc.
CY
Read TMR0
reads NT0 + 1
NT0+1
PC+5
) inhibit. That is, after the
PC+5
and
Figure
Read TMR0
reads NT0 + 1
NT0+1
Read TMR0
reads NT0 + 2
NT0+2
PC+6
PC+6
11-3). The
CY
). So
T0

Related parts for PIC12C672T-04I/SM