Remake VIDEO-MPF-I

The VID-MPF-I v2.0 is an updated remake of the Bardehle Electronic Video-MPF-1 v1.2 board. Some components are replaced by more common logic, and the ROM is cleaned of what appeared as debug code and experimental features. Additional routines, useful for testing were added. The current footprint is less than 2 k Byte. The socket is designed to take a 4 k Byte ROM too, so plenty room for more features.

MPF-I with MPF-VIO board and TFT monitor
MPF-Iplus with MPF-VIO board and TFT monitor

Versions

Bardehle produced at least two versions of the board and software.

The first remake is marked 2.0. During component assembly and testing some problems were found. The problems were:

Use the M1* signal in I/O-port selection.
This can give problems during an interrupt acknowledge. Remove the trace between U5-9 and U5-10 (component side, alas) and connect U5-10 to J1-27.
Address selection mix-up.
The ROM is at 4000h and RAM at A000h. Cut the traces between the two J9 pins and the two J10 pins. Connect J9-1 with J10-2 and J9-2 and J10-1.
Font-ROM bit mix-up.
During transcribing the original schema to KiCAD, the order of the bits between the Font-ROM and the latch went wrong, mangling the characters.
Cut traces to U11-13, U11-14, U11-16, and U11-17.
Connect U11-13 to U4-7, U11-14 to U4-14, U11-16 to U4-13 and U11-17 to U4-8.
EPROM size
The board has a jumper to select a 2kByte or 4kByte EPROM, but has a track between pin 2 and 3 of jumper J11, selecting the 4 kByte EPROM size. This track has to be cut for 2kByte EPROMS. Otherwise address line A11 will be shorted to Vcc.
The to-be-produced 2.1 board version of the board should have this fixed, but it might take some time before this is tested.

The versions 2.1 and 2.2 of the monitor firmware are made for the MPF-1(B), but the MPF-IP works best with the 2.0 version. The 2.0mod version eliminates the mangling of some ASCII characters, the 2.0modpal version adheres better to the PAL-video standard, making it work better with modern flatscreen monitors.

There were two sources for the remake: a board version 1.2 and the schema in the manual for version 1.0.

List of changes:

What is in the ROM

The original 1.0 firmware contained little more than routines for initialisation and print characters and lines of characters. It also recognized eight control characters. The version found on the 1.2 card added a character set dump and some badly understood (based on dis-assembly) additions.

To properly test the remake, at least some routines had to be added. Currently a screen-filling banner with copyrights is present as well as a simple hex-ascii memory dump. The former is useful to make sure the whole display-memory is visible on the physical display. The latter adds an option to look at more than one byte in memory at once.

The github page is the proper place for an up to date list of features, but here a short list:

    0a000h: clear screen, reset cursor
    0a004h: init 6845, clear screen, return from call
    0a007h: init 6845, clear screen, jump to 0000h
    0a00ah: (JCRTCO) print character in C, interpret control codes
    0a00dh: (JCRTOU) print character in C, print codes 00h-31h too
    0a010h: (JTEXCO) print 00h terminated string (start in IY)
    0a013h: (JTEXCLN) print 00h terminated string (start in IY) with line 
     end (CR/LF) post-fixed
    0a016h: (JVIDTE) writes character set to screen, jump to 0000h
    0a019h: init 6845, clear screen, print banner, rst 0
    0a01Fh: hex/ascii memory dump of 8 * 16 bytes, rst 0
In the housekeeping section of the video-RAM, some addresses are of interest:

screendump

The code is default assembled at A000h, but intended to be relocatable (assembly-time). Most development and testing is done with the ROM-emulator from the U7 socket at 2000h.

The original code contains provisions to write only to video memory during the blanking period, but not all variants of the 6845 have the register indicating this. The 6545 has it, as does the UM6845, but the HD6845 doesn't. Video memory is what could be visible, but also video- housekeeping. It still works, but with black stripes in the video signal.

The remade VIO_MPF-I version 2.0 board component side.

Video-memory organisation

The range from 4000h to 45FFh is used for the actual display. At one time, only 40x20 bytes (=800 bytes, 320h) are visible, but as lines are printed, the displayed part scrolls through the reserved space of 1536 (=600h) bytes. The house-keeping part (4600h-4660h) is used by the firmware for house-keeping (cursor position, line buffer, ...). The rest is free to use. But using it can result in striping in the video signal.

Possible improvements

Links

Last updated: 2024-07-24

email