Posted: Sun Jul 24, 2016 5:05 pm Post subject: PWM Question
Hello
i have a question about the short program further down
The PWM has a period time = 4ms. I--4ms--I--4ms--I--4ms--I
So what happens when i set a new PWM Value every millisecond like in the program?
I think this:
During the 4ms the new pwm value is not accepted.
The accepted value is that value which is in the Compare1B Register after the 4ms.
Is this right ?
Many thanks for your help
Greetings
$crystal = 8000000
Config Timer1 = Pwm , Pwm = 8 , Compare A Pwm = Clear Up , Compare B Pwm = Clear Up , Prescale = 64
Dim PWM as Byte
The OCR0x Registers are double buffered when using any of the Pulse Width Modulation (PWM) modes. For the normal and Clear Timer on Compare (CTC) modes of operation, the double buffering is disabled.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum