DMX Receiver on ATTiny85
i have written dmx receiver attiny85, runs @ 8mhz , bit-sniffs data using inline code. tried several methods, using pin change interrupts , timer0 interrupts, realised overhead of interrupt control used many clock cycles desperately needed serial reception.
for dont know, dmx uses serial protocol of 250kbs, 1 start bit, 2 stop bits , no parity checking. there break signal goes low 88us before data transmitted, quite easy spot when data coming.
i spent quite while tweaking commands , bit manipulation best out of timings, of need balanced @ 4us (32 clock cycles) reading intervals. inline code had switch interrupts off , used nop's accurately place sample points read 1-8-2 bits
as have spent long time interfacing nrf24l01's, next task hook radio modules dmx receiver, boards ready !!!
for dont know, dmx uses serial protocol of 250kbs, 1 start bit, 2 stop bits , no parity checking. there break signal goes low 88us before data transmitted, quite easy spot when data coming.
i spent quite while tweaking commands , bit manipulation best out of timings, of need balanced @ 4us (32 clock cycles) reading intervals. inline code had switch interrupts off , used nop's accurately place sample points read 1-8-2 bits
as have spent long time interfacing nrf24l01's, next task hook radio modules dmx receiver, boards ready !!!
hi,
can post source code please ? have tried receive dmx signals attiny85 internal oscilator doesn't work :/ attiny 4 4 pwm ports perfect analog rgb stripe me.
thanks in advance
can post source code please ? have tried receive dmx signals attiny85 internal oscilator doesn't work :/ attiny 4 4 pwm ports perfect analog rgb stripe me.
thanks in advance
Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > DMX Receiver on ATTiny85
arduino
Comments
Post a Comment