PIC16LF84-04I/P Microchip Technology, PIC16LF84-04I/P Datasheet - Page 19

IC MCU FLASH 1KX14 EE 18DIP

PIC16LF84-04I/P

Manufacturer Part Number
PIC16LF84-04I/P
Description
IC MCU FLASH 1KX14 EE 18DIP
Manufacturer
Microchip Technology
Series
PIC® 16Fr
Datasheets

Specifications of PIC16LF84-04I/P

Core Size
8-Bit
Program Memory Size
1.75KB (1K 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
68 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 6 V
Operating Temperature
-40°C ~ 85°C
Package / Case
18-DIP (0.300", 7.62mm)
Controller Family/series
PIC16LF
No. Of I/o's
13
Eeprom Memory Size
64Byte
Ram Memory Size
68Byte
Cpu Speed
4MHz
No. Of
RoHS Compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Data Converters
-
Connectivity
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
PIC16LC84A-04I/P
4.5
The INDF register is not a physical register. Address-
ing INDF actually addresses the register whose
address is contained in the FSR register (FSR is a
pointer ). This is indirect addressing.
EXAMPLE 4-1:
• Register file 05 contains the value 10h
• Register file 06 contains the value 0Ah
• Load the value 05 into the FSR register
• A read of the INDF register will return the value of
• Increment the value of the FSR register by one
• A read of the INDF register now will return the
Reading INDF itself indirectly (FSR = 0) will produce
00h. Writing to the INDF register indirectly results in a
no-operation (although STATUS bits may be affected).
FIGURE 4-1:
bank select
10h
(FSR = 06)
value of 0Ah.
1998 Microchip Technology Inc.
RP1 RP0
Note 1: PIC16F83 and PIC16CR83 devices.
2: PIC16F84 and PIC16CR84 devices
3: For memory map detail see Figure 4-1.
Indirect Addressing; INDF and FSR
Registers
Data
Memory
location select
6
DIRECT/INDIRECT ADDRESSING
INDIRECT ADDRESSING
(3)
Direct Addressing
from opcode
00h
0Bh
0Ch
2Fh
30h
4Fh
50h
7Fh
(1)
(2)
(1)
(2)
Bank 0
00
0
Addresses
map back
to Bank 0
Bank 1
01
not used
Bank 2
10
A simple program to clear RAM locations 20h-2Fh
using indirect addressing is shown in Example 4-2.
EXAMPLE 4-2:
NEXT
CONTINUE
An effective 9-bit address is obtained by concatenating
the 8-bit FSR register and the IRP bit (STATUS<7>), as
shown in Figure 4-1. However, IRP is not used in the
PIC16F8X.
not used
Bank 3
11
IRP
bank select
movlw
movwf
clrf
incf
btfss
goto
:
00h
7Fh
HOW TO CLEAR RAM
USING INDIRECT
ADDRESSING
7
0x20
FSR
INDF
FSR
FSR,4 ;all done?
NEXT
Indirect Addressing
;initialize pointer
;
;clear INDF register
;inc pointer
;NO, clear next
;YES, continue
PIC16F8X
(FSR)
to RAM
DS30430C-page 19
location select
0

Related parts for PIC16LF84-04I/P