MC9S08DZ60 IIC

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MC9S08DZ60 IIC

Jump to solution
657 Views
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

Labels (1)
1 Solution
490 Views
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

View solution in original post

0 Kudos
Reply
2 Replies
491 Views
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 Kudos
Reply
490 Views
harisatuluri
Contributor III

Hi Pavel,

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

Hari