Poking Technology
Hjalfi builds a $10 function generator
updated
The Fnirsi DSO152 is a $15-$20 single-channel mini oscilloscope. Inside it's based on a CH32F103 processor, which is a copy of ST's STM32F103... and there's a header for a standard SWD debugger interface. Can I do anything with this? Spoiler: yes. It's essentially a Blue Pill with a high-bandwidth screen, USB-C, battery and charger, and some bespoke analogue circuitry attached. Reprogramming it is trivial, which makes it very plausible for repurposing for other things.
You can find the source code plus the huge gimp PCB scan on github here: github.com/davidgiven/dso152-breakout
CP/M-65: github.com/davidgiven/cpm65
Hans Otten's site about Pascal-M and much more: http://pascal.hansotten.com
This was edited down from nine hours of raw footage (recorded over about two weeks!) and so may be a little more incoherent than usual. Normally a port to a machine like this takes, maybe, a couple of hours but this one is much more complicated than usual because there's a BDOS emulation layer allowing CP/M-65 to directly access files on Morpheus' FAT file system. This makes it significantly easier to work with and, like, useful and stuff. It should be possible to run Morpheus binaries directly from CP/M-65, allowing reasonably straightforward game development using CP/M-65 tooling.
Olimex donated the hardware. Thank you, Olimex!
CP/M-65: github.com/davidgiven/cpm65
Olimex's neo6502: olimex.com/Products/Retro-Computers/Neo6502/open-source-hardware
The Morpheus firmware package: github.com/paulscottrobson/neo6502-firmware
You can find all the source code here: github.com/davidgiven/cpmish There are a few bugs, but this machine runs CP/M really well.
I am still trying to figure out how to upload the ghidra project somewhere for the ROM reverse engineering; suggestions welcome.
In fact, since making this video I've discovered that Sanwa YX-360TRF multimeters sell for about 60 francs on Aliexpress, and that the really cheap ones are labelled YX-360TRF but don't have the Sanwa logo on the screen. So possibly I'm doing this a disservice and this is actually really good, but given the dodgy build quality I really doubt that. Especially since those high-priced meters all claim to have 9998 pieces available!
This is a project I've been planning for a while, where I replace the motor in a cheap breadmaker with something with variable speed control and using it as a heated stirring device for making soup, jam, chutney, etc with it. I was originally planning on using a microcontroller, but for reasons of not electrocuting myself I opted not to.
Don't do this at home.
Note: since the creation of this video I have very successfully made soda bread in this machine and nothing has gone wrong. So far.
So, I did say I would polish this up and publish it somewhere, but it actually seems that someone else did a better port _on the very same day I did this_ so go and look at that one instead. github.com/nihirash/Agon-CPM2.2
If you still want the BBC Basic-hosted version look here: gist.github.com/davidgiven/66ddef283e2965bd35f052e8ed93443c I haven't even renumbered it!
0:00:00 Start
0:12:32 The BBC Basic assembler
0:22:33 Getting started with MOS
0:30:58 BIOS basics
0:45:01 Simple system calls
1:01:02 More simple system calls
1:10:45 Complex system calls
1:20:43 The pain begins
1:35:12 My slow spiral into madness continues
1:50:37 Technically it works now... technically
2:14:24 I suppose you could call it done?
You can find the resulting source code in the CP/M-65 repository: github.com/davidgiven/cpm65 (Look in `apps/asm.c`.)
You can find the resulting source code in the CP/M-65 repository: github.com/davidgiven/cpm65 (Look in `apps/asm.c`.)
You can find the resulting source code in the CP/M-65 repository: github.com/davidgiven/cpm65 (Look in `apps/asm.c`.)
You can find the resulting source code in the CP/M-65 repository: github.com/davidgiven/cpm65 (Look in `apps/asm.c`.)
You can find the resulting source code in the CP/M-65 repository: github.com/davidgiven/cpm65 (Look in `apps/asm.c`.)
The resulting USB adapter _almost_ works, but since making the video I realised that the keymap isn't quite right as I can't type # or |, plus the G key stopped working again. But I did successfully edit the video using the keyboard! And it's lovely.
See github.com/davidgiven/ibm6770keyboard for the resulting code and what I found out about the keyboard specs, plus the output files from the ghidra reverse engineering of the keyboard firmware.
(Reupload --- I found a nasty rendering error in the original...)
This is initially aimed at the BBC Micro, simply because it makes development and debugging easy, but it's intended to be portable, with the Commodore 64 as a (very slow) secondary target. Binaries are relocated at load-time so to avoid depending on any particular memory layout; this is necessary due to the much less standardised 6502 memory maps.
All the code is available on github here: github.com/davidgiven/cpm65 (but beware of spoilers!)
This is initially aimed at the BBC Micro, simply because it makes development and debugging easy, but it's intended to be portable, with the Commodore 64 as a (very slow) secondary target. Binaries are relocated at load-time so to avoid depending on any particular memory layout; this is necessary due to the much less standardised 6502 memory maps.
All the code is available on github here: github.com/davidgiven/cpm65 (but beware of spoilers!)
This is initially aimed at the BBC Micro, simply because it makes development and debugging easy, but it's intended to be portable, with the Commodore 64 as a (very slow) secondary target. Binaries are relocated at load-time so to avoid depending on any particular memory layout; this is necessary due to the much less standardised 6502 memory maps.
All the code is available on github here: github.com/davidgiven/cpm65 (but beware of spoilers!)
This is initially aimed at the BBC Micro, simply because it makes development and debugging easy, but it's intended to be portable, with the Commodore 64 as a (very slow) secondary target. Binaries are relocated at load-time so to avoid depending on any particular memory layout; this is necessary due to the much less standardised 6502 memory maps.
All the code is available on github here: github.com/davidgiven/cpm65 (but beware of spoilers!)
This is initially aimed at the BBC Micro, simply because it makes development and debugging easy, but it's intended to be portable, with the Commodore 64 as a (very slow) secondary target. Binaries are relocated at load-time so to avoid depending on any particular memory layout; this is necessary due to the much less standardised 6502 memory maps.
All the code is available on github here: github.com/davidgiven/cpm65 (but beware of spoilers!)
This is initially aimed at the BBC Micro, simply because it makes development and debugging easy, but it's intended to be portable, with the Commodore 64 as a (very slow) secondary target. Binaries are relocated at load-time so to avoid depending on any particular memory layout; this is necessary due to the much less standardised 6502 memory maps.
All the code is available on github here: github.com/davidgiven/cpm65 (but beware of spoilers!)
This is initially aimed at the BBC Micro, simply because it makes development and debugging easy, but it's intended to be portable, with the Commodore 64 as a (very slow) secondary target. Binaries are relocated at load-time so to avoid depending on any particular memory layout; this is necessary due to the much less standardised 6502 memory maps.
All the code is available on github here: github.com/davidgiven/cpm65 (but beware of spoilers!)
This is initially aimed at the BBC Micro, simply because it makes development and debugging easy, but it's intended to be portable, with the Commodore 64 as a (very slow) secondary target. Binaries are relocated at load-time so to avoid depending on any particular memory layout; this is necessary due to the much less standardised 6502 memory maps.
All the code is available on github here: github.com/davidgiven/cpm65 (but beware of spoilers!)
This is initially aimed at the BBC Micro, simply because it makes development and debugging easy, but it's intended to be portable, with the Commodore 64 as a (very slow) secondary target. Binaries are relocated at load-time so to avoid depending on any particular memory layout; this is necessary due to the much less standardised 6502 memory maps.
All the code is available on github here: github.com/davidgiven/cpm65 (but beware of spoilers!)
This is initially aimed at the BBC Micro, simply because it makes development and debugging easy, but it's intended to be portable, with the Commodore 64 as a (very slow) secondary target. Binaries are relocated at load-time so to avoid depending on any particular memory layout; this is necessary due to the much less standardised 6502 memory maps.
All the code is available on github here: github.com/davidgiven/cpm65 (but beware of spoilers!)
This is initially aimed at the BBC Micro, simply because it makes development and debugging easy, but it's intended to be portable, with the Commodore 64 as a (very slow) secondary target. Binaries are relocated at load-time so to avoid depending on any particular memory layout; this is necessary due to the much less standardised 6502 memory maps.
All the code is available on github here: github.com/davidgiven/cpm65 (but beware of spoilers!)
This is initially aimed at the BBC Micro, simply because it makes development and debugging easy, but it's intended to be portable, with the Commodore 64 as a (very slow) secondary target. Binaries are relocated at load-time so to avoid depending on any particular memory layout; this is necessary due to the much less standardised 6502 memory maps.
All the code is available on github here: github.com/davidgiven/cpm65 (but beware of spoilers!)
This is initially aimed at the BBC Micro, simply because it makes development and debugging easy, but it's intended to be portable, with the Commodore 64 as a (very slow) secondary target. Binaries are relocated at load-time so to avoid depending on any particular memory layout; this is necessary due to the much less standardised 6502 memory maps.
All the code is available on github here: github.com/davidgiven/cpm65 (but beware of spoilers!)
This is initially aimed at the BBC Micro, simply because it makes development and debugging easy, but it's intended to be portable, with the Commodore 64 as a (very slow) secondary target. Binaries are relocated at load-time so to avoid depending on any particular memory layout; this is necessary due to the much less standardised 6502 memory maps.
All the code is available on github here: github.com/davidgiven/cpm65 (but beware of spoilers!)
More of a series where I turn (non-destructively) my new Brother WP-1 word processor, which its excellent keyboard and letterbox amber CRT, into a sleeper system based around a Raspberry Pi. As the built-in UART isn't usable, I build by own from a cheapo PSoC4 development kit and Verilog, interfacing directly to the Brother's system bus.
I get a parcel from JLCPCB containing the non-sprawled-all-over-my-workbench version of the adapter. Does it work? Watch and find out!
This machine is a 2016ish toy by VTech. It's got a single blob chip containing a 65C02 clone, 2kB of RAM, and a so far unknown amount of ROM. It's also got a 2MB SPI flash chip containing the bulk of the application code, with a bus interface to let the processor get at it via memory accesses. This makes it surprisingly easy to modify; all you have to do is to remove the surface-mount flash chip, reprogram it, and attach it again. Everything after that is just a matter of software...
More of a series where I turn (non-destructively) my new Brother WP-1 word processor, which its excellent keyboard and letterbox amber CRT, into a sleeper system based around a Raspberry Pi. As the built-in UART isn't usable, I build by own from a cheapo PSoC4 development kit and Verilog, interfacing directly to the Brother's system bus.
I finally deal with the snow in the most complicated way possible (since all backed out!) and start tackling lots of simple bugs. It's actually started to look like it'll be almost usable one day!
More of a series where I turn (non-destructively) my new Brother WP-1 word processor, which its excellent keyboard and letterbox amber CRT, into a sleeper system based around a Raspberry Pi. As the built-in UART isn't usable, I build by own from a cheapo PSoC4 development kit and Verilog, interfacing directly to the Brother's system bus.
I implement various strange ways to deal with the screen snow caused by updating the video memory during a refresh cycle. It's annoying.
More of a series where I turn (non-destructively) my new Brother WP-1 word processor, which its excellent keyboard and letterbox amber CRT, into a sleeper system based around a Raspberry Pi. As the built-in UART isn't usable, I build by own from a cheapo PSoC4 development kit and Verilog, interfacing directly to the Brother's system bus.
I rather tiredly add support for the function keys and parsing UTF-8.
More of a series where I turn (non-destructively) my new Brother WP-1 word processor, which its excellent keyboard and letterbox amber CRT, into a sleeper system based around a Raspberry Pi. As the built-in UART isn't usable, I build by own from a cheapo PSoC4 development kit and Verilog, interfacing directly to the Brother's system bus.
I try and make the new serial terminal code run on the Brother. There are so, so many bugs.
More of a series where I turn (non-destructively) my new Brother WP-1 word processor, which its excellent keyboard and letterbox amber CRT, into a sleeper system based around a Raspberry Pi. As the built-in UART isn't usable, I build by own from a cheapo PSoC4 development kit and Verilog, interfacing directly to the Brother's system bus.
Here I finish off --- well, reach code completion --- the serial terminal and do the interface and back end display code. It involves a lot of typing.
More of a series where I turn (non-destructively) my new Brother WP-1 word processor, which its excellent keyboard and letterbox amber CRT, into a sleeper system based around a Raspberry Pi. As the built-in UART isn't usable, I build by own from a cheapo PSoC4 development kit and Verilog, interfacing directly to the Brother's system bus.
After realising that Linux doesn't get on well with the ADM3a, I start work on the state machine for a new, bespoke VT102 terminal emulator. There turns out to be quite a lot of it.
More of a series where I turn (non-destructively) my new Brother WP-1 word processor, which its excellent keyboard and letterbox amber CRT, into a sleeper system based around a Raspberry Pi. As the built-in UART isn't usable, I build by own from a cheapo PSoC4 development kit and Verilog, interfacing directly to the Brother's system bus.
The final bugs get fixed, the Raspberry Pi gets configured, and...
More of a series where I turn (non-destructively) my new Brother WP-1 word processor, which its excellent keyboard and letterbox amber CRT, into a sleeper system based around a Raspberry Pi. As the built-in UART isn't usable, I build by own from a cheapo PSoC4 development kit and Verilog, interfacing directly to the Brother's system bus.
I write the Z80 side of things --- a 65 byte CP/M program! --- and then finally, _finally_ get the interface state machine working.
More of a series where I turn (non-destructively) my new Brother WP-1 word processor, which its excellent keyboard and letterbox amber CRT, into a sleeper system based around a Raspberry Pi. As the built-in UART isn't usable, I build by own from a cheapo PSoC4 development kit and Verilog, interfacing directly to the Brother's system bus.
Here I interface our new (and mostly, as it turns out, broken) bus interface to the PSoC board's own UART. This is harder than it should be. Warning: contains state machines.
More of a series where I turn (non-destructively) my new Brother WP-1 word processor, which its excellent keyboard and letterbox amber CRT, into a sleeper system based around a Raspberry Pi. As the built-in UART isn't usable, I build by own from a cheapo PSoC4 development kit and Verilog, interfacing directly to the Brother's system bus.
Now that I have successfully produced a working bus interface, I extend it so that it will transfer values from the PSoC board's CPU rather than just returning a hard-coded value. This involves wading deeper into the oozing puddle that is Verilog.
More of a series where I turn (non-destructively) my new Brother WP-1 word processor, which its excellent keyboard and letterbox amber CRT, into a sleeper system based around a Raspberry Pi. As the built-in UART isn't usable, I build by own from a cheapo PSoC4 development kit and Verilog, interfacing directly to the Brother's system bus.
In this episode I start work on the bus interface, programming the PSoC4 board to respond to I/O requests from the Brother's HD64180 Z80 clone processor.
This is the start of a series where I turn (non-destructively) my new Brother WP-1 word processor, which its excellent keyboard and letterbox amber CRT, into a sleeper system based around a Raspberry Pi. As the built-in UART isn't usable, I build by own from a cheapo PSoC4 development kit and Verilog, interfacing directly to the Brother's system bus.
No additional comments to make, except that this video took about two months to make, and I had to cut the footage down _a lot_. Also, I've figured out how to make kdenlive export to mjpeg, which dramatically speeds up render time...
This thing is a gorgeous piece of 1980s technology with a cool amber letterbox CRT, daisy-wheel printer, Z80 processor with 64kB of RAM, and weird-arse 120kB floppy drive. Unlike its later cousins the board has a serial port and expansion connector making it a highly capable Z80 SBC, suitable for hacking. The keyboard is superb, one of the best rubberdomes I've ever seen and better than many mechanical keyboards, and the modern-ish layout makes it far too good not to use.
In this video I explore the works a bit and check out the various PCB outputs. I think it wouldn't be hard to adapt non-destructively to be a serial terminal for a more modern computer like a Raspberry Pi. Sadly the 120kB disk is rather limiting for running software _from_ floppy, so I don't think I'l be getting CP/M on this.
The ROM images are here: github.com/davidgiven/brother-wp-software/tree/dtrg-lw30/WP-1
FluxEngine Brother 120kB format support is here: cowlark.com/fluxengine/doc/disk-brother.html
The replacement keyboard came from RWAP Software: sellmyretro.com/offer/details/brand-new-sinclair-zx81-zxpand-keyboard-membrane-%28inbuilt-keyboard%29-2451 It claims ten minutes to install, but that's slightly optimistic given that this video is twice that. It cost less than ten all-purpose currency units.


