Hi,
I'm working on a project based on KEA128.
S32 Design Studio for ARM v2.0 is expired so I install S32 Design Studio for ARM Version 2018.R1.
When I set an IO pin, it output 0, and when I clear an IO pin, it output 1.
So I check the SDK, and find the problem in following picture.
It is from the file gpio.h, and its path is:
C:\NXP\S32DS_ARM_v2018.R1\S32DS\Sample_Drivers_for_KEAxxx_Evaluation_grade\headers\gpio.h
Is it an error?
Best regards,
Sarah
Hi @w_lingjun
The macros are correct.
When Port Set Output Register (PSOR) is set to logic 1, also, the corresponding bit in Port Data Output Register (PDOR) is set to logic 1. By the other hand, when Port Clear Output Register (PCOR) is set to logic 1, the corresponding bit in PDOR is set to logic 0.
Depending on the value of PDOR, it will determine the logical output value of the pin.
B.R.
VaneB