IIC... - HCS08DZ60

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

IIC... - HCS08DZ60

1,933 次查看
jOJo73
Contributor I

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.

Message Edited by NLFSJ on 2009-05-11 04:04 PM
标签 (1)
0 项奖励
回复
2 回复数

1,040 次查看
wenyabin
Contributor I

en,ha ha:womanlol:

0 项奖励
回复

1,040 次查看
mad_dad
Contributor II

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.

0 项奖励
回复