Renesas M16C/62 Application Note
Renesas M16C/62 Application Note

Renesas M16C/62 Application Note

A-d converter op-amp gain adjustment connection mode

Advertisement

Quick Links

M16C/62 Group
A-D Converter OP-AMP Gain Adjustment Connection Mode
1. Abstract
This application note describes the operation of gain adjustment by using operational amplifier for A-D converter.
2. Introduction
This application note is applied to the M16C/62 group Microcomputers.
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.
REJ05B0442-0100Z
Rev.1.00
/
March 2004
APPLICATION NOTE
Page 1 of 13

Advertisement

Table of Contents
loading

Summary of Contents for Renesas M16C/62

  • 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.
  • Page 2: Detailed Description

    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.
  • Page 3: How To Set Up

    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.
  • Page 6: Web-Site And Contact For Support

    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)
  • Page 7: The Example Of A Reference Program

    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...
  • Page 8 M16C/62 Group A-D Converter OP-AMP Gain Adjustment Connection Mode mov.b #11100000b, adcon1 ||||||++--------------------- sweep pin select : none |||||+----------------------- mode select bit1 : 0 fix ||||+------------------------ 8/10 bit select : 8bit |||+------------------------- Freq select bit1 : fAD/2 ||+-------------------------- VREF connect bit...
  • Page 9 M16C/62 Group A-D Converter OP-AMP Gain Adjustment Connection Mode an4_wait: ; wait for AN4 conversion complate btst ir_adic an4_wait bclr ir_adic ; AD interrupt req clear mov.b ad4, p4 ; conversion result display ----- AN5 conversion ----- bclr adst ; AD conversion stop mov.b...
  • Page 10 M16C/62 Group A-D Converter OP-AMP Gain Adjustment Connection Mode reit ;///////////////////////////////////////////////////////////////////// Non-maskable interrupt routine ;///////////////////////////////////////////////////////////////////// undi: ; Undefined instruction interrupt ovfli: ; Overflow interrupt brki: ; BRK instruction interrupt addri: ; Address match interrupt wdti: ; Watch-dog timer interrupt nmii: ;...
  • Page 11 M16C/62 Group A-D Converter OP-AMP Gain Adjustment Connection Mode .lword dummyi ;63= ;///////////////////////////////////////////////////////////////////// Non-Maskable interrupt vector table ;///////////////////////////////////////////////////////////////////// .section vector,romdata .org vvector .lword undi ; ffffdc to f Undefined instruction interrupt .lword ovfli ; ffffe0 to 3 Overflow interrupt .lword brki ;...
  • Page 12: Revision History

    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...
  • Page 13: Keep Safety First In Your Circuit Designs

    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.

Table of Contents