mastodon.xyz is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance, open to everyone, but mainly English and French speaking.

Administered by:

Server stats:

790
active users

#uart

0 posts0 participants0 posts today

Say I am debugging an #ethernet project on the #ice40 #fpga of pico-ice board. I want to know the contents of some registers down in my design (which destination MAC address my #hardware tried to transmit). I don't want to use manufacturer specific ILAs and don't want to hand route a bunch of debug signals to my top level for external #debug equipment I don't have.

In PipelineC just assign to a globally visible #UART debug probe wire:
github.com/JulianKemmerer/Pipe

Continued thread
The "parallel terminal", as I call it, reads the data when the #Z80 writes to a specific bus port and writes to the bus when the Z80 is reading. Then sends/receive the same bytes via the #Arduino #UART to the computer. So you can connect to the Arduino with a terminal and interact with the Pat80 computer. This is how I took the screenshot on the repository readme.
[continues]

Anyone know enough about the ATmega328 to know if the UART can cope with something else disabling interrupts for ~2mS...?

That sounds like quite a lot to me.

This is for handling MIDI, so I think at 31250 that would be enough for up to two complete 3-byte messages to have gone past...

Am about to pile into the datasheet, but the UART was always a bit of "mystery magic that just worked" for me...

Continued thread
Every time I do some project "for fun" (= not for work) I try to learn something new, in that way i can say the time needed is not wasted.
So, this time I decided to try #wirewrapping . This is a very simple circuit, with no board, so it's a very very simple case, but I tried and I liked it!

Here a photo while connecting the #esp8266 (already flashed with #zimodem and configured to connect to my wifi) with the #UART to #RS232 adapter.
I'm going to build a #wifi #serial #modem for my #amstrad PPC640. Something like #theoldnet 's wifi modem, but I'll use #zimodem on an #esp8266 , because it worked ok with my #commodore64 and now I have some experience with it...
The idea is having the esp emulate an #hayes modem on the #UART pins and convert it to rs232 using a #max3232 module.
I also will need to solder a 9 to 25 pin #rs232 adapter, because I absolutely don't remember where mine is (used last time a couple of home moves ago... 😅)

#dos #bbs #internet
Continued thread

The rest of this information in more user-friendly but still somewhat confusng format can be found here:
raspberrypi.com/documentation/

I forgot to say that the mini UART also has smaller buffers than the PL011 but I guess that's obvious for anything less than a 16550. It says the latter has 32×8 though.

Continued thread

Neither of the UARTs has DCD, DSR, DTR or RI signals so I guess that means they're not meant for real RS-232 even with a level a converter or driver but I don't know. I'm not that old. 😝

The manual for the PL011 is developer.arm.com/documentatio

The manual for the "mini UART" is part of that old "BCM2835 ARM Peripherals" document which you can find here. datasheets.raspberrypi.com/bcm

developer.arm.comDocumentation – Arm Developer
Continued thread

So, for the Zero W, in order to use the UART, then you need to set enable_uart=1 and this will fix the VPU frequency to 250MHz so that it can be used.
You can actually force the Zero W to use the PL011 as it's primary UART by disabling #Bluetooth using a devicetree overlay. You can also force bluetooth to use the mini-UART instead of the PL011 using a devicetree overlay but this seems like a terrible idea.

Continued thread

The primary UART is defined to be the one exposed on GPIO 14 (UART TX, i.e. pin 8) and GPIO 15 (UART RX, i.e. pin 10) and this is where Linux serial console is. The secondary UART is not normally exposed on the GPIO pins and is connected to the #Bluetooth side of the wireless chip if one is present.

The trick is that which UART is primary and secondary varies by device. On the Zero, the primary UART is the PL011 but on the Zero W, it's the mini UART.