7i76e hihg level gpio on P1

More
04 Jan 2023 19:34 #260954 by dragon44
hi gentlemen,
I need use parallel 10 bits signal to control speed of spindle driver, plus 2 bits to right and left rotation. I want use port P1, but I have problem.
I can't change output level P1 port. If mesa card have supply voltage, P1 condition is 5V on the each outputs. I use odd hdr pin 1-23 (12 pins) outputs gpio number 017, 019, 021, 023, 025, 026, 027, 028, 029, 030, 031, 032. In hal configurator I see change output but each the time multimeter measure 5V. I try change W4 and W7 but, a haven't effects.
I wrong do something? I need special component in hal?


Bartek

 

Please Log in or Create an account to join the conversation.

More
04 Jan 2023 19:48 #260955 by PCW
Replied by PCW on topic 7i76e hihg level gpio on P1
That is the default state of those pins at power on (they are inputs with pullups)

If you wish to change them to outputs you must set the is_output attribute
of each GPIO pin you wish to use as an output:

setp hm2_7i76e.0.gpio.017.is_output true
setp hm2_7i76e.0.gpio.019.is_output true
setp hm2_7i76e.0.gpio.021.is_output true

etc...

Please Log in or Create an account to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum