do you need to check phase rotation continuiously ? you may be able to check it once and assume that no one will reverse phases when running, then just monitor your average voltage You could use one pin (as an interupt) to monitor the average and two to check the freq/rotation still using only three pins and just a few lines of code that runs once I used to do a lot of industrial automation email me off list if I can help pc > Hi there, > > In addition to performing a multitude of other functions, I want to use > 3-Pins of a PIC16F87X to monitor the presence and correct phase rotation > (sequence) of a 3-Phase supply. > > Has anybody on the list done this before? Is it best achieved with > interrupts or simply as part of the main loop? > > Basically, I need to check for a zero cross in correct order and in a given > period of time. I would also like the code to be "smart enough" to detect if > it is sensing 50Hz or 60Hz and adjust itself accordingly. > > If anybody has done anything in this area, I would be glad to hear from > them. > > Regards, > > Sean Alcorn > > -- > http://www.piclist.com hint: The list server can filter out subtopics > (like ads or off topics) for you. See http://www.piclist.com/#topics > > Peter Cousens 62,springfield ave London N10 3SY p.cousens@virgin.net -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics