YUP, that's what happen when you don't check the spelling of your DEFINEs. DEFINEs are case sensitive. So PORTb have to be written PORTB, and so on with all others.
YUP, that's what happen when you don't check the spelling of your DEFINEs. DEFINEs are case sensitive. So PORTb have to be written PORTB, and so on with all others.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Cheers, so any clues as to whats wrong now? i dont get any reaction on the LCD and i get several ports flash high then low
well...
looking at your schematic bellowCode:DEFINE KEYPAD_ROW 8 ' 8 row define KEYPAD_ROW_PORT PORTc ' on PORTB DEFINE KEYPAD_ROW_BIT 0 ' <7:0> DEFINE KEYPAD_COL 4 ' 4 col DEFINE KEYPAD_COL_PORT PORTc ' on PORTA DEFINE KEYPAD_COL_BIT 0 ' <3:0>
There's some problems there for sure... You don't use a 8X4 keypad
Code:DEFINE KEYPAD_ROW 4 DEFINE KEYPAD_ROW_PORT PORTC DEFINE KEYPAD_ROW_BIT 0 DEFINE KEYPAD_COL 3 DEFINE KEYPAD_COL_PORT PORTC DEFINE KEYPAD_COL_BIT 4
Last edited by mister_e; - 20th November 2008 at 18:58.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Thanks yet again mister_e! You should move in with me, that way i wouldnt have to use the net to bother yo every other day
and yes i put the dec2 myvar on the lcdout command so all works now
time to play with it some more!
Bookmarks