ZX-24 as I2C slave

Discussion about the ZBasic language including the System Library. If you're not sure where to post your message, do it here. However, do not make test posts here; that's the purpose of the Sandbox.
Post Reply
tomhilton
Posts: 26
Joined: 03 July 2009, 8:24 AM
Location: Peoria AZ
Contact:

ZX-24 as I2C slave

Post by tomhilton »

Can a ZX-24 be an I2C slave?
What would the code look like?

By the way thanks Don for providing Jeff the MLX90614 I2C code.
That was really neat. I have been working with Jeff also.

Tom
Thomas Hilton
www.arizonaskys.com
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: ZX-24 as I2C slave

Post by dkinzer »

tomhilton wrote:Can a ZX-24 be an I2C slave? What would the code look like?
If you mean the ZX-24 specifically, the answer is no. Only native mode devices like the ZX-24n and ZX-24s can implement an I2C slave because it is necessary to do so using an Interrupt Service Routine (ISR). See AN-219 Implementing I2C and SPI Slaves for more information and some example code.
- Don Kinzer
tomhilton
Posts: 26
Joined: 03 July 2009, 8:24 AM
Location: Peoria AZ
Contact:

Post by tomhilton »

Thanks Don for the link to the application note AN219

Tom Hilton
Thomas Hilton
www.arizonaskys.com
Post Reply