Hello,
it looks like Fast PWM mode is not working properly in the mode where the TOP value is defined by the ORC0A register. The mode is selected using bits WGM00/01/02 = 1/1/1 in registers TCCR0A/B.
I checked the correct bit settings in the program and in the MCU monitor, but the PWM was incorrect. It looks like the value in OCR0A is ignored and the value 0xFF is considered to be the TOP value.
Attached is both the program and the schematic.
PS: I am useing Simulide 1.1.0-RC at Rev 1987
Have a nice day.
Thanks.
it looks like Fast PWM mode is not working properly in the mode where the TOP value is defined by the ORC0A register. The mode is selected using bits WGM00/01/02 = 1/1/1 in registers TCCR0A/B.
I checked the correct bit settings in the program and in the MCU monitor, but the PWM was incorrect. It looks like the value in OCR0A is ignored and the value 0xFF is considered to be the TOP value.
Attached is both the program and the schematic.
PS: I am useing Simulide 1.1.0-RC at Rev 1987
Have a nice day.
Thanks.
- Attachments
- program-and-schematic.zip
- You don't have permission to download attachments.
- (6 Kb) Downloaded 2 times