Skip to main content
Hiram Hyman
Associate III
April 27, 2022
Question

Hi Group, I'm setting up the stm32h747i-disco (Joystick) by setting ports GPIOK - PK2,PK3,PK4,PK5 and PK6 respectively to inputs with no pull ups/downs. In Touch GFX, I'm calling a virtual function to signal when the selected direction goes low.

  • April 27, 2022
  • 2 replies
  • 1166 views

The voltage measured was approximately 3.3v at the pins of the joystick. As the direction changes the voltage drops to 0vs. I'm yet to work with the task and I understand that all inputs on the GPIO pins are set to analog by default.

My question is, what is the possible cause of not reading the inputs of this unit considering my simple setup? Please point me to the direction where I could read more about this Board.

Thanks in advance,

Hiram

This topic has been closed for replies.

2 replies

TDK
Super User
April 27, 2022

You should set them as inputs with pullups. The buttons will ground each signal. Either poll the pin states or connect them to EXTI to be notified of a falling edge.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Hiram Hyman
Associate III
July 5, 2022

Hi!

It's been a while but, I found the issue with your help a while ago however.

First, I did have to change the device to input and make sure I was noticing when the interrupt occurred.

Thanks for your help!

Hiram

HXE