Preview

Keypad

Powerful Essays
Open Document
Open Document
3427 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Keypad
AVR240: 4 x 4 Keypad - Wake-up on Keypress
Features
• • • • • • • • 16 Key Pushbutton Pad in 4 x 4 Matrix Very Low Power Consumption AVR in Sleep Mode and Wakes Up on Keypress Minimum External Components ESD Protection Included if Necessary Efficient Code Complete Program Included for AT90S1200 Suitable for Any AVR MCU

8-bit Microcontrollers Application Note

PRELIMINARY

1 Introduction
This application note describes a simple interface to a 4 x 4 keypad designed for low power battery operation. The AVR spends most of its time in Power-down mode, waking up when a key is pressed to instigate a simple test program that flashes one of two LEDs according to the key pressed. If “0” (zero) is pressed the RED LED flashes 10 times. All other keys flash the GREEN LED the number of times marked on the key (e.g., if “C” is pressed the GREEN LED flashes twelve times). Figure 1-1. Keypad and LED Connections
AT90S1200
R1 PB7 R2 PB6 R3 PB5 C1 C2 D1 R1 D2 R2 D3 R3 D4 R4 ALL 1N4148 1 4 7 A C3 2 5 8 0 C4 3 6 9 B F E D C R4 PB4 R5 PB3 R6 PB2 R7 PB1 R8 PB0 ALL 470Ω PD0 ALL 330Ω PD1 R9 PD2 R10 LED2 GREEN LED1 RED VCC

4 x 4 KEYPAD

Rev. 1232D-AVR-06/06

2 Theory of Operation
The keypad columns are connected to the high nibble of port B. The keypad rows are connected to the low nibble. Resistors R1 to R8 (this is shown in Figure 1-1) serve to limit input current to a safe level in the event of ESD from the keypad. They can be omitted in most applications. In the steady state condition the high nibble is configured as outputs and are in the low state. The low nibble is configured as inputs and has the internal pull-ups enabled, removing the need for external pull-up resistors. After initialization the AVR is put to sleep. When a key is pressed one of the diodes D1 - D4 pull down the external interrupt line PD2, which also has internal pull-ups enabled. This wakes up the AVR and causes it to run the interrupt service routine, which scans the keypad and calculates which

You May Also Find These Documents Helpful

  • Good Essays

    Nt1310 Unit 8 Assignment 1

    • 1415 Words
    • 6 Pages

    - The row of four push buttons visible in the photograph above allow the user to control music playback. One side of each button is connected to ground while the other connects to a GPIO pin on the microcontroller. A button press causes the appropriate microcontroller pin to read a low instead of a high, registering a possible button…

    • 1415 Words
    • 6 Pages
    Good Essays
  • Good Essays

    ● External Interrupts: 2 (interrupt 0), 3 (interrupt 1), 18 (interrupt 5), 19 (interrupt 4), 20 (interrupt 3), and 21 (interrupt 2). When there is a change in value, rising or falling edge or a low value the pins can be configured to trigger an interrupt.…

    • 558 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Many electrical devices are “event driven”. An event simply means an input or output. For example, a computer is programmed to respond to a mouse click, or a keyboard press. When this event (input) happens, an action (output) will occur, for example opening of a window, or text appearing on a word processor.…

    • 532 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    LWimberly Lesson 17

    • 569 Words
    • 5 Pages

    1. The 10-Key Numeric Keypad – [the table (box) is located below the instructions for the exercise.]…

    • 569 Words
    • 5 Pages
    Satisfactory Essays
  • Good Essays

    Each device is constructed with inexpensive electronic hardware and operates on software suitable for embedded systems with limited memory and computational power.…

    • 592 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    qwerr

    • 414 Words
    • 2 Pages

    In this chapter we will examine several aspects of data quality. We begin by distinguishing…

    • 414 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    This key holds several values that contain information about the system such as BIOS information…

    • 676 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Qty Part Number 4010-DKKF_434 2 1 1 1 1 1 1 1 1 1 2 1 2 1 5 1 1 1 1 1 1 1 2 1 4010-UBPB_434 MSC-DKPE1 Si4010-C2-GS 4010-DKPB434-BM 4313-DAPB_LB MSC-PLPB_1 MSC-BA5 MSC-BA4 EC3 MSC-DKCS5 CRD2032 MSC-DKSW1 4010-DKKF_868 4010-UBPB_868 MSC-DKPE1 Si4010-C2-GS 4010-DKPB868-BM 4313-DAPB_HB MSC-PLPB_2 MSC-BA5 MSC-BA4 EC3 MSC-DKCS5 CRD2032 MSC-DKSW1 Description Si4010 Key Fob Development Kit 434 MHz Si4010 key fob demo board 434 MHz w/o IC SOIC/MSOP socketed development board Si4010-C2-GS transmitter IC, SOIC Package Si4010 MSOP key fob development board 434 MHz, SMA Si4313 LED receiver board low band pcb ant Key Fob Plastic Case (translucent grey) Programming interface board Burning adapter board USB Debug Adapter USB Cable CR2032 3 V coin battery Wireless Development Suite disc Si4010 Key Fob Development Kit 868 MHz Si4010 key fob demo board 868 MHz w/o IC SOIC/MSOP socketed development board Si4010-C2-GS transmitter IC, SOIC Package Si4010 MSOP key fob development board 868 MHz, SMA Si4313 LED receiver board high band pcb ant Key Fob Plastic Case (translucent red) Programming interface board Burning adapter board USB Debug Adapter USB Cable CR2032 3 V coin battery Wireless Development Suite disc…

    • 5214 Words
    • 21 Pages
    Satisfactory Essays
  • Good Essays

    Ipt Assignment

    • 2228 Words
    • 9 Pages

    Keyboards | The input device will be used for typing on the desktop computers. |…

    • 2228 Words
    • 9 Pages
    Good Essays
  • Good Essays

    taking productivity to a new level. The keyboard includes a numeric keypad — providing a…

    • 1081 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Bascom8051 Program

    • 2277 Words
    • 10 Pages

    2. Write the program for a system that will turn ON a LED when the PBNO switch is pressed. Pressing and then releasing again this PBNO switch will turn the LED OFF.…

    • 2277 Words
    • 10 Pages
    Satisfactory Essays
  • Good Essays

    The second main point is the switches that mount the mouse. You can find the Omron’s D2FC-F-7N switches, mounted under the two main keys. The resilience of the switches certified to about 20 million clicks. Included you receive two replacement switches one is a white one and the second a gray one. The gray one helps to increase the height of the hand.…

    • 744 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Word Processing

    • 580 Words
    • 3 Pages

    8. Arrow Keys--keys used in place of the mouse to move the cursor to a new location…

    • 580 Words
    • 3 Pages
    Good Essays
  • Good Essays

    assignment on smartphone

    • 501 Words
    • 3 Pages

    Rob Enderle, a little thing (predictive writing) can make a huge difference in this competitive…

    • 501 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Internet

    • 2941 Words
    • 12 Pages

    |Minimum hardware requirements is at least a Pentium PC with ACPI feature support (soft power on and power off). |…

    • 2941 Words
    • 12 Pages
    Powerful Essays