A variation on a couple of themes

Show us what you're working on, (preferably with screenshots).
Post Reply
User avatar
jpnz
Manic Miner
Posts: 303
Joined: Tue Nov 14, 2017 4:07 pm
Location: Hamilt[r]on - City Of The Future - NZ

A variation on a couple of themes

Post by jpnz »

Hope you are all enjoying the festive period - I'm off work for a while and have revisited a couple of earlier topics...

Noisy serial communications and animated load time bar charts

What would happen if the two were combined? Something a bit like this (clip is trimmed for brevity) :

https://youtu.be/Qtn5dXGnD-E

Credit to George Beckett for the inspiration and sample code

Here's a binary you can play with if you have Spectaculator - redirect IF1 RS-232 input from this file, FORMAT a baud rate and then LOAD *"b"
User avatar
jpnz
Manic Miner
Posts: 303
Joined: Tue Nov 14, 2017 4:07 pm
Location: Hamilt[r]on - City Of The Future - NZ

Re: A variation on a couple of themes

Post by jpnz »

Let's make this a bit more colourful and much NOISIER!

https://youtu.be/sw6TvQECYTU

Here's another binary image to play with
User avatar
jpnz
Manic Miner
Posts: 303
Joined: Tue Nov 14, 2017 4:07 pm
Location: Hamilt[r]on - City Of The Future - NZ

Re: A variation on a couple of themes

Post by jpnz »

Found a cool side effect of emulation - you can drive the [virtual] IF1 serial port faster than 19200 baud

The manual describes the system variable BAUD:
Two byte number determining the baud rate calculated as follows:
BAUD=(3500000/(26*baud rate))-2
You can use this to set up non-standard baud rates

The baud rate can be set at ~22435:
https://youtu.be/odRwRc4IWXM


And at ~26923:
https://youtu.be/RWW3OlN8wMQ

Tested with Spectaculator and this image

This isn't going to work with real hardware, all that handshaking and buffering etc :lol:
User avatar
jpnz
Manic Miner
Posts: 303
Joined: Tue Nov 14, 2017 4:07 pm
Location: Hamilt[r]on - City Of The Future - NZ

Re: A variation on a couple of themes

Post by jpnz »

It seems that the emulated serial port can be set to transmit even faster than ~26923 baud

How about ~33653 and ~48871 baud?

https://youtu.be/6WMXobcKO6s

Receiving at these speeds definitely doesn't work though!

Tested with Spectaculator and EightyOne

Here's the Serial Save utility if interested - press keys 1 (~48871) through to 5 (~19230) to transmit at the selected speed
User avatar
Kweepa
Manic Miner
Posts: 311
Joined: Sat Feb 03, 2018 6:14 pm
Location: Albuquerque, New Mexico

Re: A variation on a couple of themes

Post by Kweepa »

I'm so confused.
User avatar
jpnz
Manic Miner
Posts: 303
Joined: Tue Nov 14, 2017 4:07 pm
Location: Hamilt[r]on - City Of The Future - NZ

Re: A variation on a couple of themes

Post by jpnz »

Kweepa wrote: Sat Feb 15, 2020 4:54 amI'm so confused.
About what? - non standard baud rates, or something more specific?
User avatar
Kweepa
Manic Miner
Posts: 311
Joined: Sat Feb 03, 2018 6:14 pm
Location: Albuquerque, New Mexico

Re: A variation on a couple of themes

Post by Kweepa »

Oh, those are '~' not '-'. :oops:
Post Reply