Content originally posted in LPCWare by ethankhoo on Wed Sep 19 01:31:19 MST 2012
Hi everyone, i would like to ask about the cmsis library available for the MCPWM function in LPC1769.
i am having problems understanding certain requirements of the function,
in all the functions, there is a requirement to put in a *MCPWMx
[SIZE=2][COLOR=#7f0055]
[/COLOR][/SIZE][SIZE=2] [B]MCPWM_Init[/B]([/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032][U]LPC_MCPWM_TypeDef[/U][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][U] *MCPWMx[/U])[/SIZE][SIZE=2][COLOR=#7f0055]
[/COLOR][/SIZE][SIZE=2] [B]MCPWM_ConfigChannel[/B]([/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032][U]LPC_MCPWM_TypeDef[/U][/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][U] *MCPWMx[/U], [/SIZE][SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]uint32_t[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] channelNum,[/SIZE]
[SIZE=2][COLOR=#005032][SIZE=2][COLOR=#005032]MCPWM_CHANNEL_CFG_Type[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] * channelSetup)[/SIZE]
[SIZE=2][/SIZE]
[SIZE=2]May i know what exactly are they asking for? i cant seem to put in an appropriate variable.[/SIZE]
[SIZE=2][/SIZE]
[SIZE=2]Thanks for your help and i would appreciate any help.[/SIZE]
[SIZE=2][/SIZE]
[SIZE=2]A sample code for initialization would be greatly appreciated too.[/SIZE]
[SIZE=2][/SIZE]
[SIZE=2]Thank you all[/SIZE]
[SIZE=2][/SIZE]
[SIZE=2][/SIZE]