
rej05b0618_m16cap| Application Note
APPLICATION NOTE
M16C/Tiny Series
Solution for External Interrupt Pins Shortage
1. Abstract
The following are solution for external interrupt pins shortage. Use the following peripheral function: Event counter mode of timer A
2.
Introduction
The explanation of this issue is applied to the following condition: Applicable MCU: M16C/26, M16C/26A, M16C/28, M16C/29 Group This program can also be used when operating other microcomputers within the M16C family, provided they have the same SFR (Special Function Registers) as the M16C/26, M16C/26A, M16C/28, M16C/29 microcomputers. However, some functions may have been modified. Refer to the User's Manual for details. Use functions covered in this Application Note only after careful evaluation.
3.
Contents
3.1 Specification
(1) Inputting a falling edge to the TA0IN pin generates a timer A0 interrupt.
3.2 Operation
(1) Set timer A0 to event counter mode, set timer to "0", and set interrupt priority levels in timer A0. (2) Inputting a falling edge to the TA0IN pin generates a timer A0 interrupt.
3.3 Register Setting
To enable the operation defined in "Section 3. Operation of timer A", the following register settings must be taken place step by step. For detail configuration of each register, please refer to M16C/26 Group hardware manual, M16C/26A Group hardware manual, M16C/28 Group hardware manual, M16C/29 Group hardware manual.
REJ05B0618-0100/Rev.1.00
May 2005
Page 1 of 7
rej05b0618_m16cap Application Note renesas Download PDF
Add this permalink to your bookmarks for future download of rej05b0618_m16cap ApplicationNote
Permalink: http://application.emcelettronica.com/renesas/rej05b0618_m16cap