uP port mapping

Liste des GroupesRevenir à se design 
Sujet : uP port mapping
De : jl (at) *nospam* 650pot.com (john larkin)
Groupes : sci.electronics.design comp.sys.raspberry-pi
Date : 10. Sep 2024, 20:12:46
Autres entêtes
Message-ID : <jl51ejh70f9h8cf10pa38t5lhdnhpv4fcg@4ax.com>
User-Agent : ForteAgent/8.00.32.1272
Something I've wondered about:

Suppose we have a c program running on some little uP, and it has some
integer variable value, 8 or 12 bits or something, and wants to drive
a parallel DAC off-chip.

The msb...lsb bits of the variable obviously have to get to the right
pins of the DAC.

So, in general, how does one pick the physical i/o port pins on the
uP, to get the order right? The PCB layout is easiest if we just wire
the DAC to the handiest port pins.

One could test and bit-bang each bit and port individually, and then
strobe the DAC, but that's inelegant.

In the RP2040 chip, one can apparently write to a register in a
PIO/state machine block, where each bit of the register can be
assigned to drive a physical port pin. I think there are some
constraints on the selected pins.




Date Sujet#  Auteur
10 Sep 24 * uP port mapping8john larkin
12 Sep 24 +- Re: uP port mapping1The Natural Philosopher
12 Sep 24 `* Re: uP port mapping6Theo
12 Sep 24  `* Re: uP port mapping5The Natural Philosopher
12 Sep 24   `* Re: uP port mapping4john larkin
12 Sep 24    +* Re: uP port mapping2Theo
13 Sep 24    i`- Re: uP port mapping1The Natural Philosopher
13 Sep 24    `- Re: uP port mapping1The Natural Philosopher

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal