PIC16LC433T-I/SO Microchip Technology, PIC16LC433T-I/SO Datasheet - Page 41

IC MCU CMOS 8BIT 10MHZ 2K 18SOIC

PIC16LC433T-I/SO

Manufacturer Part Number
PIC16LC433T-I/SO
Description
IC MCU CMOS 8BIT 10MHZ 2K 18SOIC
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Datasheet

Specifications of PIC16LC433T-I/SO

Core Processor
PIC
Core Size
8-Bit
Speed
10MHz
Connectivity
LIN (Local Interconnect Network)
Peripherals
POR, WDT
Number Of I /o
6
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
18-SOIC (7.5mm Width)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
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:
2001 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
Bit 7
GIE
;Bank 0
;Clear TMR0 & Prescaler
;Bank 1
;Clears WDT
;Select new prescale
;value & WDT
;Bank 0
PEIE
Bit 6
WDT)
TRIS5
T0CS
Bit 5
T0IE
Advance Information
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
TRIS0
GPIF
Bit 0
PS0
PIC16C433
;Clear WDT and
;prescaler
;prescale value and
;clock source
xxxx xxxx
0000 000x
1111 1111
--11 1111
Value on
TIMER0)
POR
DS41139A-page 39
uuuu uuuu
0000 000u
1111 1111
--11 1111
Value on
all other
RESETS

Related parts for PIC16LC433T-I/SO