Quantcast
Viewing all articles
Browse latest Browse all 4884

General • Re: Receive then send data in the same pin using PIO

I have no problem reading the data but I can't seem to send data. I used another one of my pico to analyze the data but I only see data sent by master. How do I switch the pin's direction properly to transmit data to the master device?
Are you sure the master is releasing the bus/pin? Not easy to see on a logic analyzer.
I would set up the transmission on different pin, this way you can see for sure if it is transmitting or not.

P.S.
The mapping of SET and OUT onto pins is configured independently. They may be mapped to distinct locations, for example if one pin is to be used as a clock signal, and another for data. They may also be overlapping ranges of pins: a UART transmitter might use SET to assert start and stop bits, and OUT instructions to shift out FIFO data to the same pins.

Statistics: Posted by gmx — Fri Nov 08, 2024 3:22 pm



Viewing all articles
Browse latest Browse all 4884

Trending Articles