[simpits-tech] Need some Serial Communications help....

Gene Buckle geneb at deltasoft.com
Thu Mar 3 11:49:53 PST 2011


On Thu, 3 Mar 2011, Roberto Waltman wrote:

> raysot at comcast.net wrote:
>> So, I have the Arduino set up and spitting out a datastream (See image
>> link below)
>>
>> I'm using a CS4122 chip:
>> (http://www.datasheetcatalog.org/datasheet/on_semiconductor/CS4122-D.PDF)
>>
>> This link is my timing diagram.
>> http://dl.dropbox.com/u/22535032/SerialData.jpg
>>
>> I am successful in sending data but the gauge doesn't interpret
>> correctly.. (Basically it just moves to random position on every 2nd cycle
>> of the CS signal.)
>>
>> This leads me to believe that I'm missing something... like a start/stop
>> semaphore or some sort of parity bit(?)
>
>
> This is an SPI interface. You need to prepare a 12 bits command as
> described in Fig-6 in the data sheet, deliver it bit by bit to the SI pin
> while supplying a clock pulse per bit to the SCLK.  You can do it using an
> SPI port in the Arduino, if that is available, or by setting individual
> bits high or low. ("bit-banging")
>
Good info Roberto.  Ray - you should also check out 
http://arduino.cc/en/Reference/SPI if you haven't already.

g.

-- 
Proud owner of F-15C 80-0007
http://www.f15sim.com - The only one of its kind.
http://www.simpits.org/geneb - The Me-109F/X Project

ScarletDME - The red hot Data Management Environment
A Multi-Value database for the masses, not the classes.
http://www.scarletdme.org - Get it _today_!

Political correctness is a doctrine, fostered by a delusional, illogical
minority, and rabidly promoted by an unscrupulous mainstream media, which
holds forth the proposition that it is entirely possible to pick up a turd
by the clean end.


More information about the Simpits-tech mailing list