//fistprog.c
//
//First program written in C to demonstrate C code controlling
//the 68HC12 microprocessor
//
//Derek Marston and Peter Susi
//3/28/03

#include "common.h"
#include "iob32.h" //all IO and memory names

void main()
{
	int count;

	DDRA = 0xFF;
	
	for(;;) //generate a square wave on all pins of Port A
{
	PORTA = 0x0;				//turn all bits off
	for(count=0 ; count<1000 ; count++) 
	{}

	PORTA = 0xFF;				//turn all bits on
	for(count=0 ; count<1000 ; count++) 
	{}

}	
}

