STM32 F767ZI: How to read an external ADC and print the result
Hello,
I am using the stm32 F767ZI development board for a project. This is my first time using this board and only my second time working with an MCU in general. The software I am using is CubeMX and Attollic Truestudio.
My current goal is to read data from an external 8 bit ADC. The data is ready on the rising edge of the CLK. So far I have used cubemx to configure pins PD0-PD7 as GPIO inputs and PA0 as an external interrupt with rising edge detection.
Now that I have the software generated code I am completely lost as to where to start.
Where do I write the code to read the inputs, inside the interrupt? In Main.c?
And what is the syntax for reading data from a specific port?
Finally, if I am able to successfully read the data. How can I display or print it to verify that it is reading it? The simple printf function does not seem to work with this software.