CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

help!!LCD and keypad + application

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
marcuslim
Guest







help!!LCD and keypad + application
PostPosted: Wed Sep 11, 2002 11:32 am     Reply with quote

i have done a simple transceiver to transmit the data keyed in by keypad, i have test and comfirm that my transceiver is working and the other part lcd + the keypad also work properly.
but when i combine the tranceiver to the lcd and keypad ,the transceiver part is not working
i'm using 16C76 with portb used for keypad and the lcd and the port A and C for transciver
the code shows in below

void main(void) // Main function
{ char k;
int i=0;
int t=0;
lcd_init();
kbd_init();



lcd_putc("\fPress # to Enter...\n");
while(TRUE)

{ k=kbd_getc();
if(k!=0)
if(k=='*')
{lcd_putc('\f');
strcpy(security_code,empty);
}
else
{ lcd_putc(k);
security_code [i]=k;
i++;
if (k=='#')
{lcd_putc(k);
break;}
}
}
lcd_putc("\fverify...\n");
for (t=0;t<4;t++)
lcd_putc(security_code [t]);
lcd_putc(" start..");
while(TRUE){
int_rpc(); //initial transciever
strcpy(buff,"911");
transmit();
delay_ms(30);
receive(); //////program discontinue from this part
delay_ms(50);
if (buff[2]=='2')
{strcpy(buff,"");
lcd_putc("\fbreak...\n");
break;}

}

delay_ms(30);


}

any body can help or face a similar problem before??halp
thank,
sorry for poor english
___________________________
This message was ported from CCS's old forum
Original Post ID: 7037
alert
Guest







Re: help!!LCD and keypad + application
PostPosted: Thu Sep 12, 2002 8:04 am     Reply with quote

sorry for my poor english too.
i have not read your code completely. you saying im using transceiver so that means any other receiver or transceiver present. close distance causes interference. i was worked on similar project. (two transceiver) first i think problem cause by MCU but than i see this problem.

good work.

:=
:=i have done a simple transceiver to transmit the data keyed in by keypad, i have test and comfirm that my transceiver is working and the other part lcd + the keypad also work properly.
:=but when i combine the tranceiver to the lcd and keypad ,the transceiver part is not working
:=i'm using 16C76 with portb used for keypad and the lcd and the port A and C for transciver
:=the code shows in below
:=
:=void main(void) // Main function
:={ char k;
:= int i=0;
:= int t=0;
:= lcd_init();
:= kbd_init();
:=
:=
:=
:= lcd_putc("\fPress # to Enter...\n");
:=while(TRUE)
:=
:= { k=kbd_getc();
:= if(k!=0)
:= if(k=='*')
:= {lcd_putc('\f');
:= strcpy(security_code,empty);
:= }
:= else
:= { lcd_putc(k);
:= security_code [i]=k;
:= i++;
:= if (k=='#')
:= {lcd_putc(k);
:= break;}
:= }
:= }
:= lcd_putc("\fverify...\n");
:= for (t=0;t<4;t++)
:= lcd_putc(security_code [t]);
:= lcd_putc(" start..");
:=while(TRUE){
:= int_rpc(); //initial transciever
:= strcpy(buff,"911");
:= transmit();
:= delay_ms(30);
:= receive(); //////program discontinue from this part
:= delay_ms(50);
:= if (buff[2]=='2')
:= {strcpy(buff,"");
:= lcd_putc("\fbreak...\n");
:= break;}
:=
:= }
:=
:=delay_ms(30);
:=
:=
:=}
:=
:=any body can help or face a similar problem before??halp
:=thank,
:=sorry for poor english
___________________________
This message was ported from CCS's old forum
Original Post ID: 7058
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group