Friday, November 5, 2021

Keyboard for OMEGA MSX Computer : it works!

It took me much less time than expected to be able to interact with the OMEGA board:

Before testing my USB to keyboard adapter board, I had tested the reception of codes from the USB keyboard. So I knew it was working. But I still didn't know how MSX BIOS scans the matrix keyboard.

After a few attempts and oscilloscope tests, I was able to send 'things' to OMEGA. But obviously not the right codes. After having researched the official codes of the MSX keyboards, I realized that the BIOS installed on OMEGA manages the Japanese keyboard! Why not!...

My first goal being to be able to type a little Basic program and run it, I decided to code the essential characters. First, the alphabet:


I am totally amazed at how easy it was to turn on my USB / OMEGA keyboard interface. I didn't have any issues with the design of the board, everything worked right from the start. Coding the software of the small STM32G0 processor was really very easy with the STmicro IDE.

For now, the coding is more of the quick and dirty type but it works very well!

On the way to my first "Hello World" program ;-)

 

Wednesday, November 3, 2021

Keyboard for OMEGA MSX Computer : no 'magic' smoke :-)

Until now, I have carried out my developments on this USB keyboard interface by powering the board using a laboratory power supply. As I have pretty much finished the software embedded in the STM32 processor, it's time to see what it looks like on the OMEGA board.

This is what the final assembly looks like:



The interface LED responds well to pressing keys on the USB keyboard. It remains to be seen if this works well with the OMEGA board.

As a USB keyboard does not really take the specific keys of the MSX keyboard, I planned the use of specific keys of the USB keyboard like ALT, CTRL etc ...


Friday, September 24, 2021

A better keyboard for the µPF--2

After having imagined several solutions to obtain an acceptable keyboard for the µPF - 2, I ended up using key caps which it is possible to label:


For the moment I have not printed the labels of the keys in color, it would have been nicer, but the result is quite practical. This keyboard has nothing to do with what the original kit offers : https://www.kswichit.com/Z80/Z80.html.


Wednesday, June 30, 2021

Time for the µPF--2.

The µPF--2 


When I developed this µPF - 1 / B compatible board, I wanted from the start to add a specialized time management circuit. So I installed a DS3231. This circuit is interesting because it is very precise. It also offers RESET management that I used as a master reset of the board. 



This DS3231 operates using the I2C bus. Obviously, this bus must be implemented in the FPGA. That shouldn't be a problem. I thought I would find a usable 'piece of code' on the web. In fact it was not a good idea. The codes found are often complex and above all undocumented.

Therefore, the best solution was to implement the I2C protocol myself. That's what I did. It is not very complicated, but not necessarily straightforward.




After a short period of development, I got the bus to work perfectly and was able to configure and read this real time clock circuit:



At this point, I have tested all the hardware functionality of this project. I also rewrote a lot of the system. It only remains for me to integrate all these developments in a 'clean' way.

I am beginning to see the end of this subject ...

Friday, May 21, 2021

µPF--2 is able to use the IOM board

New step in the production of the µPF--1 compatible board: the use of the PIO of the IOM expansion. 

https://fjkraan.home.xs4all.nl/comp/mpf1


In fact, I picked up this 'supposedly' new extension a few years ago on eBay for a low price. Obviously, when it was powered, the general voltage was only 4.6V.

One of the RS232 drivers was problematic. So I removed it from the board and also changed the 5V regulator because the 7805 regulator which undoubtedly heated, only delivered 4.8V. The 5V restored, I connected the board to the µPF--2 and after some modifications of a small test program, I was able to run the famous basic 'Hello World' : the lighting of the three leds.


Yep, after 34 years, I am able to play with it again.




Thursday, May 13, 2021

MSX Omega computer : USB keyboard interface.

A few weeks ago, I talked about Sergey Kiselev's MSX2 compatible processor board project and the choice I made not to build the keyboard for reasons of overall system cost. 


Not everyone will agree with this choice, but for me, the main thing is to be able to have fun in retro-computing without breaking the bank. I
n fact, I specially studied an adapter for this MSX board to allow the use of a standard USB keyboard:


As usual, after a few days of waiting, I received the PCB:


This board is not particularly easy to assemble by hand because of the two integrated circuits with very thin and close legs. But with a little patience and skill, here we are. First I powered this adapter and plugged in a USB keyboard. I was able to observe the lighting of the keyboard connection LED as well as its flashing each time a key was pressed on the keyboard. It seems to me to be a very good start since the reaction of the USB control IC corresponds to what is indicated in the datasheet. In principle, all that remains is to program the processor to provide the parallel code expected by the MSX board.

A small additional check was carried out to verify that this adapter board fits correctly on the OMEGA board:


Note that I chose a raised USB connector to allow easy insertion of the keyboard connector. My adapter looks perfect! In fact, I have to quickly program it because without a keyboard it is obviously impossible to use the OMEGA computer.

However, for some time I received a Carnivor cartridge to allow me to copy programs or games to it and finally test the proper functioning of the OMEGA board:

At least I have already been able to test that this cartridge fits correctly into the connectors of the OMEGA:


I may also have to find a joystick for this machine. Otherwise it will be difficult for me to really test the games ...




Wednesday, May 12, 2021

µPF--2, a µPF--1 clone.

Since a few months, I have been in the process of recreating the well-known µPF--1 microprocessor kit :

Wilipedia.
In fact, this kit has already been recreated, by Wichit Sirichote with the addition of downloading binary files from a PC via a serial interface. 


This solution, more modern than the original kit seems perfect, except that it has some drawbacks and a small operating problem. First, the serial interface comes in the form of a Standard RS232C interface. It would have been really more interesting to offer a serial interface via a USB port. This would have greatly facilitated the use of this kit. On the other hand, the fact that it is the Z80 processor which fully manages the serial interface, the maximum throughput remains very low, at around 1200 Bauds and receives erroneous characters randomly. Downloading even small files takes too long and is unreliable.

Also, I decided to redevelop this kit by offering a much more efficient USB hardware serial interface. I added a serial interface for an external keyboard. The original Wichit Sirichote keyboard being totally unusable. The switches used are not intended for this type of use.

I also added some possibilities and modified the software system accordingly. This allowed me to recreate the kit on a standard FPGA board:

This new system works very well, but on the one hand the FPGA board used is generic and not really suitable for the intended use. This FPGA board also does not offer a USB serial port and the expansion port is not suitable for setting up Z80 type extensions.

So I decided to recreate a system based on an FPGA. After several attempts and configurations considered, I arrived at this system:


Implementing an FPGA is a bit tricky, so I went with a pre-made FPGA board. Going through this type of configuration removes some of the implementation difficulties, and as a bonus, allows me to offer a more 'powerful' FPGA than the circuit originally planned.

The result remains compact and suitable for intensive use. Note also that this system can be used for something completely different than the recreation of the µPF--1 kit since it has 5V compatible serial and parallel inputs / outputs, a 2x16 LCD display in addition to the eight 7-segment displays.

After shipping the design files, I received the printed circuit board. The first thing I did was to see if the FPGA module can be correctly inserted:


Once this check was done I was able to start mounting partially the system. I started by mounting the power parts and checked the absence of 'magic smoke':


Fine! And the USB / serial interface circuit is correctly detected by the system, Win10 in my case.

I was able to continue mounting the board by installing all the components necessary for a first start of the system, i.e. the eight 7-segment displays and the LCD display as well as the interface circuit which will be used to receive the information from the external keyboard:


The FPGA module starts up correctly, The small example which makes the D5 LED flash works. The LEDs and the 7-segment displays are slightly lit which is normal given that all the I / O not used of the FPGA are positioned as inputs with low PULL-UP when it starts up.

It now remains to adapt the code of the FPGA previously developed to this new board.