Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PIC16F877A interfacing with hyperterminal.

Status
Not open for further replies.

sk8ter87

Member level 3
Joined
Dec 1, 2009
Messages
55
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
Malaysia
Activity points
1,665
Hi guyz..it's me again..
i tried to do pic16F877A interfacing with hyperterminal.
but it does not work..:sad:
here i'm attaching the pic code..
hope you guyz can help me check the programming..
 

Attachments

  • Phase_3_Hyperterminal.txt
    960 bytes · Views: 58

Here is a sample program, which I tested as functional, make changes in your current code accordingly:

Code:
#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. ;-)
 

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. ;-)

i alr done wif all then mention... can u check my codes if u dont mind?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top