Category: Educational

Half Duplex SPI

Half Duplex SPI allows all units to send to each other using MISO or MOSI. The challenge is that if 2 units try sending one might pull high and another low so you get a short-cut. The same goes if more than one tries to become Master and run the clock. The diagram above solves…

Read the full article

Review Exercise

Doing a review of your Jown work is a bit of a challenge, but it is possible. The trick I use it to complete the work and then let it rest 1-2 weeks before I pick it up and update documentation. This technique has in the past proven quite efficient, but I would recommend using…

Read the full article

USB on STM32

J7 above is the USB connector on my Hat’s and 44/45 at right is the connection to the MCU. This is all you need to do to have a working USB connected to an STM32. Software is even easier if you just want a serial port. You just install STM32 Virtual Serial port driver for…

Read the full article

Raster Graphics Integer Errors

A common problem with plotting lines in raster graphics is visualization errors as we display the graphics. Most times we can just ignore these, but as I am drawing scrolling real-time plots I also receive the side effect of an integer error. This show a line that due to integer rounding is a straight line…

Read the full article

C# HMI @ 64 FPS

I did a lot of work in C#/Forms a few years back and found it to be a bit to slow for actual usage. It was easy to get fancy UI graphics done, but you instantly started struggling with performance on the screen. I remember using ca 1 month to get the functionality done and…

Read the full article

Terminal Code

The code snip below is the C# terminal code I just knocked out. As simple serial terminal as you can get: namespace Terminal {     class Program     {         static void Main(string[] args)         {             string portName = “COM15”;             while (true)             {                 try                 {                     SerialPort port = new…

Read the full article

Multiple ST-Links

SW4STM32 allows you to maintain multiple projects and have multiple ST-Links active at once. This is a welcome feature as I now need to program several at once to get backbone SPI working. I finally got the 10x USB cables, so everything is set up and working. This also means that I start using SW4STM32…

Read the full article

Home made Z80 Computer

I have seen quite a few attempts on making vintage computers, but this “Homebrew Z80 Computer Kit” costing 199.- USD is very cool. This is actually a very cool design. If this had popped up at this price some 40 years ago I would have bought one. I do however love the modular design concept…

Read the full article