SimulIDE_1.0.1-R1374_Win32
On the previous schematic, test_2a.sim1, I added a rectified attenuated RC filter to drive the MCU pin C1 (ADC1). The real trace of the voltage at that pin (C1) looks as on the image, test_2b.png (for mains peak voltage equals 311V, 220Vrms). The MCU internal limiting diodes have no role in this case.
I couldn’t let the oscilloscope display it while debugging test_2b.asm (which is a copy of the previous one, test_2a.asm).
I also noticed that by decreasing the mains voltage peak from 311V to 200V for example, the 50% duty cycle at pin D3 (INT1) decreases too appreciably. On a real board, the duty cycle stays close to 50% while varying the mains voltage.
On the previous schematic, test_2a.sim1, I added a rectified attenuated RC filter to drive the MCU pin C1 (ADC1). The real trace of the voltage at that pin (C1) looks as on the image, test_2b.png (for mains peak voltage equals 311V, 220Vrms). The MCU internal limiting diodes have no role in this case.
I couldn’t let the oscilloscope display it while debugging test_2b.asm (which is a copy of the previous one, test_2a.asm).
I also noticed that by decreasing the mains voltage peak from 311V to 200V for example, the 50% duty cycle at pin D3 (INT1) decreases too appreciably. On a real board, the duty cycle stays close to 50% while varying the mains voltage.
- Attachments
- test_02b_ATmega8.zip
- You don't have permission to download attachments.
- (49 Kb) Downloaded 2 times