Electronic variable vane control
Electronic variable vane control
Quote:For pins 6 and 5 (OC0A and OC0B):There are a total of 6! pins that can produce PWM. I think it is time to buy an oscilliscope.
If TCCR0B = xxxxx001, frequency is 64kHz
If TCCR0B = xxxxx010, frequency is 8 kHz
If TCCR0B = xxxxx011, frequency is 1kHz (this is the default from the Diecimila bootloader)
If TCCR0B = xxxxx100, frequency is 250Hz
If TCCR0B = xxxxx101, frequency is 62.5 Hz
For pins 9, 10, 11 and 3 (OC1A, OC1B, OC2A, OC2B):
If TCCRnB = xxxxx001, frequency is 32kHz
If TCCRnB = xxxxx010, frequency is 4 kHz
If TCCRnB = xxxxx011, frequency is 500Hz (this is the default from the Diecimila bootloader)
If TCCRnB = xxxxx100, frequency is 125Hz
If TCCRnB = xxxxx101, frequency is 31.25 Hz
I have some prototype code for the arduino. I spent a few hours last night researching and there is more I need to understand about the different types of PWM. The arduino is capable of the following frequencies :
List of Possible Frequencies:
Quote:For pins 6 and 5 (OC0A and OC0B):There are a total of 6! pins that can produce PWM. I think it is time to buy an oscilliscope.
If TCCR0B = xxxxx001, frequency is 64kHz
If TCCR0B = xxxxx010, frequency is 8 kHz
If TCCR0B = xxxxx011, frequency is 1kHz (this is the default from the Diecimila bootloader)
If TCCR0B = xxxxx100, frequency is 250Hz
If TCCR0B = xxxxx101, frequency is 62.5 Hz
For pins 9, 10, 11 and 3 (OC1A, OC1B, OC2A, OC2B):
If TCCRnB = xxxxx001, frequency is 32kHz
If TCCRnB = xxxxx010, frequency is 4 kHz
If TCCRnB = xxxxx011, frequency is 500Hz (this is the default from the Diecimila bootloader)
If TCCRnB = xxxxx100, frequency is 125Hz
If TCCRnB = xxxxx101, frequency is 31.25 Hz