PIC16F84A-04/SO Microchip Technology, PIC16F84A-04/SO Datasheet - Page 172

IC MCU FLASH 1KX14 EE 18SOIC

PIC16F84A-04/SO

Manufacturer Part Number
PIC16F84A-04/SO
Description
IC MCU FLASH 1KX14 EE 18SOIC
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F84A-04/SO

Program Memory Type
FLASH
Program Memory Size
1.75KB (1K x 14)
Package / Case
18-SOIC (7.5mm Width)
Core Processor
PIC
Core Size
8-Bit
Speed
4MHz
Peripherals
POR, WDT
Number Of I /o
13
Eeprom Size
64 x 8
Ram Size
68 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 5.5 V
Oscillator Type
External
Operating Temperature
0°C ~ 70°C
Processor Series
PIC16F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
68 B
Maximum Clock Frequency
4 MHz
Number Of Programmable I/os
13
Number Of Timers
1
Operating Supply Voltage
2 V to 5.5 V
Maximum Operating Temperature
+ 70 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
ICE2000
Minimum Operating Temperature
0 C
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
XLT18SO-1 - SOCKET TRANSITION 18SOIC 300MILI3-DB16F84A - BOARD DAUGHTER ICEPIC3309-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
PICmicro MID-RANGE MCU FAMILY
11.3
DS31011A-page 11-4
Instruction
PC
(Program
Counter)
Fetch
Instruction
Execute
TMR0
PC
(Program
Counter)
Instruction
Fetch
TMR0
Instruction
Executed
Operation
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
T0
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
T0
PC-1
PC-1
Timer mode is selected by clearing the T0CS bit (OPTION<5>). In timer mode, the Timer0 mod-
ule will increment every instruction cycle (without prescaler). If the TMR0 register is written, the
increment is inhibited for the following two instruction cycles
user can work around this by writing an adjusted value to the TMR0 register.
Counter mode is selected by setting the T0CS bit (OPTION<5>). In counter mode, Timer0 will
increment either on every rising or falling edge of the T0CKI pin. The incrementing edge is deter-
mined by the Timer0 Source Edge Select the T0SE bit (OPTION<4>). Clearing the T0SE bit
selects the rising edge. Restrictions on the external clock input are discussed in detail in Subsec-
tion
The prescaler is mutually exclusively shared between the Timer0 module and the Watchdog
Timer. The prescaler assignment is controlled in software by the PSA control bit (OPTION<3>).
Clearing the PSA bit will assign the prescaler to the Timer0 module. The prescaler is not readable
or writable. When the prescaler is assigned to the Timer0 module, prescale values of 1:2, 1:4,...,
1:256 are selectable. Subsection
Any write to the TMR0 register will cause a 2 instruction cycle (2T
TMR0 register has been written with the new value, TMR0 will not be incremented until the third
instruction cycle later
write to the TMR0 register will immediately update the TMR0 register and clear the prescaler. The
incrementing of Timer0 (TMR0 and Prescaler) will also be inhibited 2 instruction cycles (T
if the prescaler is configured as 2, then after a write to the TMR0 register TMR0 will not increment
for 4 Timer0 clocks
clocks later.
Figure 11-2: Timer0 Timing: Internal Clock/No Prescale
Figure 11-3: Timer0 Timing: Internal Clock/Prescale 1:2
MOVWF TMR0
11.5 “Using Timer0 with an External Clock”
MOVWF TMR0
T0+1
PC
T0+1
PC
MOVF TMR0,W
Write TMR0
executed
MOVF TMR0,W
T0+2
Write TMR0
executed
PC+1
(Figure
PC+1
(Figure
MOVF TMR0,W
11-3). After that, TMR0 will increment every prescaler number of
Read TMR0
reads NT0
11-2). When the prescaler is assigned to the Timer0 module, any
MOVF TMR0,W
NT0
Read TMR0
reads NT0
PC+2
11.6 “TMR0 Prescaler”
PC+2
MOVF TMR0,W
Read TMR0
reads NT0
MOVF TMR0,W
Read TMR0
reads NT0
NT0
PC+3
PC+3
NT0
.
MOVF TMR0,W
Read TMR0
reads NT0
MOVF TMR0,W
Read TMR0
reads NT0
NT0
PC+4
PC+4
details the operation of the prescaler.
(Figure 11-2
MOVF TMR0,W
Read TMR0
reads NT0
MOVF TMR0,W
1997 Microchip Technology Inc.
CY
Read TMR0
reads NT0 + 1
NT0+1
PC+5
) inhibit. That is, after the
PC+5
and
Figure
Read TMR0
reads NT0 + 1
NT0+1
Read TMR0
reads NT0 + 2
NT0+2
PC+6
PC+6
11-3). The
CY
). So
T0

Related parts for PIC16F84A-04/SO