Using SHIFTIN with external clock
aeklo
Posts: 20
I want to read a datastream from an synchrounous external device, but from the BS2 documentation I can see that the SHIFTIN-command reads bits and outputs clock pulses...
As far as I have understood the device I want to "decode" (a LCD character generator ment for a LCD driver), the device sends out a clock pulse which the recieving part needs to sync to.
This is opposite of what I understand the SHIFTIN does.
Does anyone have some tips on this? Thanks!
As far as I have understood the device I want to "decode" (a LCD character generator ment for a LCD driver), the device sends out a clock pulse which the recieving part needs to sync to.
This is opposite of what I understand the SHIFTIN does.
Does anyone have some tips on this? Thanks!
Comments
·· It might help to provide a link to the device datasheet, or at least a part number for the device in question.· Please post more information on this part for us to help you.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
The data "sender" is a Robertson AP1000 Autopilot for boats, and I have very few details on this except that it uses a National Semiconductor MM5452 LCD driver to display its course (which is what I need to extract).
Since I could get a hold of the MM5452's datasheet, I figured I have to emulate the drivers functions in order to get a hold of the data.
The driver receives a clock signal and a serial data signal.
MM5452 Datasheet: www.national.com/ds.cgi/MM/MM5452.pdf
·· I haven't studied the datasheet in detail, but the clock line is shown as an input, not an output.· It appears you should be able to use the SHIFTOUT command, as it appears the device is an output device only.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
I want to grab the data being sent to the LCD controller, and as you mention, the LCD controller has a clock input.
Therefore I would need to sync to that same clock signal when trying to input the data in the BS2.
That is where I'm kind of stuck. As far as I can see, the BS2 only sends clock signals and cannot receive.
Or could this it be "tricked" into using this external clock by inputing on another pin?
/Anders
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
If not, is there any ICs perhaps that would do the job of syncing the data into an asynchronous flow, thus making it accessible for the BS?
I don't know what to search for on this, so any tips would be appreciated
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Don
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don Kinzer
·