công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

PIC18C658-E/CL bảng dữ liệu(PDF) 68 Page - Microchip Technology

tên linh kiện PIC18C658-E/CL
Giải thích chi tiết về linh kiện  High-Performance Microcontrollers with CAN Module
PDF  366 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  MICROCHIP [Microchip Technology]
Trang chủ  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC18C658-E/CL bảng dữ liệu(HTML) 68 Page - Microchip Technology

Back Button PIC18C658-E/CL Datasheet HTML 64Page - Microchip Technology PIC18C658-E/CL Datasheet HTML 65Page - Microchip Technology PIC18C658-E/CL Datasheet HTML 66Page - Microchip Technology PIC18C658-E/CL Datasheet HTML 67Page - Microchip Technology PIC18C658-E/CL Datasheet HTML 68Page - Microchip Technology PIC18C658-E/CL Datasheet HTML 69Page - Microchip Technology PIC18C658-E/CL Datasheet HTML 70Page - Microchip Technology PIC18C658-E/CL Datasheet HTML 71Page - Microchip Technology PIC18C658-E/CL Datasheet HTML 72Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 68 / 366 page
background image
PIC18CXX8
DS30475A-page 68
Advanced Information
 2000 Microchip Technology Inc.
5.2
Program Memory Read/Writes
5.2.1
TABLE READ OVERVIEW (TBLRD)
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
TABLAT. In addition, TBLPTR can be modified auto-
matically 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
PROGRAM MEMORY WRITE BLOCK SIZE
The program memory of PIC18CXX8 devices is written
in blocks. For PIC18CXX8 devices, the write block size
is 2 bytes. Consequently, Table Write operations to
program memory are performed in pairs, one byte at a
time.
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
holding register is not accessible by the user.
When a Table Write occurs to an odd program memory
address (TBLPTR<0>
= 1), a long write is started. Dur-
ing the long write, the contents of TABLAT are written
to the high byte of the program memory block and the
contents 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.
FIGURE 5-3:
HOLDING REGISTER AND THE WRITE
EXAMPLE 5-1:
TABLE READ CODE EXAMPLE
; Read a byte from location 0x0020
CLRF
TBLPTRU
; Load upper 5 bits of
; 0x0020
CLRF
TBLPTRH
; Load higher 8 bits of
; 0x0020
MOVLW
0x20
; Load 0x20 into
MOVWF
TBLPTRL
; TBLPTRL
MOVWF
TBLRD*
; Data is in TABLAT
Program Memory
Holding Register
Instruction Execution
; TABLPTR points to address n
MOVLW DataLow
; Load low data
MSB
LSB
MOVWF TABLAT
; byte to TABLAT
DataLow
TBLWT*+
; Write it to LSB
; of Holding register
MOVLW DataHigh
; Load high data
n - 1
MSB
LSB
MOVWF TABLAT
; byte to TABLAT
n
DataLow
DataHigh
DataLow
TBLWT*
; Write it to MSB
n + 1
DataHigh
; of Holding
n + 2
; register and
; begin long
; write



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


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
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