Тёмный

Custom serial file transfer protocol : PC to 6502 homebrew computer 

6502Nerd
Подписаться 604
Просмотров 87
50% 1

This video shows my custom serial file transfer protocol for my homebrew computer. The PC acts as the host and can send a file to the homebrew which saves it according to name and folder path.
I made a custom protocol to keep things simple and optimise for the set up I have - 19200 bps, with the homebrew having a dedicated 256 byte buffer in RAM.
I made a block protocol which is less than 256 bytes per block so it fits in the homebrew serial buffer. The great thing then is that the homebrew can copy from the serial buffer to other memory to write the bytes to the filesystem whilst in parallel the PC can send another block of data which is held in the serial buffer by using interrupts.
I wrote a dflat and machine code monitor version of the received side (on the homebrew). It's interesting to see that I got around 776 bytes/s using dflat but using machine code routines I am up to 1300 bytes/s.
So I can transfer and save a 16KB file in around 12 seconds - not too bad!
I don't think I can go much faster than this as the bottleneck is writing to the SD card.
But this helps me a lot as I am able to create programs and assets on the PC then quickly upload to the homebrew.

Опубликовано:

 

16 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 4   
@JimBlimey
@JimBlimey 21 день назад
You'll have a full on TCP/IP stack running before you know it!
@6502Nerd
@6502Nerd 21 день назад
Haha now that's a big leap! 😂
@PetrBelohoubek-ot5ok
@PetrBelohoubek-ot5ok 21 день назад
where sound?
@6502Nerd
@6502Nerd 19 дней назад
Yeah sorry again about that, it's very low - but it is audible if you turn up the volume. Just remember to turn it down before watching something else!
Далее
Какой звук фальшивый?
00:32
Просмотров 427 тыс.
The intro to Docker I wish I had when I started
18:27
Vim Tips I Wish I Knew Earlier
23:00
Просмотров 64 тыс.
NEVER install these programs on your PC... EVER!!!
19:26
Homebrew computer 2024 update
22:14
Просмотров 961
I made my own protocol
5:11
Просмотров 540 тыс.