Re: port pins

Liste des GroupesRevenir à se design 
Sujet : Re: port pins
De : pcdhSpamMeSenseless (at) *nospam* electrooptical.net (Phil Hobbs)
Groupes : sci.electronics.design
Date : 12. Sep 2024, 21:08:33
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vbvho1$dhlj$1@dont-email.me>
References : 1 2
User-Agent : NewsTap/5.5 (iPhone/iPod Touch)
piglet <erichpwagner@hotmail.com> wrote:
john larkin <jl@650pot.com> wrote:
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.
 
 
 
 
I didn’t know that now exists - but sounds super useful. Would have saved
much headache if it had been around years ago.
 

We sometimes use the LPC804, which has a gigantic pin mux—you can
effectively put any function on any pin. IIRC reset and isp are a bit
special, but all the gpio and built-in peripheral functions can be
configured any way you like.

Cheers

Phil Hobbs

--
Dr Philip C D Hobbs  Principal Consultant  ElectroOptical Innovations LLC /
Hobbs ElectroOptics  Optics, Electro-optics, Photonics, Analog Electronics

Date Sujet#  Auteur
10 Sep 24 * port pins5john larkin
12 Sep 24 +* Re: port pins3piglet
12 Sep 24 i`* Re: port pins2Phil Hobbs
12 Sep 24 i `- Re: port pins1piglet
12 Sep 24 `- Re: port pins1Dan Purgert

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal