SPI and I2C programming

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
Ondra
Posts: 325
Joined: Wed Aug 29, 2007 7:33 pm
Been thanked: 2 times
Contact:

SPI and I2C programming

Post by Ondra »

Good day all. Can someone help me? I have an embedded modem that has an SPI an I2C and RS232 interface. I am somewhat comfortable using the RS232 interface but would like to use the SPI or I2C interface. The device uses simple AT commands to configure and control it. My question is, are there any tutorials that can get me up to scratch using SPI and or I2C interface. Or can someone give me an example of what would be the process if I wanted to send my device a simple dial command such as ATDT2967189. And also I would like to get an example of reading back the response from the modem. An example of a response or data coming from the modem would be "ONLINE" or "PASSWORD". Thanks In advance.

Ondra

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: SPI and I2C programming

Post by Benj »

Hello Ondra

SPI is a fairly simple protocol you simply throw bytes out as you would an RS232 port. However for the I2C it gets a bit more complicated. You will have to refer to the connection protocol diagrams in the modems datasheet to determin what you need to transmit to the device.

Post Reply