Part Number: TDA4VM
Tool/software:
What are the possibilities for testing the GPIO pins in the WKUP Domain?
Is there a register that shows the value of a certain pin, or the only way is to use an oscilloscope to measure the respective pin?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: TDA4VM
Tool/software:
What are the possibilities for testing the GPIO pins in the WKUP Domain?
Is there a register that shows the value of a certain pin, or the only way is to use an oscilloscope to measure the respective pin?
Hi,
From the block diagram below, you can see the value of a certain pin within the IN_DATA register after the pin is read. Additionally, more information can be found from the second image which includes a snippet from the TRM. If you are using a TI EVM, or if your custom board has this capability, you can connect an oscilloscope to testpoints on the board.


Thanks,
Neehar
Thank you for your answer.
So, considering the above information, I have the following question :
If I set the GPIO pin as output, and for example, I set the value to logic-high, will the IN_DATA register still follow the logic value which was set ?
This is useful if we have a hardware issue and the PIN is shorted to ground(logic-low value), will we be able to detect this behavior with the help of IN_DATA register ?
It is not very clear for me, can you please confirm :

If we read the IN_DATA register when GPIO is configured as an output, will we read the actual PIN state ?
Thank you,
Octavin
Hi Octavian,
If the GPIO pin is set as output, then you will want to access the GPIO_OUT_DATA register for the specific pins and banks. See the below picture:

It is not very clear for me, can you please confirm :
This excerpt is specifically for GPIO pins configured as input and will not apply to your situation.
Thanks,
Neehar