in the first link
The master generates the telegram frame, creating 8 startbits, followed each by 8 bits (1 byte) and a (long) stopbit. Then everything starts again. One bit has a duration of 104µs.
The distance between two startbits can vary between 1200µs and 1400µs depending on the device.
The distance between two telegrams is 20ms for PAL/625 and 16.6ms for NTSC/525.
once you understand it an can shift out one bit after the other... it's not going to be really hard!
Code:
For BitN=0 to 7
SerPin=ValueToSend.0[BitN]
pauseus 104
next
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks