Hi !
I want to use IIC module on a HCS08DZ60 CPU. I look for many "examples" on the forum and on the website of Freescale, and I tried to create some simple functions IICWrite and IICRead. I don't success.
The examples I have seen are complicated, they all manage Master and Slave mode, and also arbitration...
I just want to make a simple application : my microcontroller is always the master, and the slave are a RTC and an EEPROM.
Does somebody have done this before ?
Thank you very much for your help !
jOJo
Added p/n to subject.
en,ha ha
I put an example of a simple master/slave http://forums.freescale.com/freescale/board/message?board.id=8BITCOMM&message.id=9804&query.id=13797...
Message lengths are preset. No restarts used. Used to send one trasnmit message and one receive message to 5 slaves every 20ms.
If you using an RTC and a Eprom i assume their protocol is preset and therefore you will need to send addresses etc then request data returned.
if you're looking for an out of the box example, you'll probably be out of luck.