Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years ago.
what are the TMR32/16 pin for ?
Hi , what are the TMR32/16 pin for ? , My guess would be timer something ? AND does the WiFi DipCortex have any pins for PWM output ?
Question relating to:
3 Answers
11 years ago.
From only looking at the code/how it is for the LPC11u24 (so might be mistaken)(and I agree this could have been clearer):
Timer matches are PWM outputs. If two pins are same timer + match, you can use only one at a time. Also don't use TMR32-1 pins, that timer is already used as timer for Timer, Ticker, Timeout, wait, etc. So if you use it for PWM those will stop working.
11 years ago.
Thank you ,
That sounds hopeful !!! , I only want to use a single PWM output + digital output so I can use a sound library which need them and didn`t see on the specs anything about PWMout pins
11 years ago.
HI Peter,
The LPC11U and LPC1347 don't actually have PWM peripherals they use the 4 timers. each timer has 4 match registers one sets the period the other 3 set a duty.
I have a guide here : http://www.soldersplash.co.uk/guides/dipcortex-pwm-pulse-width-modulation-using-a-timer/ this describes how the timer peripheral works and gives example code for LPCxpresso (should work with mbed but wont be cross platform)
When using the mbed library it uses one of the timers for various time based functions like wait.