Hi All, I'm making some small 4 channel 240Vac light dimmers to help out a local school. I've already made the PCBs and have used a 16F628-04P to control each one. I've included a 6 way DIP switch, 4 TRIAC drivers and a zero cross detect via RB0. What I need to do now is write some code for 'em! Does anyone have any good tips for phase control? I was going to use the RB0 interrupt to detect the zero crossings and timer 0 to delay the phase firing from that point each time. I am going to use the hardware UART with a RS485 driver/receiver. Sound OK so far? Any good suggestions or pointers would be appreciated. :-) Regards... ___________________________________________ David Duffy Audio Visual Devices P/L U8, 9-11 Trade St, Cleveland 4163 Australia Ph: +61 7 38210362 Fax: +61 7 38210281 New Web: www.audiovisualdevices.com.au New email: avd@audiovisualdevices.com.au ___________________________________________ -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body