BobMcNobby
Senior Member
I have done a huge amount of work using a 28x2 @ 100mhz Transmitting lots of DMX data within quite a complex application.
I have been running this in a LIVE situation for several months now and is VERY stable )
My head is now turning towards DMX RECEPTION
I havent tried this yet, but this is what I am thinking....
Any thoughts ? I am sure Hippy cant resist this one ;@)
Regards Bob
I have been running this in a LIVE situation for several months now and is VERY stable )
My head is now turning towards DMX RECEPTION
I havent tried this yet, but this is what I am thinking....
Code:
' DMX receiver - 28X2 running at 100mhz
Symbol B250000_100 = 99 ' 250kbps @ 100mhz
Start:
HSerSetup B250000_100, %00010000 ' use Hserin pin as normal i/o
pulsin C.7,0,w0 ' get size of MARK (0)
if w0 < 220 then start ' is mark < 88us
pulsin C.7,1,w0 ' get size of MAB (1)
if w0 < 10 or w0 > 20 then start ' is it between 4us and 8us
HSerSetup B250000_100, %00000000 ' use Hserin pin as serial input
HSerin 0,1,($00) ' first byte must be zero
HSerin [10,Done],1,512 ' read up to 512 bytes into scratchpad
Done:
HSerSetup B250000_100, %00010000 ' disable hrserin
' do tasks
goto start
Regards Bob