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

Sending Keyboard input to LCD

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







Sending Keyboard input to LCD
PostPosted: Fri Apr 02, 2004 7:57 am     Reply with quote

Hi guys, Ive searched the forum but couldnt find any help on this so i thought i'ld post up my problem!!!

Basically ive connected my PICDEM 2 PLUS Board to my pc, and am wanting to send whatever i input on the keyboard to the LCD on the demo board.

I have sent strings to the LCD, so i know it is working ok(correct driver), its just that when i send the input from the keybpard to the LCD the output is random symbols, eg: when i type in A, the LCD displays $.

Anyone help me on what im doing wrong?

Heres my Code:
Code:



char key;

void main() {

   setup_adc_ports(NO_ANALOGS);
   setup_adc(ADC_OFF);
   setup_psp(PSP_DISABLED);
   setup_spi(FALSE);
   setup_wdt(WDT_OFF);
   setup_timer_0(RTCC_INTERNAL);
   setup_timer_1(T1_DISABLED);
   setup_timer_2(T2_DISABLED,0,1);
   setup_timer_3(T3_DISABLED|T3_DIV_BY_1);
   lcd_init();

do{

   printf("Press any key to continue");
   key=getc();
   printf(lcd_putc,key);
 
  }while(TRUE);

}

Guest








PostPosted: Fri Apr 02, 2004 8:28 am     Reply with quote

Its ok ive just realised ive got to have some format code where my printf is!
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