Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#include <16F84A.H>// Include header file
#fuses XT,NOWDT// Crysral Osc(4Mhz), No watchdog timer
#use delay(clock=4000000)// 4Mhz crystal frequency
#use rs232(baud=9600, xmit=PIN_A3, rcv=PIN_A2)// to set baud rate, Tx and Rx Pin
void main()
{
char scale;
while(true)
{
do
{
printf("\n\rPress Y for YES or N for NO: ");
scale = getc();// Wait until an character is recieved by RS232 terminal software
scale = toupper(scale);// To convert lower case to upper case
}
while ((scale!='Y')&&(scale!='N'));
printf("\nCompleted");
}
}
Ohh....... I haven't used it..... :-(
Aren't you using serial communication(USART) module? Have you made the settings correctly i mean RX as input & TX as output of PORTC?
Regards,
Jerin. ;-)