2017-10-23 10:44 AM
hi
kindly help my design.
i am using stm8s003f3p micro-controller. timer 1 input capture unit doesn't work as i intended. i searched web forums and blogs i couldn't find solution for counting pulses between 5hz-100hz. i used standard peripheral library to change according to my need.i modifed tim1 input capture example to count pulse and send period values over UART1.
i here by attach my code as well.please help me to find solution.
2017-10-25 01:50 AM
Hello,
You have chosen the correct example. Could you share more detail about the facing issue please ? Which hardware are you using ? It seems that you are sending result via UART with timer interrupt which could be helpful if you are facing unwanted behavior....
Here some additional lecture to STM8S AN2822 :
https://www.fmf.uni-lj.si/~ponikvar/STM32F407%20project/Timer2_Counting.pdf
Regards,
Simon
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2017-11-02 04:42 AM
Hello simon,
first He want to change the timer value.
second he want read the timer value.