Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

PIC16F722AT-I/SP Datasheet(PDF) 177 Page - Microchip Technology

Part # PIC16F722AT-I/SP
Description  28-Pin Flash Microcontrollers with nanoWatt XLP Technology
PDF  284 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC16F722AT-I/SP Datasheet(HTML) 177 Page - Microchip Technology

Back Button PIC16F722AT-I/SP Datasheet HTML 173Page - Microchip Technology PIC16F722AT-I/SP Datasheet HTML 174Page - Microchip Technology PIC16F722AT-I/SP Datasheet HTML 175Page - Microchip Technology PIC16F722AT-I/SP Datasheet HTML 176Page - Microchip Technology PIC16F722AT-I/SP Datasheet HTML 177Page - Microchip Technology PIC16F722AT-I/SP Datasheet HTML 178Page - Microchip Technology PIC16F722AT-I/SP Datasheet HTML 179Page - Microchip Technology PIC16F722AT-I/SP Datasheet HTML 180Page - Microchip Technology PIC16F722AT-I/SP Datasheet HTML 181Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 177 / 284 page
background image
 2010 Microchip Technology Inc.
DS41417A-page 177
PIC16F/LF722A/723A
18.0 PROGRAM MEMORY READ
The Flash program memory is readable during normal
operation over the full VDD range of the device. To read
data from program memory, five Special Function
Registers (SFRs) are used:
•PMCON1
•PMDATL
•PMDATH
• PMADRL
• PMADRH
The value written to the PMADRH:PMADRL register
pair determines which program memory location is
read. The read operation will be initiated by setting the
RD bit of the PMCON1 register. The program memory
Flash controller takes two instructions to complete the
read. As a consequence, after the RD bit has been set,
the next two instructions will be ignored. To avoid
conflict with program execution, it is recommended that
the two instructions following the setting of the RD bit
are NOP. When the read completes, the result is placed
in the PMDATLH:PMDATL register pair. Refer to
Example 18-1 for sample code.
EXAMPLE 18-1:
PROGRAM MEMORY READ
Note:
Code-protect does not effect the CPU
from performing a read operation on the
program memory. For more information,
refer to Section 8.2 “Code Protection”
BANKSEL PMADRL ;
MOVF
MS_PROG_ADDR, W;
MOVWF
PMADRH ;MS Byte of Program Address to read
MOVF
LS_PROG_ADDR, W;
MOVWF
PMADRL ;LS Byte of Program Address to read
BANKSEL PMCON1 ;
BSF
PMCON1, RD;Initiate Read
NOP
NOP
;Any instructions here are ignored as program
;memory is read in second cycle after BSF
BANKSEL PMDATL ;
MOVF
PMDATL, W;W = LS Byte of Program Memory Read
MOVWF
LOWPMBYTE;
MOVF
PMDATH, W;W = MS Byte of Program Memory Read
MOVWF
HIGHPMBYTE;



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