![]() | ![]() | ![]() |
| |||||||
| 8051/8951 A specify forum for the Intel 8051/8951 single chip microcontroller. |
![]() |
| | Tools |
| | #1 |
|
hi, i wanted to control something through 8051 by interfacing it to my pc through hyperterminal. a simple diagram is shown: PC(hyperterminal) <----> 8051 <----> [something to be controlled] actually what i am after is the interface between PC & 8051. the interface to the something to be controlled is not a problem since it would vary on the application here are some of my thoughts: - i will use 8051 serial port since it is interfaced w/ pc serial - i will only use 2 lines, tx & rx from these thoughts, these questions rose: - is it possible not to use AT commands? - as a support to the previous question, can i develop my own commands such that what i can see in the hyperterminal window is a prompt that waits for a command? - are the tx/rx lines from the serial port enough for the operation previously described? or do i still need to use the other control lines of the pc serial port? | |
| |
| | #2 | |||
| Quote:
Launch a hyperterminal. In setting up a new connection, select the desired COM port, baud rate, ...., and "none" for flow control. Quote:
A simple command to control an output port would look like "O5A" for example. The microcontroller would parse the command and output the value of "5A" to the port. You should have the controller echo the characters as they are received back to the PC. Quote:
__________________ "Having to do with Motion Control" | ||||
| |
| | #3 | |
|
ok... further quetions, if you won't mind... ops: -how would proper synchronization go about? are equal baud rates enough for proper synchronization? -please correct me if i am wrong... hyperterminal simply sends out the character once it has been type on the screen right? i mean it does not wait for the <enter> key to be pressed for the characters to be sent... right? - how would character translation go about in hyperterm? what i mean is if i send data to my pc, how would hyperterm interpret it such that this will be displayed (including the carriage return): Quote:
if there are additional information/url/books/downloadable files, i would gladly appreciate it... (i hope its not too much) i am just interested in doing this during spare time :roll: in other words its just something to play with and at the same time learn :roll: | ||
| |
| | #4 |
|
Hyper terminal does use ascii. You just send the ascii codes for all the letter you want. For the cariage return you need to send the carriage return character and the line feed character. Try just having the 8051 echo the characters you type in hyper terminal; the contrroller just sends back the same character that it receives. This is a good way to get you r communication up and running before you do anything more complicated. www.8052.com probably has some examples for this sort of stuff. Brent | |
| |
| | #5 | |||
| Quote:
example: "9600, 8N1" means 9600baud, 8 data bits + 1 stop bit, no parity bit. Quote:
Quote:
__________________ "Having to do with Motion Control" | ||||
| |
| | #6 |
|
another question.... ops: how does hyperterm send the characters? decimal or hex? what are the other terminal softwares for windows xp? | |
| |
| | #7 | |
| Quote:
You could say it is 65, or 0x41, or a character 'A'. | ||
| |
| | #8 | |
| Quote:
and also tell me it the data at the hyper terminal and the data at the serial port are same Plzzzzzz reply me as soon as possible | ||
| |
| | #9 |
|
pleas helpe me know how to interface quadrature encoder to 8051 microcontroller and how to over com the noise that affect the perfomance of the encoder
| |
| |
|
| Thread Tools | |
| Display Modes | |
| |