LeoStar
Member level 2
- Joined
- Nov 19, 2014
- Messages
- 50
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 6
- Activity points
- 500
Please post circuit and also zip and post your project files.
Clearly a software problem, unrelated to the recent topic of this thread.It is acting moodily, sometimes it receives and sometimes not. Sometimes it displays the character twice or thrice and then clears the screen.
Code dot - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 char arr[]="B.Tech\n\r"; char arr2[]="ECE\n\r"; void main() { int i,j; spbrg=0x19; /*or 6*/ rcsta.spen=1; txsta=0x24; while(1) { /*for displaying one time remove while*/ for(i=0;i<=7;i++) {delay_ms(10); Txreg=arr[i]; while(pir1.txif==0); } for(j=0;j<=4;j++) { delay_ms(10); Txreg=arr2[j]; while(pir1.txif==0); } delay_ms(1000); delay_ms(1000); delay_ms(1000); while(1); } }
Code C - [expand] 1 TRISC = (TRISC & 0x3F) | 0x80;
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?