PIC16F785-E/SS Microchip Technology, PIC16F785-E/SS Datasheet - Page 24

20 PIN, 3.5 KB STD FLASH, 128 RAM, 18 I/O PB FREE,

PIC16F785-E/SS

Manufacturer Part Number
PIC16F785-E/SS
Description
20 PIN, 3.5 KB STD FLASH, 128 RAM, 18 I/O PB FREE,
Manufacturer
Microchip Technology
Series
PIC® 16Fr

Specifications of PIC16F785-E/SS

Rohs Compliant
YES
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
17
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 14x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
20-SSOP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
XLT20SS1-1 - SOCKET TRANSITION 20DIP 20SSOPAC162060 - HEADER INTRFC MPLAB ICD2 20PIN
Connectivity
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
PIC16F785/HV785
2.4
The INDF register is not a physical register. Addressing
the INDF register will cause indirect addressing.
Indirect addressing is possible by using the INDF
register. Any instruction using the INDF register
actually accesses data pointed to by the File Select
Register (FSR). Reading INDF itself indirectly will
produce 00h. Writing to the INDF register indirectly
results in a no operation (although Status bits may be
affected). An effective 9-bit address is obtained by
concatenating the 8-bit FSR and the IRP bit in the
STATUS Register, as shown in Figure 2-4.
FIGURE 2-4:
DS41249E-page 22
Bank Select
RP1RP0
Note:
Indirect Addressing, INDF and
FSR Registers
Direct Addressing
6
For memory map detail see Figure 2-2.
Data
Memory
Location Select
DIRECT/INDIRECT ADDRESSING PIC16F785/HV785
From Opcode
7FH
00H
Bank 0
00
0
Bank 1
01
Bank 2
10
A simple program to clear RAM location 20h-2Fh using
indirect addressing is shown in Example 2-1.
EXAMPLE 2-1:
NEXT CLRF
CONTINUE
Bank 3
MOVLW 0x20
MOVWF FSR
INCF
BTFSS FSR,4
GOTO
11
IRP
Bank Select
180h
1FFh
INDF
FSR
NEXT
7
INDIRECT ADDRESSING
;initialize pointer
;to RAM
;clear INDF register
;increment pointer
;all done?
;no clear next
;yes continue
© 2008 Microchip Technology Inc.
Indirect Addressing
File Select Register
Location Select
0

Related parts for PIC16F785-E/SS