Page 1
This program can be also operated under the condition of M16C family products with the same SFR (Special Function Register) as M16C/62 Group products. Because some functions may be modified of the M16C family products, see the user’s manual. When using the functions shown in this application note, evaluate them carefully for an operation.
M16C/62 Group A-D Converter OP-AMP Gain Adjustment Connection Mode 3. Detailed description This example describes the operation of gain adjustment by using external operational amplifier for M16C/62 group microcomputers. 3.1 Example of wiring Figure 1 illustrates the operation of gain adjustment by using external operational amplifier.
M16C/62 Group A-D Converter OP-AMP Gain Adjustment Connection Mode 3.2 How to set up This section shows the setting procedures when A-D conversion is carried out, for the output of the gain adjustment, by using external operational amplifier. Examples of A-D conversion with sample & hold function for one-shot mode and 10-bit mode are described.
Page 4
M16C/62 Group A-D Converter OP-AMP Gain Adjustment Connection Mode (3) Setting ADCON1 register (A-D control register 1) Setting A-D operation mode select bit 1, 8/10-bit mode select bit, frequency select bit 1, external op- amp connection mode bit. SCAN1 to 0: A-D sweep pin select bit...
Page 5
M16C/62 Group A-D Converter OP-AMP Gain Adjustment Connection Mode (7) Waiting for A-D conversion complete Wait until IR bit in ADIC register reaches to "1" (interrupt request). (8) Reading of result of A-D conversion Read A-D register i (i=0 to 7) corresponding to selected pin in analog input select bit.
M16C/62 group (M16C/62P) Hardware Manual Rev.1.11 M16C/62 group data sheet Rev.H2 M16C/62A group data sheet Rev.C1 M16C/62N group data sheet Rev.1.1 (Use the latest version on the web-site: http://www.renesas.com) User’s Manual M16C/62 group User’s Manual Rev.C3 M16C/62A group User’s Manual Rev.1.0 (Use the latest version on the web-site: http://www.renesas.com)
FUNCTION : The example of A-D conversion at the time of external operational amplifier gain adjustment HISTORY : 2004.01.15 Ver 1.00 Copyright (C) 2004. Renesas Technology Corp. Copyright (C) 2004. Renesas Solutions Corp. All right reserved. ;********************************************************************** ----- include define ----- .list...
M16C/62 Group A-D Converter OP-AMP Gain Adjustment Connection Mode Revision history Revised Rev. Issue date Page Point 1.00 2004.03.18 First edition issued REJ05B0442-0100Z Rev.1.00 March 2004 Page 12 of 13...
Notes regarding these materials 1. These materials are intended as a reference to assist our customers in the selection of the Renesas Technology Corporation product best suited to the customer's application; they do not convey any license under any intellectual property rights, or any other rights, belonging to Renesas Technology Corporation or a third party.