PIC16HV540-04I/SS Microchip Technology, PIC16HV540-04I/SS Datasheet - Page 17

IC MCU OTP 512X12 20SSOP

PIC16HV540-04I/SS

Manufacturer Part Number
PIC16HV540-04I/SS
Description
IC MCU OTP 512X12 20SSOP
Manufacturer
Microchip Technology
Series
PIC® 16Cr

Specifications of PIC16HV540-04I/SS

Core Processor
PIC
Core Size
8-Bit
Speed
4MHz
Peripherals
Brown-out Detect/Reset, POR, WDT
Number Of I /o
12
Program Memory Size
768B (512 x 12)
Program Memory Type
OTP
Ram Size
25 x 8
Voltage - Supply (vcc/vdd)
3.5 V ~ 15 V
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Package / Case
20-SSOP
Processor Series
PIC16H
Core
PIC
Data Bus Width
8 bit
Data Ram Size
25 B
Maximum Clock Frequency
4 MHz
Number Of Programmable I/os
12
Number Of Timers
8
Operating Supply Voltage
3.5 V to 15 V
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
Minimum Operating Temperature
- 40 C
For Use With
309-1016 - ADAPTER 20-SSOP TO 18-DIP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Data Converters
-
Connectivity
-
Lead Free Status / Rohs Status
 Details
4.8
The INDF register is not a physical register. Addressing
INDF actually addresses the register whose address is
contained in the FSR register (FSR is a pointer). This is
indirect addressing.
EXAMPLE 4-3:
• 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
• Increment the value of the FSR register by one
• A read of the INDR 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).
A simple program to clear RAM locations 10h-1Fh
using indirect addressing is shown in Example 4-4.
FIGURE 4-4:
of 10h
(FSR = 06)
value of 0Ah.
2000 Microchip Technology Inc.
Indirect Data Addressing; INDF and
FSR Registers
(Note 1)
DIRECT/INDIRECT ADDRESSING
(FSR)
6
INDIRECT ADDRESSING
5
Direct Addressing
location select
Note 1:
Data
Memory
4
2:
(opcode)
(2)
Bits 5 and 6 are unimplemented and read as 1’s.
For register map detail, see Section 4.2.
00h
0Fh
10h
0
1Fh
Preliminary
Bank 0
EXAMPLE 4-4:
NEXT
CONTINUE
The FSR is a 5-bit (PIC16HV540) wide register. It is
used in conjunction with the INDF register to indirectly
address the data memory area.
The FSR<4:0> bits are used to select data memory
addresses 00h to 1Fh.
PIC16HV540: Do not use banking. FSR<6:5> are
unimplemented and read as '1's.
(Note 1)
6
Indirect Addressing
5
movlw
movwf
clrf
incf
btfsc
goto
:
4
HOW TO CLEAR RAM
USING INDIRECT
ADDRESSING
location select
(FSR)
PIC16HV540
0x10
FSR
INDF
FSR,F
FSR,4
NEXT
;YES, continue
0
;initialize pointer
; to RAM
;clear INDF register
;inc pointer
;all done?
;NO, clear next
DS40197B-page 17

Related parts for PIC16HV540-04I/SS