| Electronic Components Datasheet Search |
|
DM163006 Datasheet(PDF) 75 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
DM163006 Datasheet(HTML) 75 Page - Microchip Technology |
|
75 / 320 page ![]() 2001 Microchip Technology Inc. Advance Information DS39541A-page 75 PIC18C601/801 6.2 Table Read The TBLRD instruction is used to retrieve data from external program memory and place it into data memory. TBLPTR points to a byte address in external program memory space. Executing TBLRD places the byte into TABLAT. In addition, TBLPTR can be modified auto- matically for the next Table Read operation. Table Reads from external program memory are performed one byte at a time. If the external interface is 8-bit, the bus interface circuitry in TABLAT will load the external value into TABLAT. If the external interface is 16-bit, interface circuitry in TABLAT will select either the high or low byte of the data from the 16-bit bus, based on the least significant bit of the address. Example 6-1describes how to use TBLRD. Figure 6-3 and Figure 6-4 show Table Read timings for an 8-bit external interface, and Figure 6-5 describes Table Read timing for a 16-bit interface. EXAMPLE 6-1: TABLE READ CODE EXAMPLE FIGURE 6-3: TBLRD EXTERNAL INTERFACE TIMING (8-BIT MULTIPLEXED MODE) ; Read a byte from location 0020h CLRF TBLPTRU ; clear upper 5 bits of TBLPTR CLRF TBLPTRH ; clear higher 8 bits of TBLPTR MOVLW 20h ; Load 20h into MOVWF TBLPTRL ; TBLPTRL TBLRD* ; Data is in TABLAT Q2 Q1 Q3 Q4 Q2 Q1 Q3 Q4 Q2 Q1 Q3 Q4 A<15:8> ALE OE AAh WRH WRL AD<7:0> 03Ah 03Ah BA0 Opcode Fetch Opcode Fetch Opcode Fetch TBLRD* TBLRD Cycle1 ADDLW 55h from 007554h 08h ’1’ Q2 Q1 Q3 Q4 CCFh 33h TABLRD 92h from 199E67h 92h ’1’ 00h ABh 55h 0Eh ACh 55h 0Fh 03Ah ’1’ ’1’ from 007558h Memory Cycle Instruction Execution INST(PC-2) TBLRD Cycle2 MOVLW 55h from 007556h MOVLW |
|
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 |
| 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 |