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
Is that solution could be apply to a LPC810 serie ?
I have seen that i must use the timer to produce the same effect on my chip.
If this is not possible , I will use it a 555 to produce the desired signal . But I wish have an answer to this question. thank you
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.
View all questions in Embedded forum