PIC16C84-04/P Microchip Technology, PIC16C84-04/P Datasheet - Page 29

MICRO CTRL 1KX14 EPR EEPR 18DIP

PIC16C84-04/P

Manufacturer Part Number
PIC16C84-04/P
Description
MICRO CTRL 1KX14 EPR EEPR 18DIP
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Datasheet

Specifications of PIC16C84-04/P

Core Processor
PIC
Core Size
8-Bit
Speed
4MHz
Peripherals
POR, WDT
Number Of I /o
13
Program Memory Size
1.75KB (1K x 14)
Program Memory Type
EEPROM
Eeprom Size
64 x 8
Ram Size
36 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 6 V
Oscillator Type
External
Operating Temperature
0°C ~ 70°C
Package / Case
18-DIP (0.300", 7.62mm)
Lead Free Status / RoHS Status
Request inventory verification / Request inventory verification
Data Converters
-
Connectivity
-
6.3.1
The prescaler assignment is fully under software
control (i.e., it can be changed “on the fly” during
program execution).
TABLE 6-1
Address Name
Legend: x = unknown, u = unchanged. - = unimplemented read as '0'. Shaded cells are not associated with Timer0.
1997 Microchip Technology Inc.
Note:
0Bh
01h
81h
85h
SWITCHING PRESCALER ASSIGNMENT
INTCON
OPTION
To avoid an unintended device RESET, the
following
(Example 6-1) must be executed when
changing the prescaler assignment from
Timer0 to the WDT. This sequence must be
taken even if the WDT is disabled. To
change prescaler from the WDT to the
Timer0 module use the sequence shown in
Example 6-2.
TRISA
TMR0
REGISTERS ASSOCIATED WITH TIMER0
RBPU
Bit 7
GIE
instruction
INTEDG
EEIE
Bit 6
T0CS
Bit 5
T0IE
sequence
Timer0 module’s register
TRISA4
T0SE
INTE
Bit 4
TRISA3
RBIE
Bit 3
PSA
EXAMPLE 6-1:
EXAMPLE 6-2:
BCF
CLRF
BSF
CLRWDT
MOVLW
MOVWF
BCF
CLRWDT
BSF
MOVLW
MOVWF
BCF
TRISA2
Bit 2
T0IF
PS2
STATUS, RP0
TMR0
STATUS, RP0
b'xxxx1xxx'
OPTION
STATUS, RP0
STATUS, RP0
b'xxxx0xxx'
OPTION
STATUS, RP0
TRISA1
Bit 1
INTF
PS1
CHANGING PRESCALER
(TIMER0 WDT)
CHANGING PRESCALER
(WDT TIMER0)
TRISA0
RBIF
Bit 0
PS0
;Bank 0
;Clear TMR0
; and Prescaler
;Bank 1
;Clears WDT
;Select new
; prescale value
;Bank 0
;Clear WDT and
; prescaler
;Bank 1
;Select TMR0, new
; prescale value
’ and clock source
;
;Bank 0
PIC16C84
xxxx xxxx
0000 000x
1111 1111
---1 1111
Power-on
Value on
Reset
DS30445C-page 29
other resets
Value on all
uuuu uuuu
0000 0000
1111 1111
---1 1111

Related parts for PIC16C84-04/P