Readout of compass module CMPS03 to 8 LEDs, second output to pc serial RS232 port and controlled by a PIC16F877 at 4 MHz.
Compiled with Hi-Tech PICC. LED current limiting resistors: values are 300R for normal (10mA) LEDs and 1k5 for low current (2mA) LEDs. You can use hyper terminal in any windows platform to communicate easily with the serial RS232 interface.
Visit Here for more.