RE: programming i2c device with TINIs400 (which address for SDA/SCL)
"Gerry Dubois" <[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
I've just got my I2C running on a similar HW configuration (TINITs400 with
5V I2C bus). This is the code I used (straight from the demo app )
port = new I2CPort();
port.setClockDelay((byte)2);
Works great. I'm controlling PCF8574 8-bit I/O expanders.
Unfortunately with the limited information provided it's impossible to tell
if you have a hardware or software problem. Can you post the pertinent code
fragments?
- Gerry
-----Original Message-----
From: tini-admin-6tN4nzCoH/[email protected] [mailto:[email protected]] On Behalf Of
Ponsard Raphael
Sent: Friday, January 23, 2004 7:10 AM
To: tini-6tN4nzCoH/[email protected]; [email protected]
Subject: [TINI]programming i2c device with TINIs400 (which adress for
SDA/SCL)
Hi,
I have some trouble with I2C ... My tini board is a TINIm400 on a
TINIs400 socket (out of the box)
I have selected 5V pull ups for the I2C bus via the J23-25 solder
jumpers. I2C slave is a SAA1064 (4 x 7digit led)
I don't understand how to instanciate a com.dalsemi.system.I2CPort()
I try to do as in the example i2cTest.java but it does not work.(is void
parm. constructor only for 80C390 ?? javadoc is not very clear...)
I try several delays...
My test application display nothing (the first read over I2C fails).
Unfortunatly, I do not have a scope ...
If I would use the 2nd constructor (with io adress) which one use ?
btw, where can I find memory map and device adress map of the tinis/m400 ?
thanks
RP
_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini