HELLO need help
i am a bit beginner with mikroebasic pro for pic32
i made my own development board with lcd display
actually i made a little clock prog which display time an date
thats run fine, but now i would add a 4x4 keypad using the mikroe library (using exactly schemas and prog) given on mikroelibrary and it is there where begin troubles : thats dont work correctly.
in fact i think i misunderstand the usage principle of libraries
i tried all combination possible unsuccessfully
please could you tell me where to found the users notices about library usage
or maybe give me the good explanation ?
thanks by advance
jyb
USING 4x4 KEYPAD LIBRARY WITH PIC32M795F512L
- darko.ilijevski
- Posts: 581
- Joined: 21 Mar 2017 16:57
Re: USING 4x4 KEYPAD LIBRARY WITH PIC32M795F512L
Hello,
I need to ask you - what kind of troubles did you run into ? Do you have troubles with the installation of the libraries, or you have troubles using them in code ? Do you have trouble getting help and syntax for them ? Please provide us with more info.
Best regards.
I need to ask you - what kind of troubles did you run into ? Do you have troubles with the installation of the libraries, or you have troubles using them in code ? Do you have trouble getting help and syntax for them ? Please provide us with more info.
Best regards.
BR,
Darko
Darko
Re: USING 4x4 KEYPAD LIBRARY WITH PIC32M795F512L
hello Darko
as i said previously, i use the exact schemas and prog given in mikroe pic32library (using port D)
keypad used is a simple matrix of switches
i tryed with sub functions keypad_key_click and with keypad_key_press
i run the prog and i put a (200mhz) scope's probe on each row and each line of the keypad and flat signal , no moving
i tryed with another pic32M795F512L and get same bad result
i think maybe parameters missing which validate portd bus
finaly i wrote my own keypad routine and always same result :no movings on portd
i am going to eat my hat !!!
note: usually on my own schemas i put pullups to vcc on each inputs row and selected lines outputs a 0v
it's not the case there...
thanks a lot for your attention
jyb
as i said previously, i use the exact schemas and prog given in mikroe pic32library (using port D)
keypad used is a simple matrix of switches
i tryed with sub functions keypad_key_click and with keypad_key_press
i run the prog and i put a (200mhz) scope's probe on each row and each line of the keypad and flat signal , no moving
i tryed with another pic32M795F512L and get same bad result
i think maybe parameters missing which validate portd bus
finaly i wrote my own keypad routine and always same result :no movings on portd
i am going to eat my hat !!!
note: usually on my own schemas i put pullups to vcc on each inputs row and selected lines outputs a 0v
it's not the case there...
thanks a lot for your attention
jyb
- darko.ilijevski
- Posts: 581
- Joined: 21 Mar 2017 16:57
Re: USING 4x4 KEYPAD LIBRARY WITH PIC32M795F512L
Hello,
Let's see if I understood this time: you want to connect some keyboard muxed with 4x4 wires, and use keypad4x4 library. You need some instruction, right ?
You can click your mouse on the library in the Library Manager window and with the cursor on the Keypad4x4 title, you need to press F1. It will open a help page.
On that help page, you can see all the documentation about this library and if you scroll to the bottom, you'll see a chunk of code example and even the wiring schematics.
You also need to use Keypad_Init(); function, before you do anything with that function.
On the start of your code, you NEED to define the correct ports where the function expects connections :
It's all in that example.
I hope I've got it now
Good luck and best regards.
Let's see if I understood this time: you want to connect some keyboard muxed with 4x4 wires, and use keypad4x4 library. You need some instruction, right ?
You can click your mouse on the library in the Library Manager window and with the cursor on the Keypad4x4 title, you need to press F1. It will open a help page.
On that help page, you can see all the documentation about this library and if you scroll to the bottom, you'll see a chunk of code example and even the wiring schematics.
You also need to use Keypad_Init(); function, before you do anything with that function.
On the start of your code, you NEED to define the correct ports where the function expects connections :
Code: Select all
// Keypad module connections
unsigned long keypadPort at PORTD;
unsigned long keypadPort_Direction at TRISD;
// End Keypad module connections
I hope I've got it now
Good luck and best regards.
BR,
Darko
Darko