gba icon indicating copy to clipboard operation
gba copied to clipboard

Do the Serial stuff again

Open Lokathor opened this issue 4 years ago • 3 comments

The serial port stuff didn't survive the update to 0.4, it's still in the backup directory.

Lokathor avatar Apr 09 '21 06:04 Lokathor

"SIO Normal Mode" is a variation on SPI that doesn't use chip select), so embedded_hal::spi::SpiBus may also be useful. As well as just the digital pin abstractions for the "GPIO" mode of the link port.

I still need to setup hardware properly and write some code to test these things.

ids1024 avatar Feb 04 '24 22:02 ids1024

I was setting up the TOC for a revised https://github.com/Lokathor/gba-from-scratch lesson set and i had to remind myself to even put the serial port down as a subject.

I really don't know anything about it XD

Lokathor avatar Feb 05 '24 00:02 Lokathor

I mainly know what gbatek says about it.

For the UART mode, the link port can act as a UART, with somewhat more limited options for baudrate and such than serial ports often offer. "Normal Mode" is a variation on SPI (some SPI peripherals don't need chip select; not sure if they'd work or need a different connection. Or if the fourth pin could be manually set in RCNT). Not sure how to compare "Multi-Player Mode" or "JOY BUS Mode" to anything. The four data pins can also just be used as digital inputs or outputs.

I don't even have two GBAs to connect, and I guess emulators only have limited link port support. I'm just wondering what the wildest thing I could connect to a GBA is. (Serial modem? Maybe not worth buying one just to connect to a GBA...)

(Probably more useful to see how the embassy async executor could be used on the GBA, and things like interrupts could be handled with async.)

ids1024 avatar Feb 05 '24 15:02 ids1024