PIC16C432-E/P Microchip Technology, PIC16C432-E/P Datasheet - Page 33

IC MCU CMOS 8-BIT 20MHZ 2K 20DIP

PIC16C432-E/P

Manufacturer Part Number
PIC16C432-E/P
Description
IC MCU CMOS 8-BIT 20MHZ 2K 20DIP
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Datasheets

Specifications of PIC16C432-E/P

Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Connectivity
LIN (Local Interconnect Network)
Peripherals
Brown-out Detect/Reset, POR, WDT
Number Of I /o
12
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
OTP
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
4.5 V ~ 5.5 V
Oscillator Type
External
Operating Temperature
-40°C ~ 125°C
Package / Case
20-DIP (0.300", 7.62mm)
For Use With
AC164029 - MODULE SKT PROMATEII 20DIP/SSOPDVA16XP201 - ADAPTER DEVICE FOR MPLAB-ICE
Lead Free Status / RoHS Status
Request inventory verification / Request inventory verification
Eeprom Size
-
Data Converters
-
6.3.1
The prescaler assignment is fully under software
control (i.e., it can be changed “on-the-fly” during
program execution). To avoid an unintended device
RESET,
(Example 6-1) must be executed when changing the
prescaler assignment from Timer0 to WDT.
EXAMPLE 6-1:
10.BCF
To change prescaler from the WDT to the TMR0
module, use the sequence shown in Example 6-2. This
precaution must be taken, even if the WDT is disabled.
TABLE 6-1:
01h
0Bh/8Bh
81h
85h
Legend:
Note 1: Shaded bits are not used by TMR0 module.
1.BCF
2.CLRWDT
3.CLRF
4.BSF
5.MOVLW
6.MOVWF
7.CLRWDT
8.MOVLW
9.MOVWF
Address
2002 Microchip Technology Inc.
2: TLINRX must be set to ‘1’ at all times.
— = Unimplemented locations, read as ‘0’, x = unknown, u = unchanged
the
TMR0
INTCON
OPTION
TRISA
SWITCHING PRESCALER
ASSIGNMENT
STATUS, RP0
TMR0
STATUS, RP0
'00101111’b
OPTION
'00101xxx’b
OPTION
Name
STATUS, RP0 ;Return to Bank 0
REGISTERS ASSOCIATED WITH TIMER0
following
Timer0 module register
RBPU
Bit 7
CHANGING PRESCALER
(TIMER0 WDT)
GIE
;Skip if already in
; Bank 0
;Clear WDT
;Clear TMR0 & Prescaler
;Bank 1
;These 3 lines (5, 6, 7)
; are required only
; if desired PS<2:0>
; are
; 000 or 001
;Set Postscaler to
; desired WDT rate
INTEDG
instruction
PEIE
Bit 6
T0CS
Bit 5
T0IE
sequence
TRISA4
T0SE
INTE
Bit 4
Preliminary
TRISA3
RBIE
Bit 3
PSA
EXAMPLE 6-2:
TRISA2 TLINRX
Bit 2
T0IF
CLRWDT
BSF
MOVLW
MOVWF
BCF
PS2
Bit 1
INTF
STATUS, RP0
b'xxxx0xxx'
OPTION_REG
STATUS, RP0
PS1
(2)
TRISA0 ---1 1111 ---1 1111
CHANGING PRESCALER
(WDT TIMER0)
RBIF
Bit 0
PS0
PIC16C432
;Clear WDT and
;prescaler
;Select TMR0, new
;prescale value and
;clock source
xxxx xxxx uuuu uuuu
0000 000x 0000 000u
1111 1111 1111 1111
Value on:
POR
DS41140B-page 31
All Other
Value on
RESETS

Related parts for PIC16C432-E/P