https://www.electronicdesign.com/sites/all/themes/penton_subtheme_electronicdesign/images/logos/footer.png

Electronic Design is part of the Business Intelligence Division of Informa PLC

  • Informa PLC
  • About us
  • Investor relations
  • Talent

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them. Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.

Discover:
  • Design & Learning Center
  • Find Parts
  • Electronic Design Connect
  • Design for High Frequency
  • Design with Mechanical
  • Design for Power Management
  • Electronics Procurement
  • More
    Menu
    Log In or Register
    • Automotive
    • Industrial Automation
    • Analog
    • Power
    • Embedded Revolution
    • Test & Measurement
    • Resources
    • Experts
    • Design & Learning Center
    • Find Parts
    • Design for High Frequency
    • Design with Mechanical
    • Design for Power Management
    • Electronics Procurement
    • Magazine
    • Newsletter
    • Webinars
    • White Papers
    • Design FAQs
    • Basics of Design
    • About Us
    • Contact
    • Advertise
    • Content Licensing
    • Privacy Statement
    • Terms of Service
    • Cookie Policy
    • Ad Choices
    Electronic Design
    • Search
    • Log In
    • Register
    Recent
    Recent
    Buck Regulator Has Minuscule Quiescent Current, On-the-Fly Adjustable Output
    Feb 14, 2019
    DC Energy Analyzer Finds its Way to Kickstarter
    Feb 14, 2019

    ARMv8.1-M Adds Machine Learning to Microcontrollers
    Feb 14, 2019
    11 Myths About NAND Flash Controllers
    Feb 13, 2019
    45-V “Zero-Drift” Op Amp Merges Extreme Precision, EMI Filtering
    Feb 11, 2019
    Featured
    Implementing BLE Security in IoT Applications
    Oct 02, 2018
    Versal: A New Level of Compute Configurability
    Oct 02, 2018
    Volvo’s Concept Car: How Self-Driving Vehicles Will Change the Way We Travel
    Sep 28, 2018
    Inside Samsung’s Tab S4—The Best 2-in-1 Android Around
    Sep 25, 2018
    Stopwatch Wavebreakmedia Ltd
    Collection: Wavebreak Media / Getty Images Plus
    Sponsored Content
    Technologies>Analog

    Replace Fixed-Function ICs with Low-Cost Microcontrollers

    Sponsored by Texas Instruments: For about 25 cents, you can implement many simple analog and digital functions into applications ranging from pulse-width modulation to a stopwatch.

    Lou Frenzel | May 29, 2018

    Download this article in PDF format.

    Most engineers have known for years that microcontrollers are the best choice in building new digital products. Legacy TTL and CMOS functional logic devices gave way to single-chip MCUs years ago. Yet some operations are still implemented with fixed-function devices because an MCU seems like expensive overkill in certain cases. Not anymore, though. When the price for a tiny MCU comes down to pennies, it’s time to reconsider the use of fixed-function circuits. Here are some ideas to help you go in that direction.

    Design Examples

    A cheap MCU can replace more discrete logic and mixed-signal devices than you think. One example is a two-bit 8-bit microcontroller that’s able to replace the still popular 555 timer IC. But that’s not all. There are four basic areas where an inexpensive MCU can replace a fixed-function device: communications, system housekeeping, pulse-width modulation (PWM), and timing. The examples below illustrate how it can be done.

     Sponsored Resources: 

    • Enhance simple analog and digital functions for $0.25
    • 25 functions for 25 cents video series
    • 25 functions for 25 cents introduction

    Communications

    In terms of communications, one example involves the need for two devices to talk to one another. One device uses a UART for external serial communications and another employs a serial peripheral interface (SPI). What’s required is a bridge that acts as a translator for the two devices (Fig. 1). The MCU code translates the protocol of one serial method to another and provides data buffering and half-duplex data transfers. The ability to program the device lets you change the design to optimize it for your application.

    1. Here, the MCU acts as a UART-to-SPI bridge.

    Another communication application example concerns the use of a single bidirectional line to transfer data between the MCU and a master device. Commonly referred to as 1-wire or SDQ single-wire serial interfaces, this communication peripheral reduces the number of physical hardware connections required while adhering to a protocol that’s easily achievable with a simple MCU. This simple interface is used with external EEPROMs, SHA-1 authenticators, temperature sensors, digital switches, and battery-system monitors.

    Pulse-Width Modulation

    Most low-cost MCUs include PWM capability. PWM generates a variable pulse duration and duty cycle. These output pulses can be easily averaged into a proportional dc with external low-pass RC filters. The PWM function can also serve as a simple digital-to-analog converter (DAC). Among the many applications are LED dimming or color change, servo- or stepper-motor control, signal generation from a lookup table, or other analog-related functions. Figure 2 shows the necessary external RC filters for most uses.

    2. External low-pass filters create analog and DC outputs from PWM signals.

    Housekeeping

    Many possibilities exist for system and housekeeping functions. Here are just a few examples:

    • EEPROM emulation using the MCU’s non-volatile memory
    • Low-power hex keypad
    • Multifunction reset controller
    • Single-slope analog-to-digital conversion
    • ADC Wake and Transmit on Threshold
    • Hysteresis comparator
    • Programmable frequency-locked loop
    • Programmable clock source

    Figure 3 shows how the non-volatile ferroelectric RAM in an inexpensive MCU can replace EEPROM that’s often needed in certain applications. The EEPROM is used to store boot information, identification codes, backup data, calibration data, and other data that must be retained when power is off. The inexpensive FRAM MCU is connected via a SPI interface with traditional control signals.

    3. An MCU with FRAM does a good job of emulating needed external EEPROM.

    Timing

    Timing functions offer many other possibilities. Examples are simple kitchen timer, a stopwatch, a watchdog timer, or real-time clock. An internal 32-kHz reference oscillator, if available, can provide the timer accuracy, and an external crystal clock can be used for high-precision requirements. Internal timer counters accumulate the clock pulses.

    Figure 4 shows a stopwatch example. Stop-start and reset buttons provide the external control. A 7-segment LED display shows the output. General-purpose digital I/O pins on the MCU accept the inputs and generate the outputs. External transistors are needed to control the multiplexed LED display.

    4. An inexpensive MCU makes a simple and inexpensive stopwatch.

    What’s discussed above represents only a few instances of how a cheap MCU can solve some interface problems. You know the value of programmability, and now you can apply that to simple functions when the cost is right.

    Texas Instruments has produced an eBook that illustrates the many application possibilities of low-cost MCUs. The eBook includes brief application reports and links to code examples to get you started, as well as tips for code optimization.

    Selecting the Right MCU

    Literally dozens of inexpensive MCUs are available to implement external functions like those described here. One family of devices that not only meets the low-cost ($0.25) target but also provides significant software support to make these MCUs easy to use is the ultra-low-power MSP430 microcontrollers (MCUs) from Texas Instruments.

    These 16-bit MCUs feature a RISC architecture, on-chip RAM, and TI’s ferroelectric non-volatile RAM. Clock rate can be up to 16 MHz, and I/O consists of GPIO pins, I2C, SPI, and UART interfaces. PWM capability and multiple timers add more versatility. All versions have a comparator with programmable hysteresis and a 10-bit ADC. The design is optimized for very low power operation. Multiple versions are available with 16- or 24-pin package options. A variety of evaluation boards and software development products provide design support.

    More Information Waiting for You

    Texas Instruments has plenty of additional data on the use of low cost MCUs. Check out their “25 functions for 25 cents” video series to see some examples of the simple analog and digital functions that can be replaced by low-cost MSP430 MCUs. Also, check out this blog that provides additional examples.

     Sponsored Resources: 

    • Enhance simple analog and digital functions for $0.25
    • 25 functions for 25 cents video series
    • 25 functions for 25 cents introduction
    2 comments
    Hide comments

    More information about text formats

    Comments

    • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

    Plain text

    • No HTML tags allowed.
    • Web page addresses and e-mail addresses turn into links automatically.
    • Lines and paragraphs break automatically.
    PublishLog in or register to comment
    Related
    1116tiiotmcupromo.jpg
    Sponsored Content
    MCUs Combine Low Power, DSP Functionality in IoT Edge-Node Apps
    Nov 22, 2016
    titemppromo
    Sponsored Content
    Improved IC Temp Sensors Challenge Traditional Sensor Devices
    Jul 06, 2016
    tibldcspromo
    Sponsored Content
    Boost Appliance Efficiency with Low-Voltage BLDCs
    Jul 28, 2016
    timcuspromo
    Sponsored Content
    Low-Power MCUs Tackle Industrial Sensing and Measurement Applications
    Jun 01, 2016
    • Load More
    Logo
    Powered by Informa
    • About Us
    • Contact
    • Advertise
    • Newsletter
    • Sitemap
    • Ad Choices
    • Privacy Policy
    • Terms of Service
    • Cookie Policy

    Follow us:

    © 2019 Informa USA, Inc., All Rights Reserved