Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).
|
Hi everybody I've bought a miniDragon board from Wytek and been trying to run the IIC block. But I'm lost in the Motorola documents. All I would like to have is an assembler example of starting, addressing a device and stopping the Bus. Have anybody already done that and possibly email me an example ? That would be great. Thanks by advance Jean Claude |
|
Hi, I am having the same problem as Jean, but I would like an example in C language for Metrowerks Codewarrior IDE. I am trying to interface the SRF08 Sonar sensor using the I2C bus on the MC9S12DP256 processor. The 9S12DP256 reference manual is confusing. Can someone explain the steps for writing the starting, stopping, addressing, and reading codes using the following register names: IBAD (IIC Address Register) IBFD (IIC Frequency Divider Register) IBCR (IIC Control Register) IBSR (IIC Status Register) IBDR (IIC Data I/O Register) The MC9S12DP256 IIC reference manual is available from Motorola at http://www.freescale.com/files/microcontrollers/doc/ref_manual/S12IICV2.pdf. The technical specs for the SRF08 Sonar sensor is available from Robot Electronics at http://www.robot-electronics.co.uk/htm/srf08tech.shtml. Thank you, Vouy Yeng --- In , "domi2c" <domi2c@w...> wrote: > > Hi everybody > > I've bought a miniDragon board from Wytek and been trying to run the > IIC block. But I'm lost in the Motorola documents. > All I would like to have is an assembler example of starting, > addressing a device and stopping the Bus. > Have anybody already done that and possibly email me an example ? > That would be great. > > Thanks by advance > > Jean Claude |