Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Thank you- I finally understand! My University example was totally throwing me off, as they had Initialized both rows on PORTC throughout. It finally works- albiet, a bit buggy, but I think that's something to do with needing to debounce. Anyway, here's my code (this is called in a main...
Ok, so I'm still aboslutely stumped! I've had a go at coding something from what's been discussed, however, it's not working. Let me show you my thought process!
First of, my (what is essentially a 2x2 keypad) scanning method is to return a BYTE representation of the key pressed, which is...
I did start with Defining TRISC = 0x3; and PORTC = 0xC;, then in the "readkeypad()" method that would return the lowest nibble on PORTC, defined as simply as return PORTC & TRISC; .This has allowed me to stay within my restrictions and use RC2 and RC3 as outputs (please correct me if I'm wrong...
I'm new to PIC Microcontrollers & C programming and I've been set the task of creating my own Keypad scanning method that works exclusively on Port C (16F877A Microcontroller). Specifically, the program that uses this method only uses digits 1, 2, 4 and 5- so to be efficient, the scanner method...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.