Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

PIC16LC771 Datasheet(PDF) 43 Page - Microchip Technology

Part # PIC16LC771
Description  18/20-Pin, 8-Bit CMOS Microcontrollers with 10/12-Bit A/D
PDF  224 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC16LC771 Datasheet(HTML) 43 Page - Microchip Technology

Back Button PIC16LC771 Datasheet HTML 39Page - Microchip Technology PIC16LC771 Datasheet HTML 40Page - Microchip Technology PIC16LC771 Datasheet HTML 41Page - Microchip Technology PIC16LC771 Datasheet HTML 42Page - Microchip Technology PIC16LC771 Datasheet HTML 43Page - Microchip Technology PIC16LC771 Datasheet HTML 44Page - Microchip Technology PIC16LC771 Datasheet HTML 45Page - Microchip Technology PIC16LC771 Datasheet HTML 46Page - Microchip Technology PIC16LC771 Datasheet HTML 47Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 43 / 224 page
background image
 1999-2013 Microchip Technology Inc.
DS41120C-page 43
PIC16C717/770/771
4.3
READING THE EPROM PROGRAM
MEMORY
To read a program memory location, the user must
write 2 bytes of the address to the PMADRH and
PMADRL
registers,
then
set
control
bit
RD
(PMCON1<0>). Once the read control bit is set, the
Program Memory Read (PMR) controller will use the
second instruction cycle after to read the data. This
causes the second instruction immediately following
the “BSF PMCON1,RD” instruction to be ignored. The data
is available, in the very next cycle, in the PMDATH and
PMDATL registers; therefore it can be read as 2 bytes
in the following instructions. PMDATH and PMDATL
registers will hold this value until another Program
Memory Read or until it is written to by the user.
EXAMPLE 4-1:
OTP PROGRAM MEMORY Read
4.4
OPERATION DURING CODE
PROTECT
When the device is code protected, the CPU can still
perform the Program Memory Read function.
FIGURE 4-1:
PROGRAM MEMORY READ CYCLE EXECUTION
Note:
The two instructions that follow setting the
PMCON1 read bit must be NOPs.
BSF
STATUS, RP1
;
BCF
STATUS, RP0
; Bank 2
MOVLW
MS_PROG_PM_ADDR
;
MOVWF
PMADRH
; MS Byte of Program Memory Address to read
MOVLW
LS_PROG_PM_ADDR
;
MOVWF
PMADRL
; LS Byte of Program Memory Address to read
BSF
STATUS, RP0
; Bank 3
BSF
PMCON1, RD
; Program Memory Read
NOP
; This instruction must be an NOP
NOP
; This instruction must be an NOP
next instruction
; PMDATH:PMDATL now has the data
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
BSF PMCON1,RD
Executed here
INSTR(PC+1)
Executed here
Forced NOP
Executed here
PC
PC+1
PMADRH,PMADRL
PC+3
PC+5
Program
RD bit
PC+3
PC+4
INSTR(PC-1)
Executed here
INSTR(PC+3)
Executed here
INSTR(PC+4)
Executed here
PMDATH
PMDATL
register
Memory
ADDR



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com