Jonathan W. Valvano, 4/11/02
ICC12 file types (open with the ImageCraft Compiler)
file.c is a ICC12 6812 C source file (ASCII text file)
file.h is a ICC12 6812 C header file (ASCII text file)
file.s is a ICC12 6812 assembly source file (ASCII text file)
file.asm is a ICC12 6812 assembly source file (ASCII text file)
TExaS file types (open with the simulator)
file.uc is a TExaS microcomputer file
file.io is a TExaS input/output file
file.scp is a TExaS oscilloscope file
Other file types
file.XLS is a spreadsheet file (open with using Excel)
file.bat is a DOS batch file (ASCII text file))
file.zip is an achival file (you could try WinZip, see winzip.com)
To download all the programs in zip format.
Name
Description
Needs
adtest.c
Main program for the 8-bit ADC, samples analog signal and prints
results, can be simulated with TExaS
hc12.h sci12.h sci12.c sciutil.c adtest.uc adtest.io
b.bat
Batch file to launch Kevin Ross's BDM12 software
db12.exe (from Kevin Ross)
bitfifo.c
First in first out queue that puts and gets individual bits. It
has a bug and will be used in the debugging lab.
bitfifo.h
dab8043.c
Bit-banging serial interface to a DAC8043 12-bit DAC
dac8043.h
dac8043.c
SPI interface to a DAC8043 12-bit DAC
dac8043.h
dactest.c
Main program for the SPI/DAC8043 12-bit DAC interface
hc12.h dac8043.h dac8043.c
das.c
Simple data acquisition system
hc12.h
dftest.c
FIR digital filter example, with MACQ
hc12.h sci12.h sci12.c sciutil.c
ds1620.c
Bit-banging serial interface to a ds1620
ds1620b.c
SPI interface to a ds1620
dstest.c
Main program for the ds1620 bit-banging interface
hc12.h sci12.h ds1620.h sci12.c sciutil.c ds1620.c
dstestb.c
Main program for the ds1620 SPI interface
hc12.h sci12.h ds1620.h sci12.c sciutil.c ds1620b.c
example.c
Simple Example
hc12.h cop12.h cop12.c vectors.c
extmem.c
Extended memory access for DPAGE PPAGE
hc12.h
fnctpt.c
examples of function pointers
fsm12.c
Complicated Moore FSM
hc12.h
fuzmotor.c
Fuzzy Logic motor controller
fuzzy.asm fuzmotor.uc fuzmotor.io fuzmotor.scp
hc12.h
6812 IO Ports
heap.c
Fixed Block Memory manager
heap.h
high.c
C level program, showing linkage to assembly language code
low.s
huff.c
Debugging lab example, Huffman Code (bitfifo.c has a bug in it)
hc12.h sci12.h bitfifo.h bitfifo.c sci12.c sciutil.c
huff1.c
Example: testing of PutBit
hc12.h
interp12.c
Linked List Interpreter
hc12.h sci12.h sci12.c sciutil.c
Lab17.zip
Lab 17 starter files
lcd12.c
1 line by 16 character LCD using a HD44780
lcd12.h
lcd14543.c
LCD interface using a MC14543
hc12.h
lcdtest.c
Main program for a 1 line by 16 character LCD Display
hc12.h lcd12.h lcd12.c
led1.c
A simple example that flashes the PT6 LED without interrupts
hc12.h
led2.c
PT6 LED flashes on and off using timer overflow interrupts
hc12.h
llfifo.c
Dynamically allocated linked list FIFO
llfifo.h heap.h heap.c
lltest.c
Main program with dynamic linked lists, simple heap
hc12.h sci12.h llfifo.h llfifo.c sci12.c sciutil.c
lpf.xls
Excel spreadsheet to help design a Butterworth LPF
master.c
Main program for a RS485 half-duplex multiport network
hc12.h sci0.h sci1.h sci0.c sci1.c slave.c
max1247.c
Bit banging interface to a Max1247 ADC
mealy12.c
Mealy FSM
hc12.h
memtest.c
External RAM interfaces
hc12.h memtest2.c memtest3.c
moore12.c
Moore FSM
hc12.h
moore2.c
Moore FSM
hc12.h
oc3.c
Periodic Interrupt using TOC3
oc3.h
oc3test.c
Main program for an OC3 interface
hc12.h oc3.h oc3.c
pwmod.c
Pulse Width Modulation using TC3
hc12.h sci12.h sci12.c sciutil.c
rti.c
Real Time Interrupt example
hc12.h
rxfifo.c
Pointer implementation of the receive FIFO
rxfifo.h
sci0.c
Simple I/O routines to sci0 serial port
sci0.h
sci1.c
RS485 half-duplex multiport network
sci1.h
sci12.c
Simple I/O routines to sci0 serial port
sci12.h sciutil.c
sci12a.c
Serial port I/O routines, interrupt synchronization
rxfifo.h txfifo.h rxfifo.c txfifo.c sci12.h sciutil.c
scidemo.c
This is a good starter file if you use serial I/O
hc12.h sci12.h sci12.c or sci12a.c sciutil.c
sfifo.c
FIFO using semaphores
sfifo.h spin.h spin.c
simple.c
Simple function call
hc12.h
slave.c
Main program for a delay echo for a half-duplex sci1 network
hc12.h sci1.h sci1.c master.c
spin.c
Spinlock binary semaphore
spin.h
spin12.c
Spinlock binary semaphore without disabling interrupts
spin12.h
test.c
Simple function call
hc12.h
therm.xls
Excel spreadsheet to help design thermistor bridge circuit
thread3.c
Statically allocated thread example
hc12.h sci12.h sci12a.c sciutil.c
thread4.c
Statically allocated thread example
hc12.h sci12.h sci12a.c sciutil.c
toflop.bat
Copy files to floppy
tohd.bat
Copy files to hard drive
txfifo.c
Pointer implementation of a FIFO
txfifo.h
usqrt.c
Unsigned 16 bit squareroot
hc12.h sci12.h sci12.c sciutil.c
vectors.c
Specifies the interrupt vectors
vram.c
example of how to access external RAM
These programs accompanies the book "Embedded Microcomputer Systems:
Real Time Interfacing", Brooks-Cole, copyright (c) 2000, Jonathan W. Valvano. For more information about the book.
ICC12 Copyright (c) 1994-1998 by ImageCraft, Richard Man, and
Christina Willrich for more information about ICC12 see http://www.imagecraft.com
You may use these files without restrictions, but there is no
guarantee that they work.