??? 07/04/06 09:12 Read: times |
#119606 - Debouncing with an 8051 of 16 I/O pins |
Hello guys.
As some of you know, I am working on DAQ system that reads things from 64 input relays. I searched for debouncing techniques here for quite some time. And I think that the easiest (of the inexpensive) technique is writing a debouncing program in a separate 8051 and make it into just a debouncer chip. It is more economic than the commercially available debounces (like max6818, which is not even readily available here in India) and does not take away processing speed from the main chip. I need to interface 8x8 input lines with one input port of an 89C51. So I want to debounce a set of 8 lines each using one additional “Debouncer-Microcontroller” and send each set into a separate latch (74ls373) so I can selectively receive inputs only from one latch at a time. But being the uninformed enthusiast that I am, I am unable to find an 8051 based chip that has 16 I/O lines in 2 ports. I found that an AT89C2051 has on 15 programmable I/O lines. So I have a few questions: 1. Is there an inexpensive 8051 based Microcontroller with 16 I\O lines (i.e. 2 ports) to serve my purpose of a “Debouncer-Microcontroller”? 2. Is it necessary to use a latch? Or is there a technique to forego the latch? Also any other ideas of solving my problem are welcome. |