Challenge. Hardware Circuit Details. Solution. Result. Features and Functions. Z8 Encore! MC

Similar documents
Z8 Encore! XP F0822 Series

Getting Started with ESPI Interface Using the Z8 Encore! XP F1680

Interfacing Z8 Encore! XP MCUs with an I 2 C-Based Character LCD

Z8 Encore! XP F1680 Series 8-Bit Flash Solution with Extended Peripherals

An SPI Temperature Sensor Interface with the Z8 Encore! SPI Bus

Flash Loader Utility for the Z8 Encore! XP MCU

S3 Flash In-System Programmer

An Automatic Temperature Control System Using RZK

High-Performance 8-Bit Microcontrollers. Up to 8 10-Bit ADC Channels. Two 16-Bit Timers/PWM. Internal Precision Oscillator

Zilog Real-Time Kernel

High Resolution Digital Weigh-Scale Design Using Z8 Encore! Microcontrollers

ZLF645 Crimzon Flash Microcontroller with ZBase Database Industry Leading Universal Infrared Remote Control (UIR) Solution

Z8 Encore! XP 4K Series with extended Peripherals

Zatara Series ARM ASSP High-Performance 32-bit Solution for Secure Transactions

A Simple Console Application for Z8 Encore! XP MCUs

EEPROM Emulation with the ez80f91 MCU. Discussion

Z8 Encore! XP/Z8 Encore! Development Kits

Using the Z8051 MCU s USI Peripheral as an SPI Interface

Boot Loader for the Z51F6412 MCU

Character LCD Interface for ez80acclaim! MCUs

Universal Motor Control with Z8 Encore! XP 8-Pin Highly Integrated Microcontroller

5x7 LED Matrix Display with Z8 Encore! XP

Z8 Encore! XP F0822 Series Development Kit

Set Up a PLL Loop Filter on the ez80f91 MCU

ZMOTION Detection Module Development Kit

ez80f91 Modular Development Kit

Ethernet Smart Cable

Product Update. Errata to Z8 Encore! 8K Series Silicon. Z8 Encore! 8K Series Silicon with Date Codes 0402 and Later

Zilog TCP/IP Software Suite

ZCRMZNICE01ZEMG Crimzon In-Circuit Emulator

S3F8S5A Development Kit

Serial Communication Controllers (SCC) MULTIPROTOCOL DATA COMMUNICATION SOLUTIONS

Z8 Encore! XP Family of Microcontrollers Development Kits

Z8 Encore! Z8F642 MCU Evaluation Kit

Objective: Additional project details: Code: PSEMBP 100 Category:STEM Level: High School/Community C.

ET-UARTSWD Users Guide

PAC5523EVK1. Power Application Controllers. PAC5523EVK1 User s Guide. Copyright 2017 Active-Semi, Inc.

ecog1kg Microcontroller Product Brief

Interfacing the NM24C16 Serial EEPROM to the microcontroller. Interfacing the NM24C16 Serial EEPROM to the 8031 Microcontroller AN-957

HYDRA-X23/X23S. Power Application Controllers. PAC HYDRA-X User s Guide. Copyright 2014 Active-Semi, Inc.

Nuvoton 1T 8051-based Microcontroller NuTiny-SDK-N76E885 User Manual

Digital UART Product Specification

PC87435 Enhanced IPMI Baseboard Management Controller

ZiLOG Real-Time Kernel Version 1.2.0

Nuvoton 4T 8051-based Microcontroller NuTiny-SDK-N78E715 User Manual

HYDRA-X10. Power Application Controllers TM. PAC HYDRA-X User s Guide. Copyright 2014 Active-Semi, Inc.

UM0401 User manual. User manual for eight bit port expander STMPE801 demonstration board. Introduction

Real Time Embedded Systems. Lecture 1 January 17, 2012

KBC1122/KBC1122P. Mobile KBC with Super I/O, SFI, ADC and DAC with SMSC SentinelAlert! TM PRODUCT FEATURES. Data Brief

Multifunction Serial Interface (PDL_MFS) Features. General Description. When to Use a PDL_MFS Component. Quick Start 1.0

EDBG. Description. Programmers and Debuggers USER GUIDE

XE166 Family AP Application Note. Microcontrollers. X E D r i v e C a r d H a r d w a r e D e s c r i p t i o n Board REV.

USB I 2 C Interface Board Reference Manual

8-bit MCU Family C8051F93x/92x Errata

AND8335/D. Design Examples of Module-to-Module Dual Supply Voltage Logic Translators. SIM Cards SDIO Cards Display Modules HDMI 1-Wire Sensor Bus

AN3980 Application note

AN10428 UART-SPI Gateway for Philips SPI slave bridges

CE95314 PSoC 3, PSoC 4, and PSoC 5LP EZI2C

XC2000 Family AP Application Note. Microcontrollers. XC2236N Drive Card Description V1.0,

[Type here] M907. Bluetooth 4.2 Low Energy/Zigbee/RF4CE/Thread SiP Module with MCU and integrated antenna

ST19WR08 Dual Contactless Smartcard MCU With RF UART, IART & 8 Kbytes EEPROM Features Contactless specific features

BOOST YOUR SYSTEM PERFORMANCE USING THE ZILOG ESCC CONTROLLER

UnRegistered MB39C602 LED LIGHTING SYSTEM BULB 9W ZIGBEE CONTROL USER MANUAL. Fujitsu Semiconductor Design (Chengdu) Co. Ltd.

Serial Peripheral Interface. What is it? Basic SPI. Capabilities. Protocol. Pros and Cons. Uses

AN3996 Application Note

Prototyping Module Datasheet

Emulating I2C Bus Master by using FlexIO

Chrontel CH7251A for USB Type-C Charger

STA bit single chip baseband controller for GPS and telematic applications. Features

USER GUIDE EDBG. Description

SBAT90USB162 Atmel. SBAT90USB162 Development Board User s Manual

CH7213A Brief Datasheet

XE166 Family AP Application Note. Microcontrollers. UConnect XE162N Hardware Description V1.0,

ezvision 200 Television Controllers with OSD

Emulating Dual SPI Using FlexIO

CHIP ON BOARD (COB) MODULE 1 WITH 8-BIT MCU KEYBOARD CONTROLLER

PREPAID ENERGY METER

ZSC31xxx / ZSSC3xxx. SSC Communication Board. Datasheet. Brief Description. Features. Benefits

ez80 Family of Microprocessors Zilog File System User Manual UM Copyright 2007 by Zilog, Inc. All rights reserved.

ST19NP18-TPM-I2C Trusted Platform Module (TPM) with I²C Interface Features

Raspberry Pi - I/O Interfaces

CooCox IDE Installation

ATAES132A Firmware Development Library. Introduction. Features. Atmel CryptoAuthentication USER GUIDE

ACE24C512C Two-wire serial EEPROM

Microcontroller basics

Hello, and welcome to this presentation of the STM32 I²C interface. It covers the main features of this communication interface, which is widely used

AN2737 Application note Basic in-application programming example using the STM8 I 2 C and SPI peripherals Introduction

Preliminary. PACKAGE - 28-pin MLP (5mm X 5mm) Example Circuit Diagram CP V. 48MHz Oscillator. USB Function Controller 512B EEPROM

PMBus Power System Management Protocol Specification Part I General Requirements, Transport And Electrical Interface

Implementing a Secure Digital Card with a ZNEO Microcontroller

HYDRA-X EH-PROTOx-1 Heads

MB39C602 LED LIGHTING SYSTEM BULB 9W ZIGBEE CONTROL

BLE121LR Bluetooth Smart Long Range Module 5/12/2014 1

Basics of UART Communication

Supported devices: CY8C29x66, CY8C27x43, CY8C28xxx, CY8C24x23, CY8C24x33, CY8C21x23, CY8C21x34, CY8C21x45, CY8C22x45, CY8C24x94

EMBEDDED SYSTEMS WITH ROBOTICS AND SENSORS USING ERLANG

LBAT90USB162 Atmel. LBAT90USB162 Development Board User s Manual

AT90SDC10X Summary Datasheet

etpu General Function Set (Set 1) David Paterson MCD Applications Engineer

QT3 Xplained Pro. Preface. Atmel QTouch USER GUIDE

Transcription:

Implementation of SMBus Master/Slave Protocol Application Brief Challenge The System Management Bus (SMBus) interface is used by Smart Batteries to pass Smart Battery Data (SBD) to external devices and systems. Zilog Z8 Encore! MC microcontrollers provide low-cost options for use in smart battery rechargers. Given: A 7.2 V Inspired Energy Smart Battery, model ND2017A24. Implement an SMBus interface between the battery and a Zilog microcontroller. Solution Use the tools in a Z8 Encore! MC motor control microcontroller (MCU) development kit to build the Smart Battery SMBus interface. Result Easy, low-cost implementation of an SMBus interface that integrates with inexpensive Zilog microcontroller-based battery chargers. Features and Functions Our simple master/slave SMBus interface provides the following features and functions: Simple, fast construction using readily available components. Smart Battery Data (SBD) output to the development kit console port. Supports the following SMBus protocol version 1 elements: Start condition. Repeat start condition. Read. Write. ACK or Not ACK. Stop condition. Hardware Circuit Details The SMBus protocol uses two-wire interface through which different system chips can communicate with each other and with the rest of the system. It is based on the principles of operation of I2C. SMBus uses the I2C physical layer for communication, making it possible for SMBus devices and I2C devices to communicate using the same bus. Refer to the simplified block diagram shown in Figure 1. We elected to use the Z8 Encore! MC motor control microcontroller development kit to design and test our master/slave SMBus protocol implementation. We chose the commonly available 7.2 V Inspired Energy Smart Battery, model ND2017A24, to use for testing purposes. This Smart Battery is SMBus version 1.0 compliant. The on-chip I2C hardware of Z8FMC16100 MCU is used along with its GPIO to implement the SMBus time-out feature. The I2C clock line is tied to one of the GPIO lines. The logical status of the clock at this GPIO is monitored. After the transaction is started on the I2C bus (SMBus), a timer is used to count the clock LOW period and detect SMBus time-out. Though we have not implemented them in this application brief, the two optional SMBus signals SMBSUS# and SMBALERT# are shown in the Figure 1. To implement SMBSUS#, configure a GPIO as an output port. This is pulled LOW by the SMBus host (Master/Slave Z8FMC16100) as it enters

2 power-saving mode. Once the host is in power-saving mode, no transactions occur on the SMBus. By sampling this line, other SMBus hosts on the network know that the network is in suspended mode. To activate the network, a SMBus slave device can alert the host using the SMBALERT# line. To implement SMBALERT#, configure a GPIO to be interrupt-driven so that it can drive the line. The SMBus slave device can then signal the master using SMBALERT#. Note: When using the FMC16100 in SMBus applications, Vdd must always be applied to the MCU in order to fulfill the SMBus leakage current requirement. Software Implementation The FMC16100 MCU in the Z8 Encore! MC development kit is configured to use the SMBus protocol to read information from the Inspired Energy Smart Battery. The MCU collects the information and makes it available through its UART to the development kit s console port, where it can be read using the HyperTerminal application on a PC. The Smart Battery contains circuitry which provides the following information via the SMBus: Charging voltage. Charging current. Temperature data. Charge complete status. When the Smart Battery charge drops below a predetermined level, it transmits data over the SMBus at regular intervals. It sends a start sequence that is identified by the FMC16100 MCU on the development kit. Once the start sequence has been transmitted, the Smart Battery sends its address and waits for acknowledgment (ACK) from the FMC16100 MCU. When the MCU acknowledges, the Smart Battery continues its communication sequence. If the MCU fails to acknowledge, the Smart Battery ends data communication and generates a STOP condition on the SMBus. All transactions on the SMBus are controlled by the FMC16100MCU. It is sometimes necessary to generate a delayed ACK/NACK in slave mode during the address and data byte transaction. We manage this by setting the IRM bit in the I2C Mode Register. The following APIs are used to implement the SMBus protocol: Generate Start/Stop condition. Send/Receive Byte. Write/Read Byte. Slave SMBus addressing. Bill of Materials The Z8 Encore! MC Motor Control Development Kit is required to implement this application. A 7.2 V Inspired Energy Smart Battery, model ND2017A24, is also required. Summary The Z8FMC16100 MCU contains its own I2C hardware, which is also used by the SMBus protocol. Implementation is therefore simplified. We also have used the MCU s GPIO is to implement other SMBus protocol requirements. Since the FMC16100 MCU supports Master/Slave I2C operation with arbitration support, it is possible to connect multiple Master/Slaves to the SMBus network. Project Enhancements A Power Management Bus (PMBus) protocol can also be implemented on the same SMBus physical layer. The FMC16100 MCU can therefore be used as a PMBus controller to configure, control and monitor other devices such as PWM controllers, DC/DC controllers, AC/DC converters, and so on.

3 Simplified Block Diagram Figure 1. Simplified Block Diagram of SMBus Master/Slave Interface Implementation

4 Applications and Support Tools The Z8 Encore! MC motor control microcontrollers are supported by the Opto-Isolated USB Smart Cable. The microcontroller is also supported by the ZDS II Z8 Encore! MC integrated development environment (IDE) with ANSI C-Compiler, available on www.zilog.com. Related Documentation More information about the Z8 Encore! MC FMC16100 described in this application brief is available in the following documents: Z8FMC16100 Series Flash Motor Control MCU Product Brief, PB0166 Z8 Encore! Motor Control Flash MCUs Z8FMC16100 Series Product Specification, PS0246 ez8 CPU User Manual, UM0128

5 LIFE SUPPORT POLICY: ZILOG'S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS PRIOR WRITTEN APPROVAL OF THE PRESIDENT AND GENERAL COUNSEL OF ZILOG CORPORATION. As used herein: Life support devices or systems are devices which (a) are intended for surgical implant into the body, or (b) support or sustain life and whose failure to perform when properly used in accordance with instructions for use provided in the labeling can be reasonably expected to result in a significant injury to the user. A critical component is any component in a life support device or system whose failure to perform can be reasonably expected to cause the failure of the life support device or system or to affect its safety or effectiveness. Document Disclaimer Zilog is a registered trademark of Zilog Inc. in the United States and in other countries. All other products and/or service names mentioned herein may be trademarks of the companies with which they are associated. 2007 by Zilog, Inc. All rights reserved. Information in this publication concerning the devices, applications, or technology described is intended to suggest possible uses and may be superseded. ZILOG, INC. DOES NOT ASSUME LIABILITY FOR OR PROVIDE A REPRESENTATION OF ACCURACY OF THE INFORMATION, DEVICES, OR TECHNOLOGY DESCRIBED IN THIS DOCUMENT. ZILOG ALSO DOES NOT ASSUME LIABILITY FOR INTELLECTUAL PROPERTY INFRINGEMENT RELATED IN ANY MANNER TO USE OF INFORMATION, DEVICES, OR TECHNOLOGY DESCRIBED HEREIN OR OTHERWISE. The information contained within this document has been verified according to the general principles of electrical and mechanical engineering.