Skip to main content
Associate III
November 5, 2023
Solved

AEK-MCU-C4MLIT1 - How to read from first push Button? - LLD readpad

  • November 5, 2023
  • 1 reply
  • 1525 views

Hi,

I tried to make an easy test of this board. when the button sw3 is pushed, LED 2 shall start blinking. 

Sadly it looks like my if statement equals always 0. 

Measuring the voltage on the testpin it looks like my MCU is sinking the complete voltage, no matter if the button is pressed or not. 

How do i configure the GPIO in a way that I could read from it without it to sink all the current? 

And where do I find this SIUL Documentation I should read before dealing with the advanced settings? 

 

if(pal_lld_readpad(PORT_F, sw3) == 1){

pal_lld_togglepad(PORT_F,led2);
osalThreadDelayMilliseconds(50);
};

sw3 = PF13 = Pin84

 

This topic has been closed for replies.
Best answer by Yali Mobilities

Hello,

     Kindly check whether you disabled the OCD driver in the appropriate pin.Screenshot (7).png

Thank you.

1 reply

Yali Mobilities
Yali MobilitiesBest answer
Associate III
November 10, 2023

Hello,

     Kindly check whether you disabled the OCD driver in the appropriate pin.Screenshot (7).png

Thank you.

OrbiterAuthor
Associate III
November 15, 2023

OMG! 

How is one supposed to find that? Well hidden. 

But thanks, it solves the problem. 

Do you know where I can find information about all of these settings? The ODC options need some clarification, as well as the other options. More than the one sentence tooltip explanation?