lpcware

example using PWM on LPC1114

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by thinkchip on Sun Mar 28 00:31:22 MST 2010
Hi, I read the thread PWM on LPC114, in this thread show a example in how to use the pwm, I try to maked, but I cant, in my program, I try to move a servo motor with 50Hz, I don´t know the parameters limits in the function

init_timer32PWM(1, period, MATCH3);
        enable_timer32(1);
        setMatch_timer32PWM (1, 3, period/4);


in the variable period, what is the calculate to know the frecuency of 50Hz??
sorry for my bad english, I am new in the NXP family, I usually use microcontroller freescale, thanks

Outcomes