Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

virtual terminal in proteus

Status
Not open for further replies.

Shafaq Gul

Junior Member level 1
Joined
Dec 24, 2013
Messages
18
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
122
Hi!
I am using pic18f4455 and am sending some characters to virtual terminal in proteus but they are displayed continuoully:?:(have used a loop to send specific characters )....looking for help.
 

After you loop completes it is restarted either due to while(1) loop or WDT. WDT might be resetting the processor. In Proteus double click MCU and in the drop down list box select "Enable Watch Dog Timer" and set its value to No.
 

After you loop completes it is restarted either due to while(1) loop or WDT. WDT might be resetting the processor. In Proteus double click MCU and in the drop down list box select "Enable Watch Dog Timer" and set its value to No.

Hi!
I have tried that but its not working:cry:
a part of my code is:


Code C - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
for( w=0;w<17;w++)
{
m=0;
m=buf[w];
t=m+0x31;
TXREG=t;
while(PIR1bits.TXIF==0);//wait until all transmitted.
PIR1bits.TXIF=0;
//if(w==15)
//{ 
//TXSTAbits.TXEN=0;
//TXREG=0;
//break;
//}
 
if(buf[16]=='\0')
{
TXSTAbits.TXEN=0;
break;
 
}
}

 
Last edited by a moderator:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top