[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 enable I can see involves the Industrial Ethernet 
Peripheral.

So, by setting the PINMUX up front to the IEP, I can route my data through 
the IEP DIGIO in order to gain the tri-state capability I want?

That ... might actually be what I need.

Thanks.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/350f5a11-afb8-4070-9e17-b0f454f86178%40googlegroups.com.


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.com/DTJF/libpruw1/blob/master/src/bas/w1_prucode.p, which
> is a driver for a one-wire (w1) bus, reading and sending data on a single
> GPIO line for multiple divices. The library documentation is at
> http://users.freebasic-portal.de/tjf/Projekte/libpruw1/doc/html/
>

Thanks for the great example!

For those that don't quite follow, you are using the chip-level or
SoC-level GPIO subsystem for this example and not the PRU subsystem GPIOs
that can be accessed directly from R30/R31 on the PRU CPU itself. For those
pins, the PADCONF or pinmux settings must be adjusted at the chip/SoC-level
to disable the PRU GPIO output.


>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beagleboard+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/81daa29b-4795-41b4-a4b6-a7f18229639c%40googlegroups.com
> 
> .
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CA%2BT6QP%3DV5k3p7LQOOHV5P5oHManD2UbKt0g9zRonUjELJCwgqg%40mail.gmail.com.


[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 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 
> is a driver for a one-wire (w1) bus, reading and sending data on a single 
> GPIO line for multiple divices. The library documentation is at 
> http://users.freebasic-portal.de/tjf/Projekte/libpruw1/doc/html/
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/24387fa7-d9b6-4a64-82d1-efec85b6d6fc%40googlegroups.com.


[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 is 
a driver for a one-wire (w1) bus, reading and sending data on a single GPIO 
line for multiple divices. The library documentation is at 
http://users.freebasic-portal.de/tjf/Projekte/libpruw1/doc/html/

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/81daa29b-4795-41b4-a4b6-a7f18229639c%40googlegroups.com.