PIC16F84-04I/SO Microchip Technology, PIC16F84-04I/SO Datasheet - Page 31
![IC MCU FLASH 1KX14 EE 18SOIC](/photos/6/76/67656/150-18-soic_sml.jpg)
PIC16F84-04I/SO
Manufacturer Part Number
PIC16F84-04I/SO
Description
IC MCU FLASH 1KX14 EE 18SOIC
Manufacturer
Microchip Technology
Series
PIC® 16Fr
Datasheets
1.PIC16F688T-ISL.pdf
(688 pages)
2.PIC16LF84A-04P.pdf
(125 pages)
3.PIC16LF84A-04P.pdf
(4 pages)
Specifications of PIC16F84-04I/SO
Core Size
8-Bit
Program Memory Size
1.75KB (1K x 14)
Core Processor
PIC
Speed
4MHz
Peripherals
POR, WDT
Number Of I /o
13
Program Memory Type
FLASH
Eeprom Size
64 x 8
Ram Size
68 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 6 V
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Package / Case
18-SOIC (7.5mm Width)
Controller Family/series
PIC16F
No. Of I/o's
13
Eeprom Memory Size
64Byte
Ram Memory Size
68Byte
Cpu Speed
4MHz
No. Of Timers
1
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
XLT18SO-1 - SOCKET TRANSITION 18SOIC 300MIL309-1075 - ADAPTER 18-SOIC TO 18-SOIC309-1011 - ADAPTER 18-SOIC TO 18-DIP309-1010 - ADAPTER 18-SOIC TO 18-DIPAC164010 - MODULE SKT PROMATEII DIP/SOIC
Data Converters
-
Connectivity
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant
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.
Note:
1998 Microchip Technology Inc.
0Bh
01h
81h
85h
SWITCHING PRESCALER ASSIGNMENT
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.
INTCON
TRISA
TMR0
REG
REGISTERS ASSOCIATED WITH TIMER0
RBPU
Bit 7
GIE
—
instruction
INTEDG
Bit 6
EEIE
—
T0CS
Bit 5
T0IE
—
sequence
Timer0 module’s register
TRISA4
T0SE
Bit 4
INTE
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_REG
STATUS, RP0
STATUS, RP0
b’xxxx0xxx’
OPTION_REG
STATUS, RP0
TRISA1
Bit 1
INTF
PS1
CHANGING PRESCALER
(TIMER0 WDT)
CHANGING PRESCALER
(WDT TIMER0)
TRISA0
Bit 0
RBIF
PS0
;Bank 0
;Clear TMR0
; and Prescaler
;Bank 1
;Clears WDT
;Select new
;Bank 0
;Clear WDT and
; prescaler
;Bank 1
;Select TMR0, new
; prescale value
’ and clock source
;Bank 0
PIC16F8X
xxxx xxxx
0000 000x
1111 1111
---1 1111
Power-on
Value on
; prescale value
;
Reset
DS30430C-page 31
other resets
Value on all
uuuu uuuu
0000 0000
1111 1111
---1 1111