uart program for aduc7026

Status
Not open for further replies.

satishreddy

Newbie level 4
Joined
Jul 18, 2012
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,331
hello,
iam trying to communicate on hyperterminal from aduc7026 board but iam receiving some bad character on hyper terminal.SO PLEASE help me to come out of problem.program is shown below

#include<aduc7026.h>
void init_uart(void);
int main()
{
static int i;
unsigned char c[]="HELLO";
init_uart();
for(i=0;i<5;i++)
{
while((COMSTA & TEMT)==0)
COMTX=c;
}

void init_uart(void);
{
COMCON=0x80;
COMDIV0=0x93;
COMDIV1=0x00;
COMCON=0x03:
}
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…