when i giv the getkey() commmand, the hyperterminal doesn't accept any value. However i am able to transmit from serial port to hyperterminal using sendchar or printf.. eg, sendchar (65); this displays A, as it should
But if i give : int i; printf ("enter your choice 1/2/3"); i=getkey(); sendchar(i);
this does not accept anything at the hyperterminal only the message after printf is displayed.
Please help...
this may be a little silly to ask, but assuming you use a serial port, are you sure your RX wire is connected?
Yes it may sound silly but i have tried everything i could.. I know it is a very simple mistake i am making but can't figure it out.
I connected the COM1 of the board, (as i was using UART1) to that of the computer. The transmitting part is working fine, but i am not able to recieve any thing..Do i have to do any other settings in the Hyperterminal or board which i am overlooking..
Guys this is really urgent. Can't figure out what is wrong...Please help....
You do have hardware handshake active in Hyperterminal?
Have you connected any handshake (modem) lines between PC and development board?
If Hyperterminal isn't told that it is ok to send, then no characters will be sent to your board.
Thanks Per for ur help... I have not connected any modem between the development board and computer. But Per please could u tell me why do i need only modem to recieve and not to transmit. Handshake should have been bothways..right? So, now do i have to connect some external hardware(modem etc..) or is there some internal setting to be done.?
I did not talk about any modem. I did talk about modem lines. Your serial port contains more signals than just RX, TX and GND. You have RTS (Ready To Send) and CTS (Clear To Send) for example.
When the Hyperterminal is configured to use hardware handshake, it will make use of these extra signals to find out if it is OK to send more data to the external hardware. In the same way, it will use these signals to inform external hardware that it is ok to send to the PC.
If your development board do not make use of these sinals, then the ARM program will always be allowed to send to the PC. But unless you wire the signals together or connect them between PC and development board, the PC will be forbidden to talk.
If you turn off hardware handshake in Hyperterminal, then any extra handshade signals will be ignored, and the Hyperterminal will send out data as soon as it has more data to send.