PIC12CE674 Datasheet

  • PIC12CE674

  • 8-Pin, 8-Bit CMOS Microcontroller with A/D Converter and EEP...

  • 1264.35KB

  • 129页

  • Microchip   Microchip

扫码查看芯片数据手册

上传产品规格书

PDF预览

PIC12CE67X
6.5
READ OPERATIONS
Read operations are initiated in the same way as write
operations with the exception that the R/W bit of the
EEPROM address is set to one. There are three basic
types of read operations: current address read, random
read, and sequential read.
6.5.1
CURRENT ADDRESS READ
EEPROM as part of a write operation. After the word
address is sent, the processor generates a start condi-
tion following the acknowledge. This terminates the
write operation, but not before the internal address
pointer is set. Then the processor issues the control
byte again but with the R/W bit set to a one. It will then
issue an acknowledge and transmits the eight bit data
word. The processor will not acknowledge the transfer
but does generate a stop condition and the EEPROM
discontinues transmission (Figure 6-7). After this com-
mand, the internal address counter will point to the
address location following the one that was just read.
6.5.3
SEQUENTIAL READ
It contains an address counter that maintains the
address of the last word accessed, internally incre-
mented by one. Therefore, if the previous read access
was to address n, the next current address read opera-
tion would access data from address n + 1. Upon
receipt of the EEPROM address with the R/W bit set to
one, the EEPROM issues an acknowledge and trans-
mits the eight bit data word. The processor will not
acknowledge the transfer but does generate a stop
condition and the EEPROM discontinues transmission
(Figure 6-6).
6.5.2
RANDOM READ
Sequential reads are initiated in the same way as a ran-
dom read except that after the device transmits the 铿乺st
data byte, the processor issues an acknowledge as
opposed to a stop condition in a random read. This
directs the EEPROM to transmit the next sequentially
addressed 8-bit word (Figure 6-8).
To provide sequential reads, it contains an internal
address pointer which is incremented by one at the
completion of each read operation. This address
pointer allows the entire memory contents to be serially
read during one operation.
Random read operations allow the processor to access
any memory location in a random manner. To perform
this type of read operation, 铿乺st the word address must
be set. This is done by sending the word address to the
FIGURE 6-6:
CURRENT ADDRESS READ
BUS ACTIVITY
PROCESSOR
SDA LINE
BUS ACTIVITY
S
T
A
R
T
CONTROL
BYTE
S
T
O
P
S 1 0 1 0 X XX 1
P
A
C
K
DATA
N
O
A
C
K
X = Don鈥檛 Care Bit
FIGURE 6-7:
RANDOM READ
S
T
A
R
T
CONTROL
BYTE
WORD
ADDRESS (n)
X X X X
BUS ACTIVITY
PROCESSOR
S
T
A
R
T
CONTROL
BYTE
S
T
O
P
S 1 0 1 0 X X X 0
S 1 0 1 0 X X X 1
P
A
C
K
DATA (n)
N
O
A
C
K
SDA LINE
BUS ACTIVITY
X = Don鈥檛 Care Bit
A
C
K
A
C
K
FIGURE 6-8:
BUS ACTIVITY
PROCESSOR
SDA LINE
BUS ACTIVITY
SEQUENTIAL READ
CONTROL
BYTE
DATA n
DATA n + 1
DATA n + 2
DATA n + X
S
T
O
P
P
A
C
K
A
C
K
A
C
K
A
C
K
N
O
A
C
K
DS40181B-page 30
Preliminary
1998 Microchip Technology Inc.

PIC12CE674相关型号PDF文件下载

您可能感兴趣的PDF文件资料

热门IC型号推荐

扫码下载APP,
一键连接广大的电子世界。

在线人工客服

买家服务:
卖家服务:

0571-85317607

客服在线时间周一至周五
9:00-17:30

关注官方微信号,
第一时间获取资讯。

建议反馈
返回顶部

建议反馈

联系人:

联系方式:

按住滑块,拖拽到最右边
>>
感谢您向阿库提出的宝贵意见,您的参与是维库提升服务的动力!意见一经采纳,将有感恩红包奉上哦!