Asee peer logo

Video Graphics Using The Spi On The Mc68 Hc11 Microcontroller

Download Paper |


2004 Annual Conference


Salt Lake City, Utah

Publication Date

June 20, 2004

Start Date

June 20, 2004

End Date

June 23, 2004



Conference Session

Portable/Embedded Computing II

Page Count


Page Numbers

9.1401.1 - 9.1401.8



Permanent URL

Download Count


Request a correction

Paper Authors

author page

Christopher Carroll

Download Paper |

NOTE: The first page of text has been automatically extracted and included below in lieu of an abstract

Session 3620

Video Graphics Using the SPI on the MC68HC11 Microcontroller

Christopher R. Carroll

Electrical and Computer Engineering University of Minnesota Duluth


The Serial Peripheral Interface (SPI) input/output capability of the MC68HC11 microcontroller is a feature of the MC68HC11 architecture that is often overlooked by casual experimenters. It is designed to interface to input/output devices that include special hardware specifically meant to connect to the SPI. However, the SPI provides a handy way to output a generic high-speed stream of bits from the MC68HC11 without requiring additional external hardware. That capability has been employed to generate the video signal for an alphanumeric text display on a standard video monitor, as described in an earlier ASEE paper1.

This paper details a technique for producing a simple graphics display on a standard video monitor, using the SPI unit to generate the high-speed bit stream necessary for the video signal driving the monitor. The display produced is adequate for simple line graphs or other comparable displays. The heart of the technique described in this paper is controlling the timing of data emerging from the SPI very carefully, at the clock cycle level, and thus establishing the position of various graphical elements along the scanlines of the standard video display. The technique relies heavily on creative programming techniques to achieve this clock-cycle-level control of the signal timing, clearly demonstrating the operation of the SPI unit while at the same time serving as a useful graphics output utility that can be used by other software.

The software routines that control the MC68HC11’s SPI unit to produce the graphics output are revealed in this paper, as are the few discrete components necessary to produce a composite video signal to drive a standard video monitor. Equipping an MC68HC11 microcontroller with this feature adds a handy output function that can be used in any MC68HC11 system.

Proceedings of the 2004 American Society for Engineering Education Annual Conference & Exposition Copyright ©2004, American Society for Engineering Education

Carroll, C. (2004, June), Video Graphics Using The Spi On The Mc68 Hc11 Microcontroller Paper presented at 2004 Annual Conference, Salt Lake City, Utah. 10.18260/1-2--12932

ASEE holds the copyright on this document. It may be read by the public free of charge. Authors may archive their work on personal websites or in institutional repositories with the following citation: © 2004 American Society for Engineering Education. Other scholars may excerpt or quote from these materials with the same citation. When excerpting or quoting from Conference Proceedings, authors should, in addition to noting the ASEE copyright, list all the original authors and their institutions and name the host city of the conference. - Last updated April 1, 2015