MC9S08DZ60 IIC

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MC9S08DZ60 IIC

跳至解决方案
1,075 次查看
harisatuluri
Contributor III

    Hi All,

 

     I am implementing IIC with EEPROM, in this i can write Byte to IIC, when when it comes to read as i know we need to transfer address with LSB as 1.

 

     But in MC9S08DZ60 IIC Address register the LSB bit is reserved, so i am unable to set that bit, so how can i send the address for read mode and how to read a byte from address.

 

     In this i am trying to read data by using polling method, if any sample code is available for this it will be very helpful.

 

     Please suggest me any App note or anything regarding this issue.

 

Thanks in advance.

Hari

标签 (1)
1 解答
908 次查看
pavel_sadek
NXP Employee
NXP Employee

Hi Hari,

look into IIC Control Register (IICC1) bit TX - Transmit Mode Select.

 

The TX bit selects the direction of transfers. In master mode, this bit should be set according to the type of transfer required.  

 

HCS08QRUG.pdf will clearly guide you, how to use the IIC.

if I remember correctly examples for the memory are in www.sctec.com.br/hcs08  (chapter11)

(it belongs to very nice book about HCS08 MCUs)

Pavel

在原帖中查看解决方案

0 项奖励
回复
2 回复数
909 次查看
pavel_sadek
NXP Employee
NXP Employee

Hi Hari,

look into IIC Control Register (IICC1) bit TX - Transmit Mode Select.

 

The TX bit selects the direction of transfers. In master mode, this bit should be set according to the type of transfer required.  

 

HCS08QRUG.pdf will clearly guide you, how to use the IIC.

if I remember correctly examples for the memory are in www.sctec.com.br/hcs08  (chapter11)

(it belongs to very nice book about HCS08 MCUs)

Pavel

0 项奖励
回复
908 次查看
harisatuluri
Contributor III

Hi Pavel,

     Thanks for your reply, i have cleared the prob and now it is working fine.

Hari