Go to GlobalSpec.com Home
Alert   Product Alerts
Keep current on the latest products, new suppliers, and technical articles of interest to you. (See Topics)

Using the Port B Interrupt on Change as an External Interrupt

From Microchip Technology, Inc.
 

 
The PICmicro? families of RISC microcontrollers aredesigned to provide advanced performance and a cost-effective solution for a variety of applications. To address these applications, there is the PIC16CXXX microcontroller family of products. This family has numerous peripheral and special features to better address user applications. The feature this application note will focus on is the Interrupt on Change of the PORTB pins. This ?interrupt on change? is triggered when any of the RB7:RB4 pins, configured as an input, changes level. When this interrupt is used in conjunction with the software programmable weak internal pull-ups, a direct interface to a keypad is possible. This is shown in application note AN552, Implementing Wake-up on Key Stroke. Another way to use the ?interrupt on change? feature would be as additional external interrupt sources. This allows PIC16CXXX devices to support multiple external interrupts, in addition to the built-in external interrupt on the INT pin. This application note will discuss some of the issues in using PORTB as additional external interrupt pins, and will show some examples. These examples can be eas-ily modified to suit your particular needs.

Products & Services
Microcontrollers (MCU) are complete computer systems on a chip. They combine an arithmetic logic unit (ALU), memory, timer/counters, serial port, input/output (I/O) ports and a clock oscillator. Search by Specification | Learn more about Microcontrollers (MCU)
Specialty microprocessors and microcontrollers are specialty or proprietary products and accessories related to microprocessors and microcontrollers. Learn more about Specialty Microprocessors and Microcontrollers

Product Announcements
Atmel Corporation - AVR MCUs for Automotive Motor Control Applications
AVR® 8-bit MCUs dedicated to motor control applications for automotive - The ATmega16M1 and ATmega32M1 are the first devices developed for the control of sensor and sensorless brushless DC (BLDC)... (read more)
Melexis, Inc. - MLX16201 Intelligent HV Automotive Relay Driver
The MLX16201 is a multiple purpose intelligent relay driver ASIC designed for automotive applications. (read more)
Atmel Corporation - AVRXMEGA Redefines 8/16-bit MCU System Performance
The system performance of AVR® XMEGA™, an important addition to the family, expands the market reach for 8/16-bit microcontrollers. With second generation of picoPower™ technology, XMEGA... (read more)
Digi-Key Corporation - STMicroelectronics’ Motion Sensor at Digi-Key
From Digi-Key, the LIS35DE (497-8549-ND) is an ultra compact low-power three axis linear accelerometer. It includes a sensing element and an IC interface able to provide the measured acceleration to... (read more)
R4 Systems, Inc. - Proteus VSM for PIC Micros
Proteus VSM for PIC contains everything you need to develop and simulate embedded system designs based around the PIC series of microcontrollers from Microchip Technologies™. Models are... (read more)
Microchip Technology, Inc. - First PIC Microcontrollers w/ Mid-range 8-bit Core
New Family with eXtreme Low-Power nanoWatt XLP Technology Delivers Enhanced C Support; Broad Peripheral Set Includes mTouch™ Capacitive Sensing and LCD Drive... (read more)
Leach International - High-performance Contactors
High-performance contactors for aerospace, military and transportation applications. (read more)
R4 Systems, Inc. - Proteus VSM for ARM/LPC2000
Proteus VSM for ARM/LPC2000 contains everything you need to develop and simulate embedded system designs using the ARM7 based LPC2000 series of 32-bit microcontrollers from Phillips... (read more)

Topics of Interest
Microchip's PIC16CXXX microcontroller family are ideally suited to directly interface to a keypad. The high 4-bits of PORTB (RB7:RB4) have internal pull-ups and can trigger a ?change on state?... (Read More)
AN576 Techniques to Disable Global Interrupts ing this instruction, the program would complete execu- tion of this instruction, and then immediately branch to Author: Mark Palmer the user's interrupt... (Read More)
AN1081 Interfacing a 4x4 Matrix Keypad with an 8-Bit GPIO Expander * I/O Direction Register (IODIR): The IODIR Author: Mike Curran register controls the direction of the port pins. A Microchip... (Read More)
This application note describes a unique method for implementing interrupts in software on the PIC16C5X series of microcontrollers. This method takes advantage of the PIC16C5X?s architecture which... (Read More)
This chapter discusses interrupts, which are of critical importance when implementing efficient input/output operations for microcontroller applications. Topics include interrupt fundamentals, PIC18... (Read More)