Presentation is loading. Please wait.

Presentation is loading. Please wait.

© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Module Introduction Purpose  This training module provides an overview of the analog interfaces.

Similar presentations


Presentation on theme: "© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Module Introduction Purpose  This training module provides an overview of the analog interfaces."— Presentation transcript:

1 © 2008, Renesas Technology America, Inc., All Rights Reserved 1 Module Introduction Purpose  This training module provides an overview of the analog interfaces that H8S MCUs provide. Objective  Review the features and understand the operation of the A/D converter, D/A converter, and 14-bit PWM. Content  25 pages  4 questions Learning Time  35 minutes

2 © 2008, Renesas Technology America, Inc., All Rights Reserved 2 A/D Converter Successive-approximation type Up to 16-channels, each with 10-bit resolution High-speed conversion  8.4µs/channel at 16 MHz (H8S/2239) Built-in sample-and-hold function Two modes of operation  Single mode: Single-channel conversion  Scan mode: Sequential conversion on multiple channels Three kinds of trigger  Software, timer, ADTRG_ pin Interrupt generated at end of conversion

3 © 2008, Renesas Technology America, Inc., All Rights Reserved 3 A/D Converter Circuit

4 © 2008, Renesas Technology America, Inc., All Rights Reserved 4 Successive-Approximation Process AVcc = Vcc = Vref =5V AN0 Input = 3V AVss = Vss = 0V First Comparison Second Comparison Third Comparison 2.5V 3.75V 3.125V Successive-comparison Register 1 0 0 - - ADDRA Sent to ADDRA at end of conversion 0 0 0 Lower 6 bits are always 0 Higher than 2.5V Lower than 3.75V Lower than 3.125V

5 © 2008, Renesas Technology America, Inc., All Rights Reserved 5 Single-Mode Operation

6 © 2008, Renesas Technology America, Inc., All Rights Reserved 6 Scan-Mode Operation

7

8 © 2008, Renesas Technology America, Inc., All Rights Reserved 8 Conversion Precision

9 © 2008, Renesas Technology America, Inc., All Rights Reserved 9 A/D Design Tips Be sure to use good analog design practices when applying the A/D converter. Keep the input source impedance below 5000 ohms.  This ensures that the sampling capacitor will charge to the correct voltage before the A/D starts a conversion. Always use a low-pass filter on the input.

10 © 2008, Renesas Technology America, Inc., All Rights Reserved 10 D/A Converter Converts digital signals into analog outputs Contains up to six D/A channels, each with 8-bit resolution Has an output voltage range of 0V to Vref Has a hold function in Software Standby mode H8S MCUs have R-2R type D/A converters. R-2R D/A Circuit

11 © 2008, Renesas Technology America, Inc., All Rights Reserved 11 D/A Converter Function Module STOP The Module STOP bit is set by reset or Hardware Standby.

12 © 2008, Renesas Technology America, Inc., All Rights Reserved 12 D/A Control Registers DADR0, DADR1 DAOE0, DAOE1 MSTPCRC

13 © 2008, Renesas Technology America, Inc., All Rights Reserved 13 D/A Operation

14 © 2008, Renesas Technology America, Inc., All Rights Reserved 14 D/A Converter Applications  Digital servo tracking at 100Hz  Software-programmable power supply  Simple sound generator  Modem  Text-to-speech  Generating warning tones  LCD contrast control

15

16 © 2008, Renesas Technology America, Inc., All Rights Reserved 16 Pulse Width Modulation PWM can be used to implement high-resolution D/A converters.  Effects of capacitance and resistive loading are virtually eliminated.  Resolution is determined only by the number of bits in counter and compare circuit; semiconductor process technology is not a limiting factor.  PWM function on H8S MCUs (PWM14) is a 14-bit design.

17 © 2008, Renesas Technology America, Inc., All Rights Reserved 17 PWM Conversion Basics t1t2 t1 = t2 0.00 volts 2.50 volts Vout = Vcc x duty cycle 0 5

18

19 © 2008, Renesas Technology America, Inc., All Rights Reserved 19 Reducing Filter Constraints 0 3 Output A Output B 25% f1f1 f2f2 High frequencies are easier to filter out than low frequencies.

20 © 2008, Renesas Technology America, Inc., All Rights Reserved 20 PWM14 Circuit Module STOP The Module STOP bit is set by reset or Hardware Standby

21 © 2008, Renesas Technology America, Inc., All Rights Reserved 21 14-bit PWM Register Set

22 © 2008, Renesas Technology America, Inc., All Rights Reserved 22 14-bit PWM Operation

23 © 2008, Renesas Technology America, Inc., All Rights Reserved 23 14-bit PWM D/A Overview When the 14-bit PWM is used as a D/A converter, its output pulse is subdivided into multiple base cycles to reduce ripple. There are four operating modes. They encompass two resolution settings and two base-cycle settings. The base cycle can be set to Tx64 or Tx256, where T is the resolution.

24 © 2008, Renesas Technology America, Inc., All Rights Reserved 24 PWM D/A Converter Applications H8S Microcontroller Filter Voice-coil Motor PWMX Out Driver Position Feedback High-Accuracy Digital Servo Signal to track Other Applications: High-resolution analog outputs Radio tuners High-resolution, high-precision voltage-to-frequency converters

25

26 © 2008, Renesas Technology America, Inc., All Rights Reserved 26 Module Summary A/D converter D/A converter 14-bit PWM D/A circuit To get detailed information about all MCU solutions from Renesas including H8S MCUs. Please visit our website: www.renesas.com


Download ppt "© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Module Introduction Purpose  This training module provides an overview of the analog interfaces."

Similar presentations


Ads by Google