Deutsch   English   Français   Italiano  
<o6c1ej93onsiugcs1m0f6v6d6scff60rpi@4ax.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!Xl.tags.giganews.com!local-4.nntp.ord.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 10 Sep 2024 20:49:42 +0000
From: john larkin <jl@650pot.com>
Newsgroups: sci.electronics.design
Subject: port pins
Date: Tue, 10 Sep 2024 13:50:15 -0700
Message-ID: <o6c1ej93onsiugcs1m0f6v6d6scff60rpi@4ax.com>
User-Agent: ForteAgent/8.00.32.1272
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 22
X-Trace: sv3-BhpbuS08VXj0lrSSL3BeANrxjAAOoKB1lK06dXQrsMnX7QCzLgYnk3HjGvoPijLV1sFYyNyZQ1ggZC5!rRY2nJ+OnPJvCFhpA08mpw+SemQ6uBzy12NU3OjjKO/3VL66guo7UozDPPbZmzQIb9Ttl5kAmJu7!UlEuGqU=
X-Complaints-To: www.supernews.com/docs/abuse.html
X-DMCA-Complaints-To: www.supernews.com/docs/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
Bytes: 1764

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.