Discussion in "8051 Discussion Forum" started by    raj    Mar 25, 2009.
Wed Mar 25 2009, 01:07 PM
#1
#include<reg51.h>
void main(void)

{
unsigned char ch;
SCON = 0x50;

TMOD=0x20;
TH1 = 0xFD; TR1 = 1;
while(1)
{
while(RI==0);
ch=SBUF;
ACC=ch;
P1=ACC;
RI=0;
}
}






Please tell me how to simulate this program on keil?

its a program to serially recieve data and put on the recieved data on port
Wed Mar 25 2009, 01:59 PM
#2
read this file and exexute ur codes this will help u to learn the keil software and to see whther ur program has error or not
Attachment
Wed Mar 25 2009, 10:44 PM
#3
to debug serial code:

first enter into debug mode go to Debug -> select first option (start/stop debug session)



now after you enter debug mode, select serial window to open virtual serial window where you can see your o/p.



Make sure keil is not that efficient for debugging serial code, sometimes it shows o/p even if serial port is configured wrong. but most of cases its fine checking your code.
Tags debugging in keiluart simulation in keil microvisionserial communication keil

Get Social

Information

Powered by e107 Forum System

Conversation

Sun May 09 2021, 07:47 AM
Billy
Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically tweet my newest twitter updates. I've been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates. online casino https://casinogamesvol.com
Sun May 09 2021, 02:09 AM
Douglas
Saved as a favorite, I like your web site! Casino Online Slots https://casinorealmoneyai.com
Sun May 09 2021, 12:05 AM
Elwood
Hi, i read your blog from time to time and i own a similar one and i was just wondering if you get a lot of spam responses? If so how do you protect against it, any plugin or anything you can suggest? I get so much lately it's driving me insane so any assistance is very much appreciated. Online casinos https://freecasinoslotsmatic.com
Sat May 08 2021, 09:48 PM
Beatris
I'm really loving the theme/design of your site. Do you ever run into any browser compatibility problems? A number of my blog readers have complained about my blog not working correctly in Explorer but looks great in Safari. Do you have any recommendations to help fix this issue? online slots https://playslotstime.com
Sat May 08 2021, 09:35 PM
Hermelinda
It is not my first time to pay a quick visit this web page, i am visiting this web site dailly and get nice facts from here every day. online casino https://playcasinoslotsmatic.com

Downloads

Comments

Mirza123
Thu Jun 25 2020, 03:46 PM
eunicelove124
Mon Jun 22 2020, 03:03 PM
cerouno
Tue Jun 16 2020, 05:10 PM
Marce
Sat Jun 13 2020, 09:43 PM
Davidthils
Thu May 21 2020, 12:44 PM
Jakeror
Thu May 21 2020, 01:28 AM
motorCar
Wed May 20 2020, 07:05 PM
Vordrync
Wed May 20 2020, 11:52 AM

Online

Guests: 77, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38215
Newest member: Mirza123