![]() If one never operates then there will be no zero cross detection. As such, the resistor to ground (R5 in the attached schematic, is necessary for zero cross detection). But with the AC Mains setup of the attached schematic and simulation, this situation is not prevalent…and therefore the resistor to ground is needed (ie from ZCDxIN pin to ground)…do you agree? PIC16F18856 datasheet Do you agree? The schematic in the PIC16F18856 datasheet shows a situation where the AC source and the microcontroller are both referenced to the same “ground”. We are trying to do Zero Cross detection with the PIC16F18856. The schematic and LTspice sim of what we are doing is as attached. OUT bit: Section 21.2, page 316 of the PIC16F18856 datasheet clearly states that zero cross detection is gotten from the setting and clearing of the OUT bit. Section 21.2 states that the OUT bit is set when the current sink is active, and cleared when the current source is active. ![]() Square wave: If the waveform being checked for zero cross is a square wave, then the zero cross circuitry is obviously going to work. ![]() If a square wave, then the OUT bit is obviously going to set/clear right at the zero crossing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |