Not able to modify PINENABLE0 register

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

Not able to modify PINENABLE0 register

跳至解决方案
831 次查看
tomato
Contributor III

Hi,

There should be an error or something that hinders the higlighted line of the code below

tomato_0-1672151645804.png

I am trying to use channel 0 of the on -board ADC of the LPC845brk but I cannot enable the ADC0 channel. Even if I try to change the value with the scroll-down menu near the ADC_0 label in the registers perspective (shown on the left side of the screenshot above) the value is automatically set to "Value_1"  .

Do you know how to solve this issue?

Thanks

 

0 项奖励
回复
1 解答
814 次查看
RaRo
NXP TechSupport
NXP TechSupport

Hello @tomato,

You need to enable the clock of SWM first, to make a change in PINENABLE0 register. After you finish the configuration of the SWM module, it is recommended to disable the clock.

RaulRomero_0-1672245692864.png

[LPC84x User Manual. Chapter 10: LPC84x Switch Matrix (SWM)]

 

RaulRomero_1-1672245692868.png

[System clock control 0 register SYSAHBCLKCTRL0]

 

Here is an example for the configuration:

RaulRomero_2-1672245692870.png

Best regards, Raul.

在原帖中查看解决方案

0 项奖励
回复
1 回复
815 次查看
RaRo
NXP TechSupport
NXP TechSupport

Hello @tomato,

You need to enable the clock of SWM first, to make a change in PINENABLE0 register. After you finish the configuration of the SWM module, it is recommended to disable the clock.

RaulRomero_0-1672245692864.png

[LPC84x User Manual. Chapter 10: LPC84x Switch Matrix (SWM)]

 

RaulRomero_1-1672245692868.png

[System clock control 0 register SYSAHBCLKCTRL0]

 

Here is an example for the configuration:

RaulRomero_2-1672245692870.png

Best regards, Raul.

0 项奖励
回复