Digital and Analog inputs
Answer
6/6/18 2:45 PM

Hello 

I want to know if it is possible to define a GPIO port as a digital or analog input?. I am trying to turn on a led ligh while pressing a push button. And I would also like to use an external sensor apart from those already included in the XDK. 

0 (0 Votes)
RE: Digital and Analog inputs
Answer
6/7/18 12:26 PM as a reply to Andres Rivera.
Hello Andres,

A GPIO pin on the extension bus can always be defined as digital in- or output.

Unfortunately, not all of them are capable to work as analog in- or outputs. I would recommend taking a look at the datasheet of the XDK's MCU EFM32GG390 . This datasheet provides the pin assignment for the pins on the Extension Bus. There, you can look for the pins that can be configured as analog.

In regards to your use case, I would additionally recommend taking a look the Extension Bus guide in the Learning section of the XDK community.

Please let me know if that was helpful and feel free to ask if you have any further question or concern.

Kind regards,
Franjo
0 (0 Votes)
RE: Digital and Analog inputs
Answer
6/13/18 10:01 PM as a reply to Franjo Stjepandic.

Hello Franjo

Thanks for the reply, I'm going to take a look at the guide, if I have any other questions I'll write to you.

 

0 (0 Votes)
RE: Digital and Analog inputs
Answer
6/14/18 9:02 AM as a reply to Andres Rivera.
Hello Andres,

I am always glad to help.

Please feel free to ask if you have any kind of further questions or concerns .

Kind regards,
Franjo
0 (0 Votes)