the file keypad.txt not download ... error in forum server
need the file to text my keypad code
can i help me?
the file keypad.txt not download ... error in forum server
need the file to text my keypad code
can i help me?
seems to be a server problem since this morning (october 18/2006)
drop me your e-mail address on my PM.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
keypad complied 100%,
but in terminal i receive many keys without press any key
my test:
Code:Include "modedefs.bas" INCLUDE "KeyPad.bas" DEFINE KEYPAD_ROW 4 ' 4 ROW keypad DEFINE KEYPAD_ROW_PORT PORTB ' ROW port = PORTB DEFINE KEYPAD_ROW_BIT 4 ' ROW0 = PORTB.4 DEFINE KEYPAD_COL 3 ' 3 COL keypad DEFINE KEYPAD_COL_PORT PORTB ' COL port = PORTB DEFINE KEYPAD_COL_BIT 1 ' COL0 = PORTB.1 DEFINE KEYPAD_DEBOUNCEMS 200 ' debounce delay = 200 mSec DEFINE KEYPAD_AUTOREPEAT 0 ' use auto-repeat feature Serial_Saida Var PORTC.2 'Pic 13 - > Max232 10 myvar var byte Inicio: @ READKEYPAD _myvar Serout Serial_Saida, T2400, [#myvar, 13, 10] goto Inicio
Terrminal:
Code:Received: 15 Received: 15 Received: 1 Received: 3 Received: 15 Received: 15 Received: 3 Received: 2 Received: 3 ...... withou press any key
seems you forgot to add external pull-ups....
i don't know wich pic you are using but try
OPTION_REG.7=0
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
i use 16f628a with pull-ups ..... for test
in circuit row and col have voltage around 0,5 to 3,5v (oscillating ... i don't know why)
than i press one button, 2 pins have 0,0v
Hi. While testing Steve's routine, I get many fatal errors. The attached Screen Capture gives the state. Steve if you can have a look...
Includes are OK about names and paths.
Ioannis
Ioannis,
You have to compile with MPASM, not PM.
mpardinho,
You probably miswired something. with your exact program it works fine here. Also.. there's no PORTC on PIC16F628 but you should already know that.
i used this line for my config fuses
Did you tried with OPTION_REG.7=0 without resistor?Code:@ __CONFIG _INTRC_OSC_NOCLKOUT & _MCLRE_OFF & _LVP_OFF & _WDT_OFF & _PWRTE_ON & _BODEN_ON
wich value of pull-up?
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks