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

Sat Oct 24 2020, 11:19 PM
Rosalina
what is an outline of an essay https://essaywritinget.com - buying an essay online technology essays editing the essay where to buy essays comparative essay
Sat Oct 24 2020, 11:44 AM
Rene Derham
It’s only because he's a world-class copywriter, that he can hand you these done-for-you campaigns.
Thu Jun 11 2020, 06:27 AM
anudee
sir could please send the code for I2C and wifi interfacing with 8051
scena
Tue May 19 2020, 10:29 PM
Does anyone have microcontroller programming software for STC15F104W (core 8051, 4 k, 128 byte, 6 I/O pin, UART ... DIL8), that works?
Sat May 02 2020, 07:38 PM
Tamu Gurung
Hi I am looking for a assembly language program for a digital decimal counter. Time counts max limit of 2 mins starting from 2.00 mins and ending at 0.00. time is to be displayed on 4 7-segment LED displays. Edsim51 simulator to be used. Thanks
Wed Mar 25 2020, 01:39 PM
Tajammul
Sir kindly send the code file i2c for 8051
ExperimenterUK
Fri Mar 13 2020, 10:36 PM
@ Rohitnani,ABEBE..which project ?
Fri Mar 13 2020, 12:55 PM
ABEBE
how can get hadwere of this project
Rohitnani
Sat Mar 07 2020, 05:11 PM
Sir, Could you please send me the zip file input password....
Wed Feb 26 2020, 04:58 PM
Peter Parker
Is it possible to send multiple messages using only 1 GSM module?

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: 94, Members: 0 ...

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

Members: 38215
Newest member: Mirza123