PIC18F2XK20/4XK20
DS41297F-page 24
Advance Information
2009 Microchip Technology Inc.
4.0
READING THE DEVICE
4.1
Read Code Memory, ID Locations
and Configuration Bits
Code memory is accessed one byte at a time via the
4-bit command, ‘1001’ (table read, post-increment).
The contents of memory pointed to by the Table Pointer
(TBLPTRU:TBLPTRH:TBLPTRL) are serially output on
PGD.
The 4-bit command is shifted in LSb first. The read is
executed during the next 8 clocks, then shifted out on
PGD during the last 8 clocks, LSb to MSb. A delay of
P6 must be introduced after the falling edge of the 8th
PGC of the operand to allow PGD to transition from an
input to an output. During this time, PGC must be held
low (see Figure 4-1). This operation also increments
the Table Pointer by one, pointing to the next byte in
code memory for the next read.
This technique will work to read any memory in the
000000h to 3FFFFFh address space, so it also applies
to the reading of the ID and Configuration registers.
TABLE 4-1:
READ CODE MEMORY SEQUENCE
FIGURE 4-1:
TABLE READ POST-INCREMENT INSTRUCTION TIMING DIAGRAM (1001)
Note:
When table read protection is enabled, the
first read access to a protected block
should be discarded and the read repeated
to retrieve valid data. Subsequent reads of
the same block can be performed normally.
4-bit
Command
Data Payload
Core Instruction
Step 1: Set Table Pointer
0000
0E <Addr[21:16]>
6E F8
0E <Addr[15:8]>
6E F7
0E <Addr[7:0]>
6E F6
MOVLW Addr[21:16]
MOVWF TBLPTRU
MOVLW <Addr[15:8]>
MOVWF TBLPTRH
MOVLW <Addr[7:0]>
MOVWF TBLPTRL
Step 2: Read memory and then shift out on PGD, LSb to MSb
1001
00 00
TBLRD *+
12
3
4
PGC
P5
PGD
PGD = Input
Shift Data Out
P6
PGD = Output
56
7
8
12
3
4
P5A
9
10
11
13
15
16
14
12
Fetch Next 4-bit Command
10
0
1
PGD = Input
LSb
MSb
12
34
56
12
3
4
nn
P14
Note
1:
Magnification of the high-impedance delay between PGC and PGD is shown in Figure 4-6.
(Note 1)
相关PDF资料
PIC18LF8585T-I/PT IC PIC MCU FLASH 24KX16 80TQFP
XF2J-3024-11 CONN FPC 30POS 0.5MM SMT
PIC18LF6525T-I/PT IC PIC MCU FLASH 24KX16 64TQFP
PIC18LF8621T-I/PT IC PIC MCU FLASH 32KX16 80TQFP
PIC18F8620T-E/PT IC PIC MCU FLASH 32KX16 80TQFP
PIC18F8720T-E/PT IC PIC MCU FLASH 64KX16 80TQFP
PIC18F4439T-E/ML IC PIC MCU FLASH 6KX16 44QFN
XF2J-2824-11 CONN FPC 28POS 0.5MM SMT
相关代理商/技术参数
PIC18F24K20-I/SP 功能描述:8位微控制器 -MCU 16KB Flash 768B RAM 25 I/O 8B RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F24K20-I/SS 功能描述:8位微控制器 -MCU 16KB Flash 768B RAM 25 I/O 8B RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F24K20T-I/ML 功能描述:8位微控制器 -MCU 16KB Flash 768B RAM 25 I/O 8B RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F24K20T-I/SO 功能描述:8位微控制器 -MCU 16KB Flash 768B RAM 25 I/O 8B RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F24K20T-I/SS 功能描述:8位微控制器 -MCU 16KB Flash 768B RAM 25 I/O 8B RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F24K22-E/ML 功能描述:8位微控制器 -MCU 16KB Flash 768B RAM 8b FamilynanoWatt RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F24K22-E/MV 功能描述:8位微控制器 -MCU 16KB Flash 768B RAM 8b FamilynanoWatt RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F24K22-E/SO 功能描述:8位微控制器 -MCU 16KB Flash 768B RAM 8b FamilynanoWatt RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT