Professional Documents
Culture Documents
Read as 0 Read as 0
Internal Internal
PIC18 Architecture
Accessing Program Memory
G
PCL<0> is forced to 0
Program Memory
0 2 M
16-bit Wide
2002 Microchip Technology Incorporated. All Rights Reserved. 618 ICD PIC18FXXX DFT Hands On Workshop 41
PIC18 Architecture
Reading Program Memory
TBLRD Operation
TBLPTRU TBLPTRH TBLPTRL<7:1> <0> TBLPTRL<0>=0 => LSB TBLPTRL<0>=1 => MSB
TABLAT
tblrd*+
MSB
LSB
Program Memory
2002 Microchip Technology Incorporated. All Rights Reserved. 618 ICD PIC18FXXX DFT Hands On Workshop 42
PIC18 Architecture
Writing to Program Memory
Table Pointer movff movff tblwt*
See Appendix C for more information
LOW(DATA),TABLAT HIGH(DATA),TABLAT
tblwt*+
TABLAT
Holding Latch
PIC18 Architecture
Divided in TBLPTRU:TRBLPTRH:TBLPTRL
G G
EECON1 register controls actual write cycle Protected against run-away code
G G
To enhance flexibility of table operations, the TBLPTR automatically increment and decrement during read/write operations PIC18 devices have 4 modify modes for TBLPTR
tblwt* tblwt*+ tblwt*tblwt+* tblrd* tblrd*+ tblrd*tblrd+* no change auto post increment auto post decrement auto pre increment
618 ICD
45