[SOLVED] Send data from Matlab to 8051 using proteus simulation.

Status
Not open for further replies.
oh thanks a lot!! Btw how did u send data serially? That code u ran once.?. i ll be typing everytime in command window.So asked. I see you didnt use that serial port emulator?
 

I sent "hello" from code. I didn't send it through VT or matlab or COM port. If you want to send data to mcu you can send it from VT.
 

Oh ya max232 output will be inverted.So if i have to send data serially from matlab.Say HELLO from matlab.. Does the max232 connection change? Like T1In should be given to COMPIM txd?..should i have to send ascii values from matlab?...What are the changes
 
Last edited:

No i tried..IF i send from matlab.. i get data only from COMPIM . Not after max232. I am missing Something.. Should i send 0x41 for A in matlab to display the value ?
 
Last edited:

Hey i have sent ABCDE serially from microcontroller. But receiving some unknown characters in hyperterminal.Baudrate,parity,stop bits all are configured properly in hyperterminal as well as COMPIM.. ANd even 8051 has 9600 baudrate..
 

I have attached code.Hyperterminal will be start->prog->accessories--> communciations->Hyperterminal in windows!. Getting wierd characters but data is being sent i guess.Please connect TXD AND RXD pins of compim to the max232 if i left
 

Attachments

  • eda v2.rar
    71.1 KB · Views: 90

Do not use MAX232 in Proteus, in conjunction with the COMPIM. It uses digital ('TTL') levels like the Virtual Terminal, while transforms the phisical port to a virtual port.
 

yes. In proteus only.The hello world is in code itself.that i m sending to hyperterminal.Simulating in proteus
 

That works without max232 .But i want to implement it in real world too.So max232 shud be der rite?,
 

hi, fprintf instruction send text not binary data check fwrite instruction

- - - Updated - - -

hi, fprintf instruction send text not binary data check fwrite instruction
 

This circuit worked!!! I just added two inverters in between max232 and compim!
 
Reactions: Crysta_Oman

    Crysta_Oman

    Points: 2
    Helpful Answer Positive Rating
    V

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…