with cmd-CPU -> 0 to REGISTER GPIO the port value is 3,3 V
with cmd-CPU -> 1 to REGISTER GPIO the port value is 0 V (close to ground) negative logic.
What REGISTER which registers manage for positive logic to GPIO???
with cmd-CPU -> 1 to REGISTER GPIO the port value is 3,3 V (to VDD)
with cmd-CPU -> 0 to REGISTER GPIO the port value is 0 V (close to ground)
best regards
Solved! Go to Solution.
Sacchetti:
I cannot understand pretty well your inquiry, but below you will find steps to follow in order to configure any Port pin or PTBx to use it as output and send a high or low level for a specific pin, please see below:
Please let me know if this information is useful.
Hi Sacchetti:
I am not pretty sure what you mean with your question but I will guess that you want to know with which register you could write a high logic and get a 0v or ground connection, in this case you can so it using the Port Clear Output Register (GPIOx_PCOR).
Please let me know if this is what you was looking for.
Have a great day,
Perla Moncada
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
thanks for your collaboration, it is the first time you use freescale, I would like to know how to drive PTBX to get high (VDD) for driving the NPN transistor, how can I drive TRISTATE PORT ?? Now is LOW (GND) a command TRUE et HIGH (VDD) a command FALSE.
What procedure for configuration PORT is VALID for this schematic??
Thanks for you patient, best regards
Sacchetti:
I cannot understand pretty well your inquiry, but below you will find steps to follow in order to configure any Port pin or PTBx to use it as output and send a high or low level for a specific pin, please see below:
Please let me know if this information is useful.
Hi Perla
Thank you very much for your time is really useful, I understand how it works
Best regards