Hi expert,
Wants understand how to generate a signal of 7000hz by the pwmout mbed's library,
I read a lot of explainations but i can't find a simple sample code with a good explaination.
Thanks
I know this is absolutely overkill. You could use the SCT - it's overqualified for this task.
The SCT has a built-in state-machine, which you can use for changing the state from 1 to 0 and from 0 to 1.
You can then make an event, that happens when the state changes to 0, and another event when the state changes to 1.
Each event can for instance change the state of a pin.
I do not know how mbed code for this would look, though.