●Sending Data by Using PIC16F628A with Serial Communication
Here is the program written by using CCS C.
#include <16f628.h>
#fuses NOPROTECT, NOWDT, NOLVP, NOMCLR, INTRC_IO, XT
#use delay(clock=4M) //Be aware you set the same clock frequency for PIC
#use rs232(baud=9600 , xmit=PIN_B2) //Be aware you have the same baud rate for virtual terminal and use the B2 pin for transmitting the data
void main(){
while(1){
printf("Sezgin"); //Sending data as a string
delay_ms(250); //Setting the time for the delay
}
}