/* ***************************************************************************** * * File Name - hello.c * Function - Demonstrates serial output by printing a test string each sec. * * You will need: * (1) uFlash & CCS PIC C Compiler (PCM/PCW) * (2) PC Terminal emulator (such as Hyperterm) * * Instructions: * (1) Compile & downloading to the uFlash * (2) Setup Hyprterm for 57K6 Baud,8 bits, no parity, no echo, no handshaking * (3) Remove the Pgrm Jumper from the uFlash (this stops Hyperterm from * holding the uFlash in reset). * (4) Run Hyperterm * ***************************************************************************** */ #include void main(void) { WORD x=0; // line counter while(TRUE) // loop forever { printf("Hello World %ld\r",++x); // print str & count (inc count) delay_ms(1000); // wait 1 second } }