1: //Project : SCISubroutines.c 2: //Version : 1.01 3: //Date : 12/24/2002, modified 5/23/2005 4: //Author : JianJian Song w/ modification by Curtis Rhodes 5: //Company : rose-hulman institute of technolog 6: //Purpose : RS232 serial communicaiton routines 7: //Input: serial port from PC 8: //Outputs: serial output to PC 9: // Serial port 10: // RC6 (pin 25) == TX pin to send data to PC 11: // RC7 (pin 26) == RX pin to receive data from PC 12: // 13: //Chip type : PIC16F877A 14: //Clock frequency : 20 MHz 15: #include 16: #include "memoryProgrammer.h" 17: //=================================================== 18: // display_string() 19: //=================================================== 20: void display_string(const char *string, char length) 21: // send a string to serial port. length is string length 22: { 23: char i; 24: for(i=0;i