欢迎访问ic37.com |
会员登录 免费注册
发布采购

12CE673 参数 Datasheet PDF下载

12CE673图片预览
型号: 12CE673
PDF下载: 下载PDF文件 查看货源
内容描述: 8引脚, 8位CMOS微控制器与A / D转换器和EEPROM数据存储器 [8-Pin, 8-Bit CMOS Microcontroller with A/D Converter and EEPROM Data Memory]
分类和应用: 转换器存储微控制器可编程只读存储器电动程控只读存储器电可擦编程只读存储器
文件页数/大小: 116 页 / 649 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号12CE673的Datasheet PDF文件第23页浏览型号12CE673的Datasheet PDF文件第24页浏览型号12CE673的Datasheet PDF文件第25页浏览型号12CE673的Datasheet PDF文件第26页浏览型号12CE673的Datasheet PDF文件第28页浏览型号12CE673的Datasheet PDF文件第29页浏览型号12CE673的Datasheet PDF文件第30页浏览型号12CE673的Datasheet PDF文件第31页  
PIC12CE67X  
• Data transfer may be initiated only when the bus  
is not busy.  
6.0  
EEPROM PERIPHERAL  
OPERATION  
During data transfer, the data line must remain stable  
whenever the clock line is HIGH. Changes in the data  
line while the clock line is HIGH will be interpreted as a  
START or STOP condition.  
The PIC12CE673 and PIC12CE674 each have 16  
bytes of EEPROM data memory. The EEPROM mem-  
ory has an endurance of 1,000,000 erase/write cycles  
and a data retention of greater than 40 years. The  
EEPROM data memory supports a bi-directional 2-wire  
bus and data transmission protocol. These two-wires  
are serial data (SDA) and serial clock (SCL), that are  
mapped to bit6 and bit7, respectively, of the GPIO reg-  
ister (SFR 06h). Unlike the GP0-GP5 that are con-  
nected to the I/O pins, SDA and SCL are only  
connected to the internal EEPROM peripheral. For  
most applications, all that is required is calls to the fol-  
lowing functions:  
Accordingly, the following bus conditions have been  
defined (Figure 6-1).  
6.1.1  
Both data and clock lines remain HIGH.  
6.1.2 START DATA TRANSFER (B)  
BUS NOT BUSY (A)  
A HIGH to LOW transition of the SDA line while the  
clock (SCL) is HIGH determines a START condition. All  
commands must be preceded by a START condition.  
; Byte_Write: Byte write routine  
;
;
;
Inputs:EEPROM Address  
EEPROM Data  
EEADDR  
EEDATA  
6.1.3  
STOP DATA TRANSFER (C)  
Outputs:  
Return 01 in W if OK, else  
return 00 in W  
A LOW to HIGH transition of the SDA line while the  
clock (SCL) is HIGH determines a STOP condition. All  
operations must be ended with a STOP condition.  
;
; Read_Current: Read EEPROM at address  
currently held by EE device.  
;
;
;
Inputs:NONE  
Outputs:  
6.1.4  
DATA VALID (D)  
EEPROM Data  
EEDATA  
Return 01 in W if OK, else  
return 00 in W  
The state of the data line represents valid data when,  
after a START condition, the data line is stable for the  
duration of the HIGH period of the clock signal.  
;
; Read_Random: Read EEPROM byte at supplied  
address  
;
;
;
The data on the line must be changed during the LOW  
period of the clock signal. There is one bit of data per  
clock pulse.  
Inputs:EEPROM Address  
Outputs: EEPROM Data  
EEADDR  
EEDATA  
Return 01 in W if OK,  
else return 00 in W  
Each data transfer is initiated with a START condition  
and terminated with a STOP condition. The number of  
the data bytes transferred between the START and  
STOP conditions is determined by the processor  
device and is theoretically unlimited.  
The code for these functions is available on our web  
site (www.microchip.com). The code will be accessed  
by either including the source code FL67XINC.ASM or  
by linking FLASH67X.ASM. FLASH62.IMC provides  
external definition to the calling program.  
6.1.5  
ACKNOWLEDGE  
6.0.1  
SERIAL DATA  
The EEPROM, when addressed, will generate an  
acknowledge after the reception of each byte. The pro-  
cessor must generate an extra clock pulse which is  
associated with this acknowledge bit.  
SDA is a bi-directional pin used to transfer addresses  
and data into and data out of the device.  
For normal data transfer SDA is allowed to change only  
during SCL low. Changes during SCL high are  
reserved for indicating the START and STOP condi-  
tions.  
Note: Acknowledge bits are not generated if an  
internal programming cycle is in progress.  
The device that acknowledges has to pull down the  
SDA line during the acknowledge clock pulse in such a  
way that the SDA line is stable LOW during the HIGH  
period of the acknowledge related clock pulse. Of  
course, setup and hold times must be taken into  
account. The processor must signal an end of data to  
the EEPROM by not generating an acknowledge bit on  
the last byte that has been clocked out of the EEPROM.  
In this case, the EEPROM must leave the data line  
HIGH to enable the processor to generate the STOP  
condition (Figure 6-2).  
6.0.2  
SERIAL CLOCK  
This SCL input is used to synchronize the data transfer  
from and to the EEPROM.  
6.1  
BUS CHARACTERISTICS  
The following bus protocol is to be used with the  
EEPROM data memory. In this section, the term “pro-  
cessor” is used to denote the portion of the  
PIC12CE67X that interfaces to the EEPROM via soft-  
ware.  
1998 Microchip Technology Inc.  
Preliminary  
DS40181B-page 27  
 复制成功!