seems you forgot to add external pull-ups....
i don't know wich pic you are using but try
OPTION_REG.7=0
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.
Hello Steve,
Any idea in getting your code to work (compile) with PM. ?
That would be a big help.
thank you for the shareing the code.
regards
Nope, i have no idea and no plan to do it.
I NEVER use PM, it really don't worth to use it anyways... sorry![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks