Knife
Member level 2
- Joined
- Apr 26, 2009
- Messages
- 43
- Helped
- 1
- Reputation
- 2
- Reaction score
- 1
- Trophy points
- 1,288
- Activity points
- 1,593
Hi everybody
I wanna measure PWM signal duty cycle with STM8S Capture Module. PWM signal duty is changing between 0% and 100%. System start 0%, 100% or any value between 0% and 100%.
I'm using capture interrupt and I'm measuring exact value of PWM duty. But I have a problem. If the system will start at 0% or %100, I can't handle that value. Because there isn't any changes of signal edge.
I have an idea. I can use one extra I/O port to control signal level. But I wanna ask you first, is there any software solution without using I/O pin ? Could we know capture pin level (high or low) ?
I wanna measure PWM signal duty cycle with STM8S Capture Module. PWM signal duty is changing between 0% and 100%. System start 0%, 100% or any value between 0% and 100%.
I'm using capture interrupt and I'm measuring exact value of PWM duty. But I have a problem. If the system will start at 0% or %100, I can't handle that value. Because there isn't any changes of signal edge.
I have an idea. I can use one extra I/O port to control signal level. But I wanna ask you first, is there any software solution without using I/O pin ? Could we know capture pin level (high or low) ?