metron9
04-17-2007, 09:45 AM
I am working on a 2 wire device to interface with basic stamps using the shiftout and shiftin commands for error control. Basically the device receives data commands from a stamp in 8 bit bursts using shiftout. I use a timeout for the maximum time to wait from the first interrupt (start of the first bit out of the stamp) to the 8th bit. It defaults to allow sending 8 bits at a time. To send 16 bits I measure the time it takes to send 8 bits and then set the timeout to that plus a small amount. The device will automatically calibrate to any of the stamps that are faster than the BS2 but I need to know if my interrupt timer value can go high enough (higher is slower) to allow the BS1 to also use the device.
So specifically the bs2 I measure from the first clock rising signal to the last (8th) clock falling signal about 433uS
I need the time for this on the BS1
I guess I better find out the fastest stamp time as well. For this I will also need the low time between the 8th bit clock falling to the 9th bit rising signal for a 16bit shift.
Thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think Inside the box first and if that doesn't work..
Re-arrange what's inside the box then...
Think outside the BOX!
Post Edited (metron9) : 4/18/2007 2:47:06 PM GMT
So specifically the bs2 I measure from the first clock rising signal to the last (8th) clock falling signal about 433uS
I need the time for this on the BS1
I guess I better find out the fastest stamp time as well. For this I will also need the low time between the 8th bit clock falling to the 9th bit rising signal for a 16bit shift.
Thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think Inside the box first and if that doesn't work..
Re-arrange what's inside the box then...
Think outside the BOX!
Post Edited (metron9) : 4/18/2007 2:47:06 PM GMT