2024-06-25 06:56 PM
Hello,
I'm trying to start new project which is AVAS PRJ with SPC582B. So, I'm studying it with ST EVK like below.
Anyway, When I check pin mode in AutoDevKitStudio, I don't understand exaclty the meaning of pin modes(MODE_IO/MODE_GPI/MODE_OUTPUT/MODE_INPUT/MODE_PI/MODE_EIRQ) like below red circle.
Could you let me know about the pin modes??
Thanks,
Solved! Go to Solution.
2024-06-26 11:44 PM
Hi decemberdream,
the answer to your question is yes.
you can find more details looking the chapter 14 of the Reference Manual
Thanks,
AutoDevKit Team
2024-06-26 03:04 AM
Hello Decemberdream,
the pin modes indicate the direction of the signal depending on the micro, i.e. mode_input means that this pin is set as the input pin of the micro, pin_output means that this is a pin from which the signal goes out of the micro. Mode_EIRQ means that the pin is an input pin and is used to manage an external interrupt.
I suggest using the pin map editor for pin allocation
More details can be see looking the chapters 7 and 8 of the UM2623
Thanks,
AutoDevKit Team.
2024-06-26 02:29 PM
Hello ATROI,
Thanks for your useful information.
I tested it after I read UM2623 especially chapter 7 & 8 as you mentioned.
But I have one more question about GPIO(Input/Output) as first line on pop-up below(Red Part).
When I loaded reference source code on my EVK which I posted it as picture before, it shows LED_3 pin should be used SIUL/GPIO11 (SIUM General Purpose I/O 11) to use as GPIO Out(LED_3) thru the setting(Input/Output) on Pop-up menu.
What does it mean Input/Output?? I'm wondering if this Input/Output setting means the pin is used as input and output at once.
Usually, ARM based core should be set the GPIO either as Input or Output. But this SPC582B(PowerPC core??) can be worked both of Input and Output at once??
If yes, How to read input buffer and write output buffer??
Thanks,
2024-06-26 11:44 PM
Hi decemberdream,
the answer to your question is yes.
you can find more details looking the chapter 14 of the Reference Manual
Thanks,
AutoDevKit Team