Hi, Can someone help me with some delay code for a uP running at 20 MHz ? I have some code for 4MHz, is it just a matter of scalling by 5 ? PS any one playing with Compact Flash ? Cheers Andrew www.tech-software.net -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu]On Behalf Of techy fellow Sent: Wednesday, 5 January 2005 6:40 PM To: Microcontroller discussion list - Public. Subject: [PIC]: HELP REQUIRED FROM NEWBIE Hi Guys, Could someone pls let me know where can I get information on, PIC (preferably 16877 because I purchased a 16877 Development board from Futurlec.com) Controlled AC relays using a light sensor as an input ? I have searched thru the internet but can seems to find one that is close to what I want. Most of them are related to garden or drive-way lights which will turn on during the night. My objective is, if the light is on, the PIC will switch on 2 of the 4 relays for say 8 seconds while the other 2 relays are in off-position. After 8 seconds, alternate the 2 pairs of relays on/ off position. When the light is off, reduce the on/ off delays from 8 seconds to 4 seconds. I know there will not be an exact project available in the internet but if I can find one that is close, I hope I can make changes to the source code to suit my needs (part of learning). Thanks a zillion. cheers, --------------------------------- Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist