Dear Mister_e;
yes many thereads in the forum but everybody has problem to receive dmx and nobody has succeed it..if you can writte and example here for us
i know i have to use "hserin" command and it must be 250000baud it is not my problem i know them how to make..
i want to see Code example to receive with "Hserin" Command.
You said to me that i have to use "Hserin" Commmand For DMX receive But you didnt Writte it here ,
How can i use it with 16f628A adn 20 mhz ;
I didnt build my own master.(Transmitter) i use normaly device for lighting deskControl.and it works with dmx protocol .
can you writte code here for how to receive it.
i have standart dmx512 control device .. i need 512 receiver and it must be 3 chanel for my 3 leds you can look to my schematic
if you create asm sub (you can see i.ex manolator source@4mhz) and call that sub every time when you want to make output, must be carefull, timings are critical read the dmx protocoll
another thing is dmx protocol is 250kb but is 11bit information with speciall startbit which is not standard. so forged using anny hserin or hseout exept if you can do some kind of hardware bit cutter/splitter-manipulator
sorry for my english, im not shure that i'm uderstundible
if someone is interested and able to programm DMX mini desk (i think can be done i.ex with 18f452) my wish is to see (and help)make those code (and schematic)
hi friends i search in the forum and found many examples thanks. i have pic 16f876 , 20 mhz osc and 1 led ,i have dmx512 lighting desk too and i want to dimm a led on dmxadres 1 (0-255 to led intensty) but there is some problem on this code it is not working. i found this code in the forum and made it again for my pic but couldnt find the problem.can you look to my code and say what is my problem here?or you can send other example code to receive dmx ..
' PIC 16F876 - 20MHZ OSC
DEFINE OSC 20 ' 20 MHZ OSC
DEFINE HSER_TXSTA 24h ' Enable transmit
DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
DEFINE HSER_SPBRG 4 ' 250 000 Baud @ 20MHz, 0.0%
DEFINE HSER_CLROERR 1 ' Clear overflow automatically
ASM
ERRORLEVEL -306, -302
ENDASM
ADCON0 = 0
ADCON1 = 7
counter var word
idleflag var word
dummy var word
RCIF VAR BYTE
startcode var word
aminus var word
adress var word
x var word
level1 var word
adress = 1 ' My Start Adress
checkdmx:
counter = 1 ' Dummy variable
pulsin portC.7,0,counter 'Here looking for the break signal
if counter = 0 then
idleflag = 1 'either no dmx , or break was too long to count
'return
endif
if counter < 40 then checkdmx ' watching for "break"
dummy = RCREG
dummy = RCREG
SPBRG = 0
TXSTA.2 = 0
TXSTA.4 = 0
RCSTA.7 = 1
RCSTA.6 = 0
RCSTA.4 = 0
RCSTA.4 = 1
while RCIF = 0: wend
startcode = RCREG 'firs byte after break
if startcode <> 0 then checkdmx
aminus = adress -1
for x = 1 to aminus
while RCIF = 0: wend
dummy = RCREG
next x
level1 = RCREG
portC.1 = level1 'i want to dimm led on port c.1
RCSTA.7 = 0
goto checkdmx
return
dear dynamoben here is a forum and we have to post something to learn.
i make my code change and send it back why is it problem for you here is a forum and we have to post something you may not help just looking for a people that wo will find my problem to receive data no more.
Bookmarks