
#include <stdio.h>
#include "reg9107.h"

void main()
{
	TRIM |= 0x40;  // Clock out enable,   
                       //clock = 7.327MHz internal RC oscillator

	P0M1 &= 0x7D;  // Pin 0.7 (clock out) and Pin 0.2 in 
        P0M2 |= 0x82;  //push pull configuration
	
	EA = 1;        // Enable all interrupts.

	P0 = 0xFF;     // Port 0 = 0xFF, pin 0.2 should be high 
                       // and clock/2 as output on pin 0.7

	while(1);	// Infinite loop
}
