??? 01/04/05 14:05 Read: times |
#84308 - Possible Solution Responding to: ???'s previous message |
Hi Sneha,
What I see from your post, you have 2 problems: 1. Communication Problem: Your program looks OK to me as far as communication is concerned. You can try suggestions from other, kind and helping people here on this forum. You can also try using the HyperTerminal. Remove one microcontroller and send/recieve the signals to the other CPU through the Hyper Terminal. Maybe this might help. There might be a problem with your display hardware/firmware, double check it. 2. Communication continues till Power OFF: Generally when you write C program for Operating Systems such as Win9x, WinXP,Linux,etc, your C program has to preferably return the control back to the Operating System. So such programs look like the following: void main (void) { ... ... Function1 (); Function2 (); return ; // this statement can be ignored for void returns. } And inherently for Microcontroller / Microprocessor based programs they are of the form: void main (void) { ... ... Initialize (); for (;;) { Function1 (); Function2 (); .... } } // there is no return Note: The program never returns it just keeps on executing the "for (;;)" forever till the power is applied. If you dont give a for loop and you give a return then CPU always starts allover again from program location 0000h. Your program looks like the first type, rather it should be of the second type. if required you can just put a simple command: for (;;) ; // do nothing till power ON. or while (1) ; // has the same effect. Bye from, Mr. Kiran V. Sutar |
Topic | Author | Date |
8051 to 8051 communication | 01/01/70 00:00 | |
Try at a lower baud rate | 01/01/70 00:00 | |
Re: | 01/01/70 00:00 | |
8051 to 8051 communication | 01/01/70 00:00 | |
Which C Compiler? | 01/01/70 00:00 | |
Possible Solution | 01/01/70 00:00 | |
same kind of problem | 01/01/70 00:00 | |
Re:' ' | 01/01/70 00:00 | |
SMS? | 01/01/70 00:00 | |
Buffers too small? | 01/01/70 00:00 | |
Inter Character Spacing??![]() | 01/01/70 00:00 |