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.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Hi everyone.
PWM OUTPUT PIN SELECTION PINSEL4
I am trying to output PWM from the microcontroller. Since i needed to change the hardware registers, i am now stuck to the point that i cannot change the output pin of the PWM. Code below tells you how to change the pin. if i put the pinseld4 |= 1; only then it works and the output appears on p26. when i use any other value such as 40(hex) that should change bit 6 hence outputting the pwm to p23, it doesnt work.
also what i am getting on oscilloscope is a very sinusoidal signal of the pwm output. please help