68HC12 Coding:
UNDER CONSTRUCTION!
New!!! New!!!
Datalogging !!!!
Getting Visual Basic to Talk with the 68HC12 ----
This application illustrates how to accomplish 2-way RS-232 communication
between a 68HC12, running a dedicated "kernal" program, and a PC running
a Visual Basic Program. The VB program graphs, in real time, an analog
voltage that is being input into the A/D converter of the 68HC12. Also,
to illustrate communication the other way around, a hobby servo, whose signal
wire is attached to the 68HC12 PWM port (Port P pin PP0) can be controlled
via a "horizontal slider control" from Visual Basic, using the mouse. This is
just a demo which gives you the key info (e.g. how to set up serial port
communications from within Visual Basic), so that by making a few changes,
you can customize the Visual Basic and/or 68HC12 kernal program to do virtually
anything. For details, click on the following MS Word Document:
MS Word Document describing Datalogger
Note: The following Code Files Have been "zipped". You should download them and then
use "pkunzip" or "Winzip" to unzip these files.
6812 Kernal Code for Datalogger
Visual Basic 5.0 Code for Datalogger
PWM1.asm - 68HC12 Assembly code for pulse-width-modulation
Written by Mike Giesselmann
PWM2.asm - 68HC12 Assembly code for pulse-width-modulation
Written by Thomas Holt
Tips on programming EEPROM and using EEPROM mode
Written by David Mehrl -- in Acrobat Reader (*.pdf) format
disptc0.asm - Automatically updates 7-seg display on daughterboard
- uses output compare interrupts to update the display every 5 msec. Written by D.J. Mehrl
Back to Home Page