Explain values of ICU
Posted: Mon Feb 04, 2013 10:16 am
Using PWM-ICU example for STM32F100 and Tectu's Servo Library, I create own test application:
https://github.com/RaD/armka_demos/blob ... ter/main.c
Then I have connected PWM output (PB9) with ICU input (PA0) with a wire.
Following values in disconnected state:
Following values in connected state:
Just don't understand how to use them. I think that Period has to be about 36000 and width about 12000.
How to check that PWM frequency is 36kHz?
https://github.com/RaD/armka_demos/blob ... ter/main.c
Then I have connected PWM output (PB9) with ICU input (PA0) with a wire.
Following values in disconnected state:
Code: Select all
Period: 708 Width: 676Following values in connected state:
Code: Select all
Period: 1 Width: 1Just don't understand how to use them. I think that Period has to be about 36000 and width about 12000.
How to check that PWM frequency is 36kHz?