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 wirless comuniction module

Status
Not open for further replies.
ya .. i do not use any encoder and decoder i think that is the problem
 

you dont post the circuit when asking for help and just go round and round... thats not fair.... you should better learn how to ask help properly....
 

it's circuit is simple so i did not draw

---------- Post added at 20:16 ---------- Previous post was at 20:15 ----------



---------- Post added at 20:21 ---------- Previous post was at 20:16 ----------

#include<lpc21xx.h>

void delay()
{
int j;
for(j=0;j<2600;j++);
}

void delay2()
{
int r;
for(r=0;r<882600;r++);
}

void command(int a)
{
IOSET1=a<<16;
IOSET1=0X02000000|IOSET1;
delay();
IOCLR1=0X02000000;
IOCLR1=0XFFFF0000;
}

void data1(char val)
{
IOSET1=val<<16;
IOSET1=0X03000000|IOSET1;
delay();
IOCLR1=0X02000000;
IOCLR1=0XFFFF0000;
}

void lcd_init()
{
int a;
IODIR1=0XFFFF0000;
a=0x38;
command(a);
delay();
a=0x0c;
command(a);
delay();
a=0x01;
command(a);
delay();
a=0x06;
command(a);
delay();
a=0x80;
command(a);
delay();
}

int main()
{
int b=0;
char ch;
PINSEL0=0X00000004;
VPBDIV=0X01;
U0LCR=0X83;
U0DLL=0X86;
U0DLM=0X01;
U0LCR=U0LCR&0X03;
lcd_init();
while(1)
{
while (!(U0LSR&0x01));
ch=U0RBR;
if (b==16)
{
lcd_init();
b=0;
}
data1(ch);
b++;

}
return(0);
}

---------- Post added at 20:36 ---------- Previous post was at 20:21 ----------

Hobby Robotics » Cheap Arduino Wireless Communications please check this link also
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top