losturcos
Member level 4
Hello,
I am trying to sense zero cross for 220VAC with PIC microcontroller, PIC18F452. I have read AN521 microchip application note which gives the theory for sensing the zero cross with only one resistor. In the app note the example controller is PIC16C5X which has input protection diodes internally.
My question is, do these diodes exist in 18F452? I couldnt see it at the datasheet.
I have prepared a small circuit in Proteus. I couldnt get a result. I only connected a sinus 220VAC / 50 Hz to porta.1, and tried to sense it.
Have I misunderstood something.
Thanks.
I am trying to sense zero cross for 220VAC with PIC microcontroller, PIC18F452. I have read AN521 microchip application note which gives the theory for sensing the zero cross with only one resistor. In the app note the example controller is PIC16C5X which has input protection diodes internally.
My question is, do these diodes exist in 18F452? I couldnt see it at the datasheet.
I have prepared a small circuit in Proteus. I couldnt get a result. I only connected a sinus 220VAC / 50 Hz to porta.1, and tried to sense it.
Have I misunderstood something.
Thanks.