PIC12LC671-04I/SM Microchip Technology, PIC12LC671-04I/SM Datasheet - Page 43

no-image

PIC12LC671-04I/SM

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

Specifications of PIC12LC671-04I/SM

Core Processor
PIC
Core Size
8-Bit
Speed
4MHz
Peripherals
POR, WDT
Number Of I /o
5
Program Memory Size
1.75KB (1K x 14)
Program Memory Type
OTP
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
2.5 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
Processor Series
PIC12LC
Core
PIC
Data Bus Width
8 bit
Data Ram Size
128 B
Maximum Clock Frequency
4 MHz
Number Of Programmable I/os
5
Number Of Timers
8
Operating Supply Voltage
2.5 V to 5.5 V
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
ICE2000
Minimum Operating Temperature
- 40 C
On-chip Adc
8
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Connectivity
-
Lead Free Status / Rohs Status
 Details
7.3.1
The prescaler assignment is fully under software con-
trol, (i.e., it can be changed “on-the-fly” during program
execution).
EXAMPLE 7-1:
TABLE 7-1:
Address Name
01h
0Bh/8Bh
81h
85h
Legend: x = unknown, u = unchanged, - = unimplemented locations read as '0'. Shaded cells are not used by Timer0.
Note:
1999 Microchip Technology Inc.
BCF
CLRF
BSF
CLRWDT
MOVLW
MOVWF
BCF
SWITCHING PRESCALER ASSIGNMENT
TMR0
INTCON
OPTION GPPU INTEDG
TRIS
STATUS, RP0
TMR0
STATUS, RP0
b’xxxx1xxx’
OPTION_REG
STATUS, RP0
To avoid an unintended device RESET, the
following instruction sequence (shown in
Example 7-1) must be executed when
changing the prescaler assignment from
Timer0 to the WDT. This sequence must
be followed even if the WDT is disabled.
REGISTERS ASSOCIATED WITH TIMER0
Timer0 module’s register
CHANGING PRESCALER
(TIMER0 WDT)
Bit 7
GIE
;Bank 0
;Clear TMR0 & Prescaler
;Bank 1
;Clears WDT
;Select new prescale
;value & WDT
;Bank 0
PEIE
Bit 6
TRIS5
T0CS
Bit 5
T0IE
TRIS4
T0SE
INTE
Bit 4
TRIS3
GPIE
Bit 3
PSA
To change prescaler from the WDT to the Timer0 mod-
ule, use the sequence shown in Example 7-2.
EXAMPLE 7-2:
CLRWDT
BSF
MOVLW
MOVWF
BCF
TRIS2
Bit 2
T0IF
PS2
TRIS1
Bit 1
INTF
PS1
STATUS, RP0 ;Bank 1
b’xxxx0xxx’ ;Select TMR0, new
OPTION_REG
STATUS, RP0 ;Bank 0
CHANGING PRESCALER
(WDT TIMER0)
TRIS0
GPIF
Bit 0
PS0
PIC12C67X
;Clear WDT and
;prescaler
;prescale value and
;clock source
xxxx xxxx
0000 000x
1111 1111
--11 1111
Value on
POR
DS30561B-page 43
uuuu uuuu
0000 000u
1111 1111
--11 1111
Value on
all other
Resets

Related parts for PIC12LC671-04I/SM