Shop OBEX P1 Docs P2 Docs Learn Events
reading riseing and falling Data/Clock, pulses???? — Parallax Forums

reading riseing and falling Data/Clock, pulses????

$WMc%$WMc% Posts: 1,884
edited 2008-11-24 23:16 in Propeller 1
Hello all

·What I'm trying to do is read two 24 bit words. this is LSB 1st a 55uSec delay for the start then the 24 bit "Data" steam,Then comes a 55uSec stop,And then a 55uSec start for the next 24bit Word then a 55uSec stop time. The Freq. is around 80kHz

· My real ? is what statement would I use to look for the rising edge of A Data or Clock pulse
· I also need the falling edge of a clock/Data pulse

·This is in ref. to the I/O pins on the Prop.

·One other remark is the Pv from the device is only 1.5 volts,I plan on useing an O-Amp to get a lil. closer to 3.3volts

_______________$WMc%___________

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-11-24 01:58
    Read the sections in the Propeller Manual on the WAITPNE and WAITPEQ statements. These look for a particular pin state rather than a change in state, but you use two of them. The first waits for the idle state of the line. The second waits for a change in state (from idle).
  • $WMc%$WMc% Posts: 1,884
    edited 2008-11-24 23:16
    Thanks Mr.Green

    Thats what I was looking for.


    ________________$WMc%_____
Sign In or Register to comment.