Shinnster
Member level 4
- Joined
- Sep 15, 2009
- Messages
- 70
- Helped
- 1
- Reputation
- 2
- Reaction score
- 0
- Trophy points
- 1,286
- Location
- Malaysia
- Activity points
- 1,800
keypad 4x3
I am using a Basic to program.
I will describe my problems:
1) When I try to "Print" or "LCDOUT" a decimal, it will convert to HEX value and then "referring to LCD character table" supposed to display something? say like 6...
BUT my LCD would display something I can't understand on the first character or display (first small box I guess) and then only the outcome you want...
Any idea?
PIC16F84A has extremely limited space, so I basically had not enough spots to use my keypad of 4X4 so I did not connect one of the Columns to make it a 4X3. Reason: One of the pins are used for Enable (E) for LCD. *This is PORTB*
For PORTA, Pin 0 to 3 are D4-D7 (LCD) and Pin 4 is Register Select (RS).
R/W is connected to ground to make it read from PIC.
I am not sure if it is the LCD problem or Keypad.
The program works okay IF I use:
Print AT 1,1,"6" or something like that along the lines, anyway the point is, without 'at 1,1,...' it would show rubbish for the first box then only ur result..
I have been trying to make it display my keypad while holding a key so it would display something like "1111111111111111" but I don't know, it just prints out rubbish...
Any ideas?
I am using a Basic to program.
I will describe my problems:
1) When I try to "Print" or "LCDOUT" a decimal, it will convert to HEX value and then "referring to LCD character table" supposed to display something? say like 6...
BUT my LCD would display something I can't understand on the first character or display (first small box I guess) and then only the outcome you want...
Any idea?
PIC16F84A has extremely limited space, so I basically had not enough spots to use my keypad of 4X4 so I did not connect one of the Columns to make it a 4X3. Reason: One of the pins are used for Enable (E) for LCD. *This is PORTB*
For PORTA, Pin 0 to 3 are D4-D7 (LCD) and Pin 4 is Register Select (RS).
R/W is connected to ground to make it read from PIC.
I am not sure if it is the LCD problem or Keypad.
The program works okay IF I use:
Print AT 1,1,"6" or something like that along the lines, anyway the point is, without 'at 1,1,...' it would show rubbish for the first box then only ur result..
I have been trying to make it display my keypad while holding a key so it would display something like "1111111111111111" but I don't know, it just prints out rubbish...
Any ideas?