Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Serial comm between uC and PC...

Status
Not open for further replies.
anyway, i have figure out the main cause of problem it was wrong parameter mention on usb module as i said when i short both terminal it work after that i have removed the rx wire from uC and changed tx to tx pin of usb module then it work fine there is no error..............
 
First start the debugger.
first.png
Choose MPSim
The output window gains a tab..
second.png
Then go back to the debugger menu and "Settings" is at the bottom.
third.png

Finally open the UART I/O tab.
forth.png

Now you can choose a register injection file to use for input ( The serial.txt file is in the zip file )
And choose output to window.

NOTICE** The stimulus file has "wait" parameters as the input is FAR too fast for serial polling...
 
Hi,

I am working more on UART passing string and not suck with if cond to do a task......
the problem is that when any key is press it work not follow the cond , why??
Code:
if(ch=='a');
{

f =  'a' ;
     HSerout(f);
__delay_ms(250);
 
Hi,

I am working more on UART passing string and not suck with if cond to do a task......
the problem is that when any key is press it work not follow the cond , why??
Code:
if(ch=='a');
{

f =  'a' ;
     HSerout(f);
__delay_ms(250);

Can you re-phrase this, I don't understand your problem...
 
Can you re-phrase this, I don't understand your problem...

OK, I am trying to make condition based transmission from let say if 'A' is pressed in keyboard it wil show "jhdghgk" and if 'B' is pressed it should show "kjyhjkdqwefjgtjk" like this....
but the problem is that when i do this on pressing any of key it work but it should match the key to condition then it should show the result this is what i am asking...
 
[MODNOTE]Deleted Off Topic[/MODNOTE]
 
Last edited by a moderator:
[MODNOTE]Deleted Off Topic[/MODNOTE]
 
Last edited by a moderator:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top