MPC5744P LINFlex UART don't work with ADC

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MPC5744P LINFlex UART don't work with ADC

925 次查看
kai-hsiangtu
Contributor I

Hello,

 

As title,  When I add any ADC register will cause LINFlex fail to work! Once the operation cmd remove, LINFlex works well. 

 

I've tried 2 sample projects which I download from this community with S32DS V1.1. Please refer to attachment and help me to solve this issue. Thank you very much.

Original Attachment has been moved to: MPC5744P-Uart_with_DMA-S32DS.zip

Original Attachment has been moved to: MPC5744P-LINFlex-UART-echo-SWpoll-S32DS.zip

标签 (1)
标记 (4)
0 项奖励
回复
1 回复

751 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

Most probably the ADC module is not clocked. Check the ME and CGM modules setting. Try to add following code at the end of SysCLK()…

MC_CGM.AC0_SC.R = 0x02000000;    // Select PLL0 for auxiliary clock 0

MC_CGM.AC0_DC2.R = 0x80010000;    // ADC_CLK : Enable aux clk 0 div by 2 … (80 MHz)

BR, Petr

0 项奖励
回复