A variation on a couple of themes

Show us what you're working on, (preferably with screenshots).
Post Reply
User avatar
jpnz
Dizzy
Posts: 51
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 » Sat Dec 28, 2019 2:21 am

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) :



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"
1 x

User avatar
jpnz
Dizzy
Posts: 51
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 » Sat Jan 04, 2020 2:46 am

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



Here's another binary image to play with
1 x

User avatar
jpnz
Dizzy
Posts: 51
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 » Sat Jan 18, 2020 10:06 pm

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:



And at ~26923:


Tested with Spectaculator and this image

This isn't going to work with real hardware, all that handshaking and buffering etc :lol:
0 x

User avatar
jpnz
Dizzy
Posts: 51
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 » Sat Feb 15, 2020 3:43 am

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

How about ~33653 and ~48871 baud?



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
1 x

Kweepa
Manic Miner
Posts: 223
Joined: Sat Feb 03, 2018 6:14 pm
Location: Austin, Texas

Re: A variation on a couple of themes

Post by Kweepa » Sat Feb 15, 2020 4:54 am

I'm so confused.
0 x

User avatar
jpnz
Dizzy
Posts: 51
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 » Sat Feb 15, 2020 11:11 am

Kweepa wrote:
Sat Feb 15, 2020 4:54 am
I'm so confused.
About what? - non standard baud rates, or something more specific?
0 x

Kweepa
Manic Miner
Posts: 223
Joined: Sat Feb 03, 2018 6:14 pm
Location: Austin, Texas

Re: A variation on a couple of themes

Post by Kweepa » Sat Feb 15, 2020 6:55 pm

Oh, those are '~' not '-'. :oops:
0 x

Post Reply