Category Archives: MCU

ARM:0013 STM32CubeMX – USB HID keyboard

Now we will build a USB keyboard. This project is based on STM32CubeMX canned example, HID mouse (see previous article). But we will change mouse to keyboard. Both devices are from the same HID class. First we need to change … Continue reading

Posted in Anything, MCU | Tagged , , , | Leave a comment

ARM:0012 STM32CubeMX – USB HID mouse

Next canned project for STM32F103 MCU using the cube- USB HID mouse. HID (human interface device) means it is the standard device compatible with all computers with USB ports. STM32CubeMX has all device descriptors and init procedures already built in. … Continue reading

Posted in Anything, MCU | Tagged , , , | Leave a comment

ARM:0011 STM32CubeMX – Pin interrupts

Next tutorial- interrupts, keyboard (PS2 input) and USB COM port. I have a small keyboard in my stash. It was from some flop device made by Amstrad. This keyboard has a 4 pin connector and I had hoped that it … Continue reading

Posted in Anything, MCU | Tagged , , , | Leave a comment

ARM:0009a – bug in CubeMX makefile

First you generate code, then you regenerate code, do make and… > “make.exe” all make.exe all -C .. make.exe[1]: Entering directory ‘F:/MyDoks/elektronika/ARM/daiktas-cube/SINGLE_UART’ Makefile:118: *** missing separator. Stop. make.exe[1]: Leaving directory ‘F:/MyDoks/elektronika/ARM/daiktas-cube/SINGLE_UART’ make.exe: *** [makefile:3: all] Error 2 > Process Exit … Continue reading

Posted in Anything, MCU | Tagged , , | 1 Comment

ARM:0010 STM32CubeMX- USB 2 COM dongle

This article is also an introduction, but this time a bit more practical- USB to serial port (COM) dongle. This tutorial will show how to create USB devices from “canned” software using only STM32CubeMX. For this example I used some … Continue reading

Posted in Anything, MCU | Tagged , , , | Leave a comment

ARM:0009 STM32CubeMX tool from STM MCUs

There will be several posts about using the cheapest MCU board from China. So called Bluepill- PCB containing STM32F103C8T6 microcontroller, USB connector and some small elements. For a few bucks/euros we have upto 72MHz CPU, 64Kb of ROM and up … Continue reading

Posted in Anything, MCU | Tagged , , | Leave a comment

Thing to know: Z80 CPU clock

I just only want to send notes to myself. Z80 CPU clock must be 5Vpp and pure TTL levels sometimes are too low for good and stable CPU work. Even this old CPU is very stable at 5Vpp clock, meanwhile … Continue reading

Posted in Anything, MCU | Tagged , , | Leave a comment

ZX Spectrum inside CPLD

I found an old ZX Spectrum clone made in Soviet Union in the 90’s. It was my computer, I wrote several programs on it and also, I wrote drivers for Epson printer on this hardware. This model has Soviet chip … Continue reading

Posted in Anything, FPGA, MCU | Tagged , , , , | Leave a comment

Testing Commodore 6526/8520 copy in CPLD

There are quite expensive obsolete chip from various Commodore computers and peripherals- CIA/PIA MOS 6526 and a bit changed 8520 used in Amiga computers. This is a “complex” peripheral interface adapter chip for 6502 processor or 68K chipset. It is … Continue reading

Posted in Anything, FPGA, MCU | Tagged , , , | 10 Comments

AVR USB printer device and teletype

I have old teletype printer T-63 (it is made by RTF in Eastern Germany, clone of old Siemens Teletype). And the idea is about connecting it as USB printer to our-days computer. Easiest way is to connect it using RS232 … Continue reading

Posted in MCU | Tagged , , , | 4 Comments