PIC18C242 MICROCHIP [Microchip Technology], PIC18C242 Datasheet - Page 56
PIC18C242
Manufacturer Part Number
PIC18C242
Description
High-Performance Microcontrollers with 10-Bit A/D
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
1.PIC18C242.pdf
(296 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
PIC18C242-I/SO
Manufacturer:
MICROCHIP
Quantity:
2 000
Company:
Part Number:
PIC18C242/JW
Manufacturer:
NS
Quantity:
10
- Current page: 56 of 296
- Download datasheet (5Mb)
PIC18CXX2
5.2
5.2.1
The TBLRD instructions are used to read data from pro-
gram memory to data memory.
TBLPTR points to a byte address in program space.
Executing TBLRD places the byte pointed to into TAB-
LAT. In addition, TBLPTR can be modified automati-
cally for the next Table Read operation.
Table Reads from program memory are performed one
byte at a time. The instruction will load TABLAT with the
one byte from program memory pointed to by TBLPTR.
5.2.2
The internal program memory of PIC18CXXX devices
is written in blocks. For PIC18CXX2 devices, the write
block size is 2 bytes. Consequently, Table Write oper-
ations to internal program memory are performed in
pairs, one byte at a time.
FIGURE 5-3:
DS39026B-page 56
Internal Program Memory Read/
Writes
TABLE READ OVERVIEW (TBLRD)
INTERNAL PROGRAM MEMORY WRITE
BLOCK SIZE
HOLDING REGISTER AND THE WRITE BLOCK
Program Memory (x 2-bits)
Block n
Block n + 1
Block n + 2
Preliminary
When a Table Write occurs to an even program mem-
ory address (TBLPTR<0> = 0), the contents of TABLAT
are transferred to an internal holding register. This is
performed as a short write and the program memory
block is not actually programmed at this time. The hold-
ing register is not accessible by the user.
When a Table Write occurs to an odd program memory
address (TBLPTR,)>=1), a long write is started. During
the long write, the contents of TABLAT are written to the
high byte of the program memory block and the con-
tents of the holding register are transferred to the low
byte of the program memory block.
Figure 5-3 shows the holding register and the program
memory write blocks.
If a single byte is to be programmed, the low (even) byte
of the destination program word should be read using
TBLRD*, modified or changed, if required, and written
back to the same address using TBLWT*+. The high
(odd) byte should be read using TBLRD*, modified or
changed if required, and written back to the same
address using TBLWT. The write to an odd address will
cause a long write to begin. This process ensures that
existing data in either byte will not be changed unless
desired.
MSB
The write to the MSB of the Write Block
causes the entire block to be written to pro-
gram memory. The program memory block
that is written depends on the address that is
written to in the MSB of the Write Block.
Write Block
7/99 Microchip Technology Inc.
Holding Register
Related parts for PIC18C242
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
IC, 8BIT MCU, PIC18F, 40MHZ, LCC-44
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC, 8BIT MCU, PIC18LF, 40MHZ, PLCC-64
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC, 8BIT MCU, PIC18F, 64MHZ, TQFP-80
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
MCU, MPU & DSP Development Tools CAN/LIN PICtail Plus Daughter Board
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC, 8BIT MCU, PIC18F, 64MHZ, DIP-40
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC, 8BIT MCU, PIC18LF, 40MHZ, PLCC-64
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
IC, 8BIT MCU, PIC18F, 64MHZ, TQFP-64
Manufacturer:
Microchip Technology
Part Number:
Description:
IC, 8BIT MCU, PIC18F, 64MHZ, TQFP-80
Manufacturer:
Microchip Technology
Part Number:
Description:
8KB, Flash, 768bytes-RAM, 36I/O, 8-bit Family,nanowatt XLP 40 UQFN 5x5x0.5mm TUB
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
8KB, Flash, 768bytes-RAM, 36I/O, 8-bit Family,nanowatt XLP 40 UQFN 5x5x0.5mm TUB
Manufacturer:
Microchip Technology
Part Number:
Description:
16KB, Flash, 768bytes-RAM, 36I/O, 8-bit Family,nanowatt XLP 40 UQFN 5x5x0.5mm TU
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
16KB, Flash, 768bytes-RAM, 36I/O, 8-bit Family,nanowatt XLP 40 UQFN 5x5x0.5mm TU
Manufacturer:
Microchip Technology
Part Number:
Description:
32KB, Flash, 1536bytes-RAM, 36I/O, 8-bit Family,nanowatt XLP 40 UQFN 5x5x0.5mm T
Manufacturer:
Microchip Technology
Datasheet:
Part Number:
Description:
32KB, Flash, 1536bytes-RAM, 36I/O, 8-bit Family,nanowatt XLP 40 UQFN 5x5x0.5mm T
Manufacturer:
Microchip Technology
Part Number:
Description:
64KB, Flash, 3968bytes-RAM, 36I/O, 8-bit Family,nanowatt XLP 40 UQFN 5x5x0.5mm T
Manufacturer:
Microchip Technology
Datasheet: