Skip to main content.

PIC M68 Display Library

This project is a C module for using 'Hitachi style' M68 displays with a PIC18 micro controller. Typically this would be a 1 or 2 line LCD or VFD display. The C module is targeted and tested with the MPLAB C18 compiler. The MPLAB C18 compiler comes with XLCD, a peripheral library for Hitachi HD44780 LCD controllers. This code is for a M68 interface used in my Noritake and Seiko displays, for which the include XLCD code does not work.


LCD Display
VFD Display


The header file lcd.h is extensively commented and provides instructions for preparation. Preparation mostly involves implementing a device millisecond delay routine, defining your data port, and defining your control pins. Notable functions:


These displays may optionally support an 8 or 4 bit data transfer, but only 8 bit transfer is supported at this time. The specific displays I've developed this module for is the Noritake 5 x 7 dot VFD CU24025ECPB-U1J with the M68 bus timing selected. This module also adjusted to work with a similar Seiko LCD.


Source targeted to MPLAB C for PIC18 compiler.

MPLAB is a free PIC integrated development environment by Microchip.
  MPLAB download page
The MPLAB C for PIC18 tool chain has a lite and 30 day trail paid version.
  MPLAB C Compiler for PIC18 series (Academic version) download page

Souce Code:

Version History