AN111: Using 8-Bit MCUs in 5 Volt Systems



Similar documents
Figure 1. 8-Bit USB Debug Adapter

AN962: Implementing Master-Slave Timing Redundancy in Wireless and Packet- Based Network Applications

AN486: High-Side Bootstrap Design Using ISODrivers in Power Delivery Systems

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

AN952: PCIe Jitter Estimation Using an Oscilloscope

AN803. LOCK AND SETTLING TIME CONSIDERATIONS FOR Si5324/27/ 69/74 ANY-FREQUENCY JITTER ATTENUATING CLOCK ICS. 1. Introduction

AN862. OPTIMIZING Si534X JITTER PERFORMANCE IN NEXT GENERATION INTERNET INFRASTRUCTURE SYSTEMS. 1. Introduction

UG103.8: Application Development Fundamentals: Tools

TS1005 Demo Board COMPONENT LIST. Ordering Information. SC70 Packaging Demo Board SOT23 Packaging Demo Board TS1005DB TS1005DB-SOT

AN580 INFRARED GESTURE SENSING. 1. Introduction. 2. Hardware Considerations

RoHs compliant, Pb-free Industrial temperature range: 40 to +85 C Footprint-compatible with ICS , 2.5, or 3.3 V operation 16-TSSOP

UG103-13: Application Development Fundamentals: RAIL

UG129: ZigBee USB Virtual Gateway Reference Design (RD ) User's Guide

Current Digital to Analog Converter

AN922: Using the Command Line Interface (CLI) for Frequency On-the-Fly with the Si5346/47

Making Prototyping Boards for the EFM32 kits

AN614 A SIMPLE ALTERNATIVE TO ANALOG ISOLATION AMPLIFIERS. 1. Introduction. Input. Output. Input. Output Amp. Amp. Modulator or Driver

AN583: Safety Considerations and Layout Recommendations for Digital Isolators

ETRX3USB ETRX3USB-LRS ETRX3USB+8M ETRX3USB-LRS+8M PRODUCT MANUAL

Table 1. RF Pico Boards of the EZRadioPRO Development Kits. Qty Description Part Number

Backup Power Domain. AN Application Note. Introduction

Bootloader with AES Encryption

CPU. PCIe. Link. PCIe. Refclk. PCIe Refclk. PCIe. PCIe Endpoint. PCIe. Refclk. Figure 1. PCIe Architecture Components

AVR151: Setup and Use of the SPI. Introduction. Features. Atmel AVR 8-bit Microcontroller APPLICATION NOTE

AN588 ENERGY HARVESTING REFERENCE DESIGN USER S GUIDE. 1. Kit Contents. 2. Introduction. Figure 1. Energy Harvesting Sensor Node

Connect the EFM32 with a Smart Phone through the Audio Jack

Si52144 PCI-EXPRESS GEN 1, GEN 2, & GEN 3 QUAD OUTPUT CLOCK GENERATOR. Features. Applications. Description. Functional Block Diagram

Bi-directional level shifter for I²C-bus and other systems.

Selecting the Right MCU Can Squeeze Nanoamps out of Your Next Internet of Things Application

Si52142 PCI-EXPRESS GEN 1, GEN 2, & GEN 3 TWO OUTPUT CLOCK GENERATOR WITH 25 MHZ REFERENCE CLOCK. Features. Applications.

7 OUT1 8 OUT2 9 OUT3 10 OUT4 11 OUT5 12 OUT6 13 OUT7 14 OUT8 15 OUT9 16 OUT10 17 OUT11 18 OUT12 19 OUT13 20 OUT14 21 OUT15 22 OUT16 OUT17 23 OUT18

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

PAC52XX Clock Control Firmware Design

CP2110-EK CP2110 EVALUATION KIT USER S GUIDE. 1. Kit Contents. 2. Relevant Documentation. 3. Software Setup

Telegesis is a trademark of Silicon Laboratories Inc. Telegesis ZigBee Communications Gateway. Product Manual

ICS514 LOCO PLL CLOCK GENERATOR. Description. Features. Block Diagram DATASHEET

DG2302. High-Speed, Low r ON, SPST Analog Switch. Vishay Siliconix. (1-Bit Bus Switch with Level-Shifter) RoHS* COMPLIANT DESCRIPTION FEATURES

How To Use A Watt Saver On A Microcontroller (Watt Saver) On A Cell Phone Or Mp3 Player

USER GUIDE EDBG. Description

USB Audio Simplified

High-Speed, 5 V, 0.1 F CMOS RS-232 Driver/Receivers ADM202/ADM203

CHAPTER 11: Flip Flops

1 TO 4 CLOCK BUFFER ICS551. Description. Features. Block Diagram DATASHEET

TRIPLE PLL FIELD PROG. SPREAD SPECTRUM CLOCK SYNTHESIZER. Features

Analog to Digital Converter

High-Speed, Low r ON, SPST Analog Switch (1-Bit Bus Switch)

INTEGRATED CIRCUITS. NE558 Quad timer. Product data Supersedes data of 2001 Aug Feb 14

The 74LVC1G11 provides a single 3-input AND gate.

Product Datasheet P MHz RF Powerharvester Receiver

AND8336. Design Examples of On Board Dual Supply Voltage Logic Translators. Prepared by: Jim Lepkowski ON Semiconductor.

UG103.8 APPLICATION DEVELOPMENT FUNDAMENTALS: TOOLS

Touchless switch Object detection Handsets Intrusion/tamper detection. Reflectance-Based Proximity Detection PRX. Signal processing SREN

3-to-8 line decoder, demultiplexer with address latches

PC Base Adapter Daughter Card UART GPIO. Figure 1. ToolStick Development Platform Block Diagram

Description. Table 1. Device summary. Order code Temperature range Package Packaging Marking

AN75. Si322X DUAL PROSLIC DEMO PBX AND GR 909 LOOP TESTING SOFTWARE GUIDE. 1. Introduction

APPLICATION. si32library. Callback CMSIS HARDWARE. Figure 1. Firmware Layer Block Diagram

Theory of Operation. Figure 1 illustrates a fan motor circuit used in an automobile application. The TPIC kω AREF.

HEF4021B. 1. General description. 2. Features and benefits. 3. Ordering information. 8-bit static shift register

Internal Oscillator. I 2 C Interface. SPI Interface. Controller. Internal Registers Port Controller. Eight I/O Pins. Figure 1.

3-input EXCLUSIVE-OR gate. The 74LVC1G386 provides a 3-input EXCLUSIVE-OR function.

USB2.0 <=> I2C V4.4. Konverter Kabel und Box mit Galvanischetrennung

Features. Applications

HEF4011B. 1. General description. 2. Features and benefits. 3. Ordering information. 4. Functional diagram. Quad 2-input NAND gate

74HC377; 74HCT General description. 2. Features and benefits. 3. Ordering information

QSG108: Blue Gecko Bluetooth Smart Software Quick-Start Guide

Digital Isolator Evolution Drives Optocoupler Replacement

MM74HC4538 Dual Retriggerable Monostable Multivibrator

76-77 GHz RF Transmitter Front-end for W-band Radar Applications

Push-Pull FET Driver with Integrated Oscillator and Clock Output

ICS SPREAD SPECTRUM CLOCK SYNTHESIZER. Description. Features. Block Diagram DATASHEET

Features. Modulation Frequency (khz) VDD. PLL Clock Synthesizer with Spread Spectrum Circuitry GND

Flexible Active Shutter Control Interface using the MC1323x

Design Challenges for Adding Relative Humidity Sensors

DS Wire Digital Thermometer and Thermostat

Features. V PP IN V CC3 IN V CC5 IN (opt) EN0 EN1 MIC2562

DS1307ZN. 64 x 8 Serial Real-Time Clock

Figure 1. Classes of Jitter

AN1991. Audio decibel level detector with meter driver

Accuracy maintained over the entire operating temperature and voltage range Low Power Consumption

How To Develop A Toolstick

TS555. Low-power single CMOS timer. Description. Features. The TS555 is a single CMOS timer with very low consumption:

Low-Jitter I 2 C/SPI Programmable Dual CMOS Oscillator

LC898300XA. Functions Automatic adjustment to the individual resonance frequency Automatic brake function Initial drive frequency adjustment function

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

4-bit binary full adder with fast carry CIN + (A1 + B1) + 2(A2 + B2) + 4(A3 + B3) + 8(A4 + B4) = = S1 + 2S2 + 4S3 + 8S4 + 16COUT

AN LPC1700 timer triggered memory to GPIO data transfer. Document information. LPC1700, GPIO, DMA, Timer0, Sleep Mode

AAT3520/2/4 MicroPower Microprocessor Reset Circuit

ICS379. Quad PLL with VCXO Quick Turn Clock. Description. Features. Block Diagram

DM74LS191 Synchronous 4-Bit Up/Down Counter with Mode Control

HT1632C 32 8 &24 16 LED Driver

Low-Voltage/Low-Power MCU Solutions from Silicon Labs

RTS5401. USB 3.0 Super-Speed HUB Controller DATASHEET. Doc Rev th Apr i Rev 0.90

AN2680 Application note

Low-power configurable multiple function gate

User Guide. Introduction. HCS12PLLCALUG/D Rev. 0, 12/2002. HCS12 PLL Component Calculator

AN Level shifting techniques in I 2 C-bus design. Document information

AN LPC1700 RTC hardware auto calibration. Document information. RTC, Hardware Auto Calibration, LPC1700, Graphic LCD

SN54HC191, SN74HC191 4-BIT SYNCHRONOUS UP/DOWN BINARY COUNTERS

Simplifying System Design Using the CS4350 PLL DAC

Transcription:

This document describes how to incorporate Silicon Lab s 8-bit EFM8 and C8051 families of devices into existing 5 V systems. When using a 3 V device in a 5 V system, the user must consider: A 3 V power supply must be provided. A 5 V device driving a 3 V input. A 3 V device driving a 5 V input. KEY POINTS Two solutions for interfacing a 3 V MCU with a 5 V system are using logic gates or pull-up resistors. If using pull-up resistors, the size of the resistor must be carefully considered to address rise time and power consumption concerns. 3 V 5 V 8-Bit MCU 5 V Device? silabs.com Smart. Connected. Energy-friendly. Rev. 1.4

Power Supply 1. Power Supply There are several factors in determining what method should be used to provide the 3 V power supply from the existing 5 V power supply. Among these is the reliability of the 5 V power supply and the source of power to the system (i.e., battery or ac with rectifier). Conditioning the 5 V power supply to provide 3 V will increase the number of components in the design and will cost some additional power, which is especially important in low power applications using a battery. 1.1 Rectified Line Power Supply Power may be supplied from a commercial power supply. This supply is typically poorly regulated. To provide a clean and stable 3 V power supply, we recommend a Low Dropout Regulator (LDO). The LDO must be able to supply the specified current for the given part and other 3 V peripherals that may be in use in the application. These specifications may be found in the appropriate data sheets. For example, the typical current specified in Silicon Lab s C8051F001 data sheet is 12 ma @ 20 MHz with analog peripherals active (10 ma digital supply current with CPU active and 2 ma for analog peripherals). Additionally, if other devices are in use such as LED s, the design must account for the additional current needed. Some example LDO s available that convert 5 V to 3 V are: National Semiconductor s LM3940 Texas Instrument s TPS769xx Family 1.2 Battery Power Supply Batteries generally provide a clean power supply. However, applications using batteries must be low power, so dc-dc converters should be used as they are more efficient than LDOs. The device must be able to provide the proper voltage for the application s required maximum current. Some dc-dc converters available are: National Semiconductor s LM2825 C&D Technologies LME305D and LME305S Texas Instrument s TPS769xx family of LDOs is also optimized for battery applications Unlike LDOs, dc-dc converters can provide an output voltage that is higher than the input voltage. silabs.com Smart. Connected. Energy-friendly. Rev. 1.4 1

5 V Tolerant Inputs 2. 5 V Tolerant Inputs Connecting a 5 V driver to a standard 3 V input can cause damage or reduce component life due to current flow into ESD protection devices. Many of the Silicon Labs 8-bit MCUs (EFM8 and C8051) use input structures that are 5 V tolerant. In these cases, the designer may connect 5 V devices directly to digital input pins without causing harmful current flow. Consult the Absolute Maximum Ratings table in the Electrical Specifications chapter of the device data sheet for more information. silabs.com Smart. Connected. Energy-friendly. Rev. 1.4 2

Driving a 5 V Input with a 3 V Driver 3. Driving a 5 V Input with a 3 V Driver Even though an MCU's digital inputs are 5 V tolerant, the outputs can only drive as high as VDD (up to 3.6 V). If the 5 V device requires an input voltage higher than VDD to operate, then additional configuration is necessary. The two main methods of driving a 5 V input are using logic gates and pull-up resistors. 3.1 Interfacing Using Logic Gates Logic gates in the 74VHCTxx family can be used to interface 3 V to 5 V systems. The figure below shows how the 74VHCTxx device takes in a 3 V signal and drives a 5 V signal. Interfacing with logic gates is recommended for applications with high-speed signals. The main drawbacks are the cost and board space used by the 74VHCTxx device. 8-Bit MCU 5 V Device (5 V tolerant) +5 V 3 Volt GPIO GPIO Port pin driver in push-pull configuration 74VHCTxx Figure 3.1. Interfacing with Logic Gates 3.2 Interfacing Using Pull-up Resistors A low cost alternative to logic gates that requires less board space is a pull-up resistor. A pull-up resistor can be used to supply voltages greater than VDD. To accomplish this, we set the output mode of the port pin to open-drain. In open-drain mode, a logic 1 on the port latch makes the port high impedance, and a logic 0 causes it to drive a low signal. When connected to a 5 V device through a pullup resistor, as shown in the figure below, a logic 1 output from the 8-bit MCU will rise to 5 V, and a logic 0 will go to ground. 8-Bit MCU +5 V 5 V Device (5 V tolerant) R pull-up resistor 3 Volt GPIO GPIO Port pin driver in push-pull configuration stray capacitance C Figure 3.2. Driving a 5 V Device Input with a Pull-Up Resistor silabs.com Smart. Connected. Energy-friendly. Rev. 1.4 3

Driving a 5 V Input with a 3 V Driver 3.2.1 Choosing a Pull-Up Resistor When the port pin is a logic 0, the output voltage will be near ground. In this state, current will flow to ground through the pull-up resistor and port driver. To save power, a large value resistor is needed to minimize this current flow. When the port pin is set to logic 1, the output driver turns off and the voltage at the port output is pulled high through the pull-up resistor. The rise time of this signal can be quite long and is determined by the value of the pull-up resistor and the amount of stray capacitance due to the connecting trace and input circuitry. In the circuit in Figure 3.2 Driving a 5 V Device Input with a Pull-Up Resistor on page 3, the stray capacitance is charged from the 5 V power supply through the pull-up resistor with a time constant equal to the product of the stray capacitance and pull-up resistance as follows: V(t) = 5 V ( 1 e t RC ) Stray capacitance is negligible if timing is not important (e.g., a push button or chip select signals). However, if the timing is important (e.g., serial communications, clock signal synchronization), then the charge time must be considered, and this will limit the maximum size of the pull-up resistor. A pull-up resistor that is large will result in a large time to charge the stray capacitance, and a long time to get the port pin voltage high enough to realize a logic 1. See Figure 3.3 Square Wave with Charge Time Due to Stray Capacitance on page 4, where T is the time it takes to charge above the voltage required for the 5 V device to realize a logic 1 (commonly referred to as V IH ). volts T Ideal output from 8-bit device Logic 1 VIH Voltage to 5 V device VIL Logic 0 t Figure 3.3. Square Wave with Charge Time Due to Stray Capacitance This voltage will depend on the application, as will the value of the stray capacitance. If the time constant is too large, the 5 V device may never receive a high enough voltage to realize a logic 1 at a given square wave frequency. For this reason, the chosen pull-up resistance (R) must be low enough for proper input, but the R must not be so low that excessive power is dissipated in the pull-up resistor during logic low state. Once the maximum acceptable rise time (T) is determined for a given application, the value of the pull-up resistor (R) can be calculated by solving for R: R = T C ln ( 5 5 V IH ) Even though there is a slight delay in the output voltage dropping from high to low (1 to 0), this time is insignificant when compared to the rise time. This delay is illustrated (although exagerated) in Figure 3.3 Square Wave with Charge Time Due to Stray Capacitance on page 4 to show the small decay time. The charge in the stray capacitance discharges through the 8-bit MCU port driver with a small voltage drop to ground. silabs.com Smart. Connected. Energy-friendly. Rev. 1.4 4

Driving a 5 V Input with a 3 V Driver As previously mentioned, if the resistance is low, large amounts of power may be consumed as current flows from the 5 V power supply to ground in logic 0 state. Additionally, if the value of the resistor is too low, the low state voltage may be too high to realize a logic 0 (V OL ) due to the voltage drop across the port driver. For example, the V OL specification for the C8051F0xx devices is 0.6 V at 8.5 ma. A small resistance may result in higher currents and thus a higher voltage input to the 5 V device. In summary, a pull-up resistor must be: 1. Large enough to prevent excessive current flow and power consumption in the logic 0 state. 2. Large enough to keep the voltage below the V IL specification of the 5 V device to realize a logic 0 state. 3. Small enough to provide acceptable rise times based on the amount of stray capacitance and the requirements of the application. 3.2.2 Pull-Up Example The following is an example of calculating a proper pull-up resistor value (R) for a given stray capacitance (C), required voltage level for a logic 1 (V IH ), and frequency of state change to determine maximum allowable rise time (T). Additionally, we will investigate the power consumption in the pullup resistor and voltage level when in the logic 0 state. From this calculation, we will determine a value for the pull-up resistor (R). In this example application, we will consider an application using the SMBus which uses an open-drain synchronizing clock signal (SCL) output from an EFM8 or C8051 in Master Mode (supplying the SCL signal to other devices). This signal will output to a 5 V device, and so the configuration in Figure 3.2 Driving a 5 V Device Input with a Pull-Up Resistor on page 3 will be used to ensure proper voltage supplied. Ensure port pins used in this method are configured as open-drain (see associated data sheets). EFM8 and C8051 port pins default to open-drain configuration upon reset. A proper pull-up resistor value (R) must be calculated to ensure: Minimal current/power loss when in a logic low (0) state (R too low). Performance specifications are not violated due to the rise time associated with the stray capacitance and pull-up resistance. (R too high). In a logic low state, voltage is not too high due to the voltage drop across the port driver (R too low). Ideally, a high resistance would be used in order to minimize power loss which can be critical in low power applications (i.e., when using a battery power supply). We will calculate the highest resistance we can use while meeting voltage rise time specifications. For this application, the voltage should be high enough to realize a logic 1 for CMOS logic in the 5 V device within 5% of the clock period. We assume a V IH of 0.8*VDD, or 4 V. Choosing a SCL frequency of 400 khz, our voltage should rise to 4 V within 125 ns. Thus, referring to the second equation, T = 125 ns and V IH = 4 V. We will assume the stray capacitance to be 10 pf with one slave device connected to the SCL line. Note: This will vary for different applications, depending on the number of devices connected and amount of wiring and traces used to connect these devices. Using this equation, we calculate R = 7.77 kω. This is the maximum resistor value that can be used at the specified SCL frequency and specification we set for the CMOS input logic. If the SCL frequency were lower, then a higher resistance could be used. Now that we have a desired maximum pull-up resistance, we can calculate the current flowing through the circuit when at a logic 0 to see if this is acceptable for a given application. In the worst case condition, we calculate the current flow with a 5 V power supply and negligible voltage drop in the port pin to ground. The current through the 7.77 kω resistor is then 644 µa. The power dissipation in the pull-up resistor at 644 µa of current is approximately 3.2 mw. silabs.com Smart. Connected. Energy-friendly. Rev. 1.4 5

Simpilcity Studio One-click access to MCU tools, documentation, software, source code libraries & more. Available for Windows, Mac and Linux! www.silabs.com/simplicity MCU Portfolio www.silabs.com/mcu SW/HW www.silabs.com/simplicity Quality www.silabs.com/quality Support and Community community.silabs.com Disclaimer Silicon Laboratories intends to provide customers with the latest, accurate, and in-depth documentation of all peripherals and modules available for system and software implementers using or intending to use the Silicon Laboratories products. Characterization data, available modules and peripherals, memory sizes and memory addresses refer to each specific device, and "Typical" parameters provided can and do vary in different applications. Application examples described herein are for illustrative purposes only. Silicon Laboratories reserves the right to make changes without further notice and limitation to product information, specifications, and descriptions herein, and does not give warranties as to the accuracy or completeness of the included information. Silicon Laboratories shall have no liability for the consequences of use of the information supplied herein. This document does not imply or express copyright licenses granted hereunder to design or fabricate any integrated circuits. The products must not be used within any Life Support System without the specific written consent of Silicon Laboratories. A "Life Support System" is any product or system intended to support or sustain life and/or health, which, if it fails, can be reasonably expected to result in significant personal injury or death. Silicon Laboratories products are generally not intended for military applications. Silicon Laboratories products shall under no circumstances be used in weapons of mass destruction including (but not limited to) nuclear, biological or chemical weapons, or missiles capable of delivering such weapons. Trademark Information Silicon Laboratories Inc., Silicon Laboratories, Silicon Labs, SiLabs and the Silicon Labs logo, CMEMS, EFM, EFM32, EFR, Energy Micro, Energy Micro logo and combinations thereof, "the world s most energy friendly microcontrollers", Ember, EZLink, EZMac, EZRadio, EZRadioPRO, DSPLL, ISOmodem, Precision32, ProSLIC, SiPHY, USBXpress and others are trademarks or registered trademarks of Silicon Laboratories Inc. ARM, CORTEX, Cortex-M3 and THUMB are trademarks or registered trademarks of ARM Holdings. Keil is a registered trademark of ARM Limited. All other products or brand names mentioned herein are trademarks of their respective holders. Silicon Laboratories Inc. 400 West Cesar Chavez Austin, TX 78701 USA http://www.silabs.com