IIC on H8S/2633?

From: Darcy Roberts (darcy_roberts_at_htwattx.com)
Date: 07/09/04


Date: Thu, 08 Jul 2004 21:48:32 -0400

Greetings all:

I'm having difficulty getting the I2C module on the
Renesas/Hitachi HD64F2633RTE28 to work properly for reads.
(Bus Master only, single byte reads)

Writes work great.

Reads work mostly, but half the time I get an extra
9 clocks for a single byte read. It only works if I
insert a delay after the clearing IRIC after the first reading
of ICDR. Sometimes the controller freezes with SCL held low.
The target (slave) is an FM24C256.

What I need to see is some correct non-interrupt C code
(single byte write) that works. The application notes
from Renesas are no help at all, with errors and poor descriptions.

(Note: to reply, delete the last character before .com)

regards,
DArcy Roberts
H T Watt and Associates Ltd.