[beagleboard] Re: Make PRU-controlled pin change direction or go tri-state?

2020-01-17 Thread Andrew P. Lentvorski
On Thursday, January 16, 2020 at 8:39:20 AM UTC-8, TJF wrote: > > > In order to change direction for a pin on a GPIO-SS, it needs a write > access to its OE register. The PRU can do that. > Let me see if I have this straight, I need access to an output enable from the PRU. The only output enabl

Re: [beagleboard] Re: Make PRU-controlled pin change direction or go tri-state?

2020-01-16 Thread Jason Kridner
On Thu, Jan 16, 2020 at 11:39 AM TJF wrote: > There's no supervisor mode for the PRU. > > There's no tri-state-mode for AM335x GPIO. > > In order to change direction for a pin on a GPIO-SS, it needs a write > access to its OE register. The PRU can do that. > > Find an example at > https://github.

[beagleboard] Re: Make PRU-controlled pin change direction or go tri-state?

2020-01-16 Thread Dimitar Dimitrov
I don't think you can tri-state PRU output GPO. But you can hook external buffer (e.g. 74HC245) and dedicate one PRU GPO for output enable. Regards, Dimitar On Thursday, January 16, 2020 at 6:39:20 PM UTC+2, TJF wrote: > > There's no supervisor mode for the PRU. > > There's no tri-state-mode for

[beagleboard] Re: Make PRU-controlled pin change direction or go tri-state?

2020-01-16 Thread TJF
There's no supervisor mode for the PRU. There's no tri-state-mode for AM335x GPIO. In order to change direction for a pin on a GPIO-SS, it needs a write access to its OE register. The PRU can do that. Find an example at https://github.com/DTJF/libpruw1/blob/master/src/bas/w1_prucode.p, which i