Quantcast
Channel: JeeLabs
Browsing all 265 articles
Browse latest View live

Current measurements

An F103 with a current consumption of 45 µA is nothing to be ashamed of. This translates to about 6 months of runtime on a CR2032 coin cell (although not doing anything useful). That is two orders of...

View Article


Z80 and CP/M in a red box

Some people like computers from the previous century, the ones which are long obsolete, unusable, or have been mostly forgotten. Perhaps because they owned one in the past, or because they never could...

View Article


The CAN bus

The CAN bus is a very interesting medium-speed “interconnect”, for various reasons: it’s based on just 2 signal wires and the bus is completely passive it’s made for noisy environments, e.g. cars,...

View Article

The CAN bus, part 2

If you place a dozen people in a room – let’s say a bunch of CAN bus geeks – then more likely than not, a discussion will start to emerge. Interestingly, it’ll not be chaos: people will listen when...

View Article

The CAN bus, part 3 - STM32

With the basics out of the way, it’s time to look at the actual hardware peripheral, as used in STM32 microcontrollers. It turns out the CAN hardware is almost identical across all STM32 families....

View Article


The CAN bus, part 4 - JeeH API

Enough already of all this theory … it’s time to put the CAN bus into practice. Since my goal is not just to get CAN working, but also to fully explain how it can be implemented on an STM32 µC, I will...

View Article

The CAN bus, part 5 - Demo

Demo time! As test setup, I’m going to use an F4-based STM32 µC, since it has two CAN bus controllers. It’s easier to write a quick test for a single system. And since I have these boards lying around,...

View Article

The CAN bus, part 6 - Single-wire

There is a second way to use the CAN bus: in “single wire” mode (SW-CAN). But before I go into that, let me set up a dual-node bus, using standard MCP2551 transceivers for a “normal” CAN bus with...

View Article


Retrocomputing on STM32F407

The Blue Pill is a wonderful little board, and my first choice for many projects requiring a small and very low-cost µC board. Especially with PlatformIO’s excellent support for it. Even for...

View Article


Getting started with the F407

The first thing to try out on every new board is to blink an LED: the embedded equivalent of writing a “Hello World” program. I’m going to do this for both the “DIYmore” and the “Black407” boards, as...

View Article

Turning a Black F407 into a Z80

This is an amalgamation of two recent articles: Turning a Blue Pill into a Z80 and Getting started with the F407. I want to use this as starting point for further retro Z80 explorations. The first goal...

View Article

CP/M on F407, part 1 - Intro

CP/M from the 1970’s was an operating system for 8080 and Z80 8-bit micrcomputers. It was very popular among hobbyists, because it came at the right time and offered a way to manage data file storage...

View Article

CP/M on F407, part 2 - Storage

CP/M is a disk operating system. It relies on one or more “disks” for permanent storage, which persists while the computer is off. At the time, 8” floppy drives had just started to become available, at...

View Article


CP/M on F407, part 3 - The BIOS

As mentioned in the intro of this little CP/M series, the CP/M hardware abstraction layer is provided in a “BIOS”. This is a system-specific section of code which interfaces the main part of CP/M with...

View Article

CP/M on F407, part 4 - Booting

The last piece of the puzzle is to make all the parts line up and work together. This turns out to be quite involved. A large part is due to the “virtualness” of this whole CP/M setup: we need a way to...

View Article


CP/M on F407, part 5 - Power up

It’s time to stop talkin’ and start walkin’ … Disk initialisation As mentioned in the previous article, the last step is about getting the virtual disk in flash formatted and set up correctly. But...

View Article

CP/M on F407, part 6 - Finish

So now we have a running CP/M system, great. Except that it has no content, and no means to get any new content onto the virtual disk. That makes it pretty much useless. Intel HEX We need one more step...

View Article


Low-power L031 ... maybe

The exploration into low-power sleep modes continues. An STM32F103 draws just 3 µA in standby mode, but that’s not the end of the story. The STM32L0xx µCs are more modern and even lower-power. So I...

View Article

The ADC and its watchdog

The STM32 L0-series and newer µCs have an interesting feature: the ADC “watchdog”. Some variants have more than one, in fact. This mechanism can keep track of analog voltages in the digital world,...

View Article

The DAC and its DMA buddy

After yesterday’s article about ADC, it seems fitting to describe the other side of the coin: the digital-to-analog converter (DAC) and how to generate an analog waveform with it. DAC is easy This is...

View Article
Browsing all 265 articles
Browse latest View live