I have written an assembler program as per the PDF Keyboard Assembly Strategy on Matrixmultimedia website and only the first two keys for each column work i.e. 1, 4 or 2, 5 etc.
I Set portB bit 0 and clear portB bits 1 and 2, then test using BTFSS PORTB,4 then 5,6 ,7 and if any are on output a number to PORTA but only 1 and 4 are working. I have tried two keyboard boards and happens on both.
will not work when testing BTFSS PORTB,6 or bit 7. The strange thing is it works fine with VPIC !!
using the supplied PIC16F88
Changed the chip to a 16F84 and it works fine. Is there a setting i need changing? i had Listed that the chip was 16F88 and in the settings.
Am i missing something?
Getting Keypad EB014 working with Assembler
-
- Posts: 18
- Joined: Mon Oct 21, 2013 3:07 pm
- Been thanked: 1 time
- Contact:
-
- Posts: 18
- Joined: Mon Oct 21, 2013 3:07 pm
- Been thanked: 1 time
- Contact:
Re: Getting Keypad EB014 working with Assembler
After reading the datasheet for the PIC16F88 realised i hadn't set PORTA bits as digital inputs not analogue or CCP inputs, which isn't an issue with the PIC16F84.
All working now.
All working now.