Hello @danielmartynek
Thanks for your help.
I have more questions.
Here, I additionally set CAN and entered Standby, and the current consumption is high.(about 300uA)
(Low current consumption (about 50uA) when there is only GPIO)
please tell me the cause.
Best Regards
Solved! Go to Solution.
Hi @kjy106906,
If the port is routed to the FlexCAN modele, it cannot be controlled like GPIO.
This is really application-dependant, but if you see higher power consumption, you can reconfigure it to GPIO and set it as needed to eliminate any additional current there.
BR, Daniel
Hello @kjy106906,
In general, input pins should be driven or pulled to either VSS or VDD to avoid leakage current on that pins.
Outputs should not drive any external load.
Not sure what is the state of the pins in the low power mode of your application, I haven't seen the schematic.
BR, Daniel
Thank you @danielmartynek
The moment CAN TX is port inited, the pin is set to High.
Is there a way to set this to Low when going to Standby?
Best Regards
Hi @kjy106906,
If the port is routed to the FlexCAN modele, it cannot be controlled like GPIO.
This is really application-dependant, but if you see higher power consumption, you can reconfigure it to GPIO and set it as needed to eliminate any additional current there.
BR, Daniel
Thank you @danielmartynek
The S32K1XX SDK shows the appropriate function.
PINS_DRV_SetMuxModeSel
But I can't find a suitable function in the S32K3XX RTD.
Can you recommend a suitable function for the S32K3XX RTD?
Best Regards
Hi @kjy106906,
Have a look at Siul2_Port_Ip.c
Siul2_Port_Ip_SetOutputBuffer()
Siul2_Port_Ip_SetInputBuffer()
BR, Daniel
Thank you @danielmartynek
The pin configuration has various parameters.
Is there any problem if I just call that function?
Siul2_Port_Ip_SetOutputBuffer
I am concerned about the differences as follows.
Best Regards
From the S32K3xx RM:
So, you need to disable the input buffer provided it is enabled.
BR, Daniel