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
Solved! Go to Solution.
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
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
Hi Pavel,
Thanks for your reply, i have cleared the prob and now it is working fine.
Hari