How to get PWM out using match register of Timer1/2/3/4

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to get PWM out using match register of Timer1/2/3/4

248 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by vdaniel on Thu Apr 28 04:01:31 MST 2011
I use PWMs of the LPC1769 for special purpose and need other PWM output
to use it as DAC.  When I look the user guide I see, that in match I can program,
for example. switch to one.  But how can I (without using interruption) switch it back
to zero?

Varuzhan
0 Kudos
1 Reply

184 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by domen on Thu Apr 28 23:04:24 MST 2011
Talking from memory about experience on lpc1343, so take this with a grain of salt.

Have one match set to switch it to 1, and another match to reset the counter (that will switch it back to zero).

If you want to stop the counter, and switch output to zero, you should set counter register to 0.
0 Kudos