Jump to content
  • 0

Pic32mx7, Keyboard, LCD, Code


DanielSan

Question

Hi everyone,

Could somebady give me a Little help... I have a Chipkit 32mX7... Im trying to do some programs to learn the use of this dispositive, could help me with a code in C to do the next program...

I have the keyboard 4x4 and a PmodCLP (LCD) so i want to do the next activity:

when i pulse 1 on the keyboard I want to display 1 on the LCD.. So could you help me with this?

How need to be the code wiith the ports, the delays and that..

Thanks....

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Hello,

Please take a look on the board's name. Is it  Cerebot 32mX7 http://store.digilentinc.com/cerebot-32mx7-retired/ or Cerebot 32mX7cK http://store.digilentinc.com/cerebot-mx7ck-retired/ ?

In both cases, the approach is similar. You should read the board's reference manual and identify the IO pins where Pmods are connected.

I am attaching here a kind of MPLABX library for CLP. You have to edit the ClpLib_config.h and define the proper IO pins for your board.

Regarding the keyboard, please take a look on https://reference.digilentinc.com/pmod:pmod:KYPD. There you will find examples of using the keyboard (just in MPIDE, unfortunately, but you can learn how to do it, it's not very difficult).

Good luck !

CLPLib.zip

Link to comment
Share on other sites

6 hours ago, Cristian.Fatu said:

Hello,

Please take a look on the board's name. Is it  Cerebot 32mX7 http://store.digilentinc.com/cerebot-32mx7-retired/ or Cerebot 32mX7cK http://store.digilentinc.com/cerebot-mx7ck-retired/ ?

In both cases, the approach is similar. You should read the board's reference manual and identify the IO pins where Pmods are connected.

I am attaching here a kind of MPLABX library for CLP. You have to edit the ClpLib_config.h and define the proper IO pins for your board.

Regarding the keyboard, please take a look on https://reference.digilentinc.com/pmod:pmod:KYPD. There you will find examples of using the keyboard (just in MPIDE, unfortunately, but you can learn how to do it, it's not very difficult).

Good luck !

CLPLib.zip

Maybe, could you help me with the programmation on C? 

Link to comment
Share on other sites

Briefly, this is what you have to do:

- start MPLABX

- create a new project, entering precisely the microcontroller your board has (see reference manual)

- copy the files I sent you in the project folder and add them to project (add existing items)

- edit ClpLib_config.h so that the definitions match with the pins (see reference manual, there is a table at the end)

- include in your functions (main, for example) calls to CLP functions

Good luck.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...