PIC16F83-04/P Microchip Technology, PIC16F83-04/P Datasheet - Page 31
![IC MCU FLASH 512X14 EE 18DIP](/photos/6/76/67657/18-dip_300mil__sml.jpg)
PIC16F83-04/P
Manufacturer Part Number
PIC16F83-04/P
Description
IC MCU FLASH 512X14 EE 18DIP
Manufacturer
Microchip Technology
Series
PIC® 16Fr
Datasheets
1.PIC16F688T-ISL.pdf
(688 pages)
2.PIC16LF84A-04P.pdf
(125 pages)
3.PIC16LF83-04P.pdf
(4 pages)
Specifications of PIC16F83-04/P
Core Size
8-Bit
Program Memory Size
896B (512 x 14)
Oscillator Type
External
Core Processor
PIC
Speed
4MHz
Peripherals
POR, WDT
Number Of I /o
13
Program Memory Type
FLASH
Eeprom Size
64 x 8
Ram Size
36 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 6 V
Operating Temperature
0°C ~ 70°C
Package / Case
18-DIP (0.300", 7.62mm)
Controller Family/series
PIC16F
No. Of I/o's
13
Eeprom Memory Size
64Byte
Ram Memory Size
36Byte
Cpu Speed
4MHz
No. Of
RoHS Compliant
Processor Series
PIC16F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
36 B
Maximum Clock Frequency
10 MHz
Number Of Programmable I/os
13
Number Of Timers
1
Operating Supply Voltage
2 V to 6 V
Maximum Operating Temperature
+ 70 C
Mounting Style
Through Hole
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
ICE2000
Minimum Operating Temperature
0 C
Data Rom Size
64 B
Height
3.3 mm
Length
22.86 mm
Supply Voltage (max)
6 V
Supply Voltage (min)
2 V
Width
6.35 mm
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Data Converters
-
Connectivity
-
Lead Free Status / Rohs Status
Details
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