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 CCS Technical Support

ccs rev 9 prototyping board help
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Ttelmah



Joined: 11 Mar 2010
Posts: 19515

View user's profile Send private message

PostPosted: Sun Jan 16, 2011 4:40 am     Reply with quote

If you look at the notes about the Ace kit, it refers to the keyboard header 'connecting to port B'. Hence it is almost certainly designed to use the internal 'resistors' in the PIC (current sources really, but serving the same purpose here). You will need the line 'port_b_pullups(TRUE)', to turn these on.

Best Wishes
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Jan 16, 2011 3:20 pm     Reply with quote

Ttelmah has established that the ACE kit uses PortB for the keypad.
To make it work, add the following modifications to your program,
as shown below in bold. The new lines in should be placed in the
exact locations shown below:
Quote:

#include "flex_lcd.c"

#define use_portb_kbd TRUE
#include <kbd.c>

void main() {
char c;

port_b_pullups(TRUE);

lcd_init();
kbd_init();
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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