Apr 10, 2011 #21 ajeesh Member level 3 Joined Mar 19, 2009 Messages 65 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,286 Location india Activity points 1,674 ya .. i do not use any encoder and decoder i think that is the problem
Apr 10, 2011 #22 ckshivaram Advanced Member level 6 Joined Apr 21, 2008 Messages 5,060 Helped 2,150 Reputation 4,306 Reaction score 2,088 Trophy points 1,403 Location villingen (Germany) / Bangalore Activity points 30,087 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....
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....
Apr 10, 2011 #23 ajeesh Member level 3 Joined Mar 19, 2009 Messages 65 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,286 Location india Activity points 1,674 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
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