Hi,
There should be an error or something that hinders the higlighted line of the code below
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
解決済! 解決策の投稿を見る。
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.
[LPC84x User Manual. Chapter 10: LPC84x Switch Matrix (SWM)]
[System clock control 0 register SYSAHBCLKCTRL0]
Here is an example for the configuration:
Best regards, Raul.
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.
[LPC84x User Manual. Chapter 10: LPC84x Switch Matrix (SWM)]
[System clock control 0 register SYSAHBCLKCTRL0]
Here is an example for the configuration:
Best regards, Raul.