Are you trying to control two outputs with two different dimmer settings?
In your code, you seem to be having the same setting for both delays.
Are you trying to control two outputs with two different dimmer settings?
In your code, you seem to be having the same setting for both delays.
"If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte
Hi,
Yes I send trough RS485 data to my Pic,for channel one and channel two.
But when I receive the delay data for the first Channel for example 30*100=3000 us and 40 *100 =4000 us for the second Channel,then I think that this can not work while the first channel must wait 3000 us + 4000 us and then go low.
Did you understand what I mean,wehn I modify the data for Channel one then i go modify the data for the Channel two too.
regard
Pesti
Ok Im A Idiot :-),Ifind the way I must just for every Channel put a New Zero Cross Detection like here:
POS_FLNK:IF ZeroDetect = 0 Then POS_FLNK
NEG_FLNK:IF ZeroDetect = 1 Then NEG_FLNK
PauseUs Delay_1
high PortC.0
pauseUs 100
low PortC.0
POS2_FLNK:IF ZeroDetect = 0 Then POS2_FLNK
NEG2_FLNK:IF ZeroDetect = 1 Then NEG2_FLNK
PauseUs Delay_2
high PortC.1
pauseUs 100
low PortC.1
hserin 1,MainStart,[WAIT("!"),DataIn[0],DataIn[1]]
Delay_1 = Datain[0] * 100
Delay_2 = Datain[1] * 100
GoTo MainStart
Regard Pesti
Hallo,
My Code is Working ,but :-) I dont have the full Brightness on all the light bulbs.
Did some one know what I can change in my Code,
I use now a 20 Mhz Osc.
Thanks.
Regard
Pesti
Bookmarks