cancel
Showing results for 
Search instead for 
Did you mean: 

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

Orbiter
Senior

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
Yali Mobilities
Associate III

Hello,

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

Thank you.

View solution in original post

2 REPLIES 2
Yali Mobilities
Associate III

Hello,

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

Thank you.

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?