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.

uart program for aduc7026

Status
Not open for further replies.

satishreddy

Newbie level 4
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top