AnsweredAssumed Answered

No PWM support in LPCOpen for LPC17xx?

Question asked by danielholala on Feb 22, 2018
Latest reply on Feb 28, 2018 by Kerry Zhou

Hi all,

 

I'm developing on a LPC1769 using MCUXpresso IDE v10.1.1 [Build 606] [2018-01-02]  on Windows 10.

 

My own code should be based on LPCOpen's common chip-specific drivers. 

 

Therefore, I first imported the LPCOpen drivers "lpc_chip_175x_6x" into my MCUXpresso workspace. For this, I used the import wizard, selected the LPCOpen project archive "lpcopen_2_10_lpcxpresso_nxp_lpcxpresso_1769.zip" which came included with the IDE installation.

 

Skimming through the *.c and *.h LPCOpen driver files (in the imported "lpc_chip_175x_6x" project), the only reference to PWM (except for the motor controller pwm) which I could find was LPC_PWM1_BASE in chip_lpc177x_8x.h.

 

Adhering to the naming convention of the LPCOpen driver files, I expected to find a file, e.g., named pwm_177x_8x.[ch] or at least a register structure for the PWM registers. 

 

Any ideas why I'm missing these and where I could find them?

 

For now, I'm going to resort to the definitions provided in timer_17xx_40xx.[ch] as PWM is based on standard timer blocks and the register layout is very similar.

 

Thanks.

Daniel

Outcomes