Sign in

username:

password:



Not a member?

Search 68hc12



Search tips

Subscribe to 68hc12



68hc12 by Keywords

68HC1 | 812A4 | 9S12DP256 | Bootloader | CodeWarrior | D60A | Debugger | DP256 | ECT | EEPROM | EVB | Flash | HC1 | HCS12 | I2C | IAR | ICC1 | Interrupts | LCD | M68KIT912DP256 | MC9S12DP256 | MC9S12DP256B | Metrowerks | Motor | MSCAN | Multilink | PLL | Quadrature | SDI | SPI | Transceiver | XFC

Ads

Discussion Groups

Discussion Groups | 68HC12 | IIC Bus on MC9S12DP256

Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).

IIC Bus on MC9S12DP256 - domi2c - Mar 6 11:19:00 2005


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





(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )


Re: IIC Bus on MC9S12DP256 - vyeng - Mar 23 21:10:00 2005


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





(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )