PSIM is a crude first attempt at a portable simulator for midrange (16Cxx) PIC microcontrollers. It is nowhere near commercial quality, and is being made available in the hope that it might be useful, and that perhaps others might contribute enhancements.

As supplied, PSIM is known to work under the Linux operating system on Intel-based machines. The code should be very easily portable to other Unix systems, and fairly easily portable to other operating systems.

I developed PSIM in order to debug PIC projects that have a software-generated video output. The projects I'm currently working on generate non-interlaced video with non-standard timing, but the timing is close enough to NTSC for use with common monitors and televisions. For example code to run on the simulator, try my PIC-Tock project.

By default, the simulator is built without the video output simulation feature. To enable it, uncomment the line "VIDEO = 1" in the Makefile. The video window includes the horizontal and vertical blanking intervals. Sync is shown as red, blanking as black, black video as dark grey, and white video as white, as shown in this image.

The PSIM source code is available under the terms of the Free Software Foundation's General Public License, Version 2. If you agree to the terms of the license, you may download a copy of the gzip'd tar archive:
If you find PSIM useful, or make any enhancements to it, I'd appreciate it if you would drop me a line.
Back to my PIC Projects page
Back to my home page

Last updated August 6, 1997

Copyright 1997, 1998 Eric Smith

HTML 3.2 Checked! check now