Using a Micro PIC for Keypad Output with 16 Digits & 4 Bit Output

  • Thread starter Thread starter bigmikew
  • Start date Start date
  • Tags Tags
    Bit Micro Output
Click For Summary

Discussion Overview

The discussion revolves around the use of a PIC microcontroller for outputting binary numbers corresponding to key presses on a 16-digit keypad. Participants explore the suitability of different PIC models, programming languages, and the transition from HC11 assembly language.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant has successfully implemented keypad output using an HC11 and seeks advice on using a PIC microcontroller instead.
  • Another participant suggests the PIC16F88 as a suitable option due to its peripherals and capabilities, while noting the differences in architecture compared to the HC11.
  • There is a question about the similarity of PIC16 code to other programming languages like C or C++, and the learning curve associated with it.
  • A participant recommends the PIC18 series over the PIC16 series, suggesting it may be more cost-effective in the long run.
  • Concerns are raised about the number of I/O pins on the PIC16F88, with a suggestion to consider the PIC16F877 for more I/O options.
  • It is noted that there is no known utility for converting HC11 assembly code to PIC assembly code.

Areas of Agreement / Disagreement

Participants express differing opinions on which PIC model is best suited for the task, with no consensus reached on a single recommendation. There is also uncertainty regarding the programming language and the availability of conversion tools.

Contextual Notes

Participants mention the need to assess I/O pin requirements and the potential obsolescence of certain PIC models, indicating that specific project needs may influence the choice of microcontroller.

Who May Find This Useful

This discussion may be useful for individuals interested in microcontroller applications, particularly those transitioning from HC11 to PIC microcontrollers for keypad interfacing projects.

bigmikew
Messages
2
Reaction score
0
What I need is that when a certain key (on a keypad) is pressed it would output a corresponding binary number. I have completed this with an HC11 in assembly language. My professor says that the HC11 is over kill and that a micro pic would do this for little money. I am new to micro pics and not sure how I would go about doing this. Which pic would be right for me? Is there a converter from Assembly to “whatever language” the pic uses? Any info would be greatly appreciated.
a standard 16 digit key pad will be used, and 4 bit output would be sufficient.
 
Engineering news on Phys.org
The PIC microcontroller <spit> from Microchip uses, oddly enough, PIC assembler.

It has an architecture rather different from the HC11.

Microchip supply a free download of MPLAB (can be found on their site) which allows you to develop and simulate PIC programs.

PICs come in a wide & confusing variety of shapes & sizes, from the PIC12, through PIC16, PIC17, PIC18 and PIC24.

For your purposes one of the PIC16 range, such as the PIC16F88 would do the job, since it has a lot of peripherals, including a serial i/f.

So far as I'm aware, there's no utility for converting HC11 code to PIC16 code...
 
Thanks for the reply, is the PIC16 code simular to any other. i.e. C, C++... Also, is it hard to learn. I would need a parallel output. Would this PIC16F88 do this? anyother info would be great.
 
I would go with the 18f series because they are on the way to obsoleting the 16f series and I suspect in the end are actually more inexpensive to buy. The Microchip compiler uses ANSI C I believe.
 
Maybe I should have made it clearer: so far as I know there is no utility for converting HC11 assembler to PIC assembler.

PIC16F88 has a maximum of 16 i/o pins. You would have to determine if that is sufficient for your needs.

Otherwise use a PIC with more i/o, such as the PIC16F877.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
7K
Replies
7
Views
4K
  • · Replies 6 ·
Replies
6
Views
7K
Replies
7
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K