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

Size: px
Start display at page:

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

Transcription

1 Application Note An SPI Temperature Sensor Interface with the Z8 Encore! SPI Bus AN Abstract This Application Note provides an overview of Zilog s Z8 Encore! Serial Peripheral Interface (SPI) controller along with a method to interface the Z8 Encore! MCU with an SPI temperature sensor. The SPI-compatible devices such as EEPROMs, Analog-to-Digital Converters (ADC) and Temperature Sensors are widely used in the industry. The Z8 Encore! MCU family features a comprehensive set of peripherals, including an SPI controller that helps reduce the external component requirement and product cost. Note: The source code file AN0127- SC01.zip associated with this Application Note is available for download at Z8 Encore! Flash MCU Overview Z8 Encore! products are based on Zilog s ez8 TM CPU and introduce Flash Memory to Zilog s extensive line of 8-bit microcontrollers. Flash Memory in-circuit programming capability allows for faster development time and program changes in the field. The high-performance register-toregister based architecture of the ez8 core maintains backward compatibility with Z8 MCU. Featuring ez8 CPU, the new Z8 Encore! microcontrollers combine a 20 MHz core with Flash Memory, linear-register SRAM, and an extensive array of on-chip peripherals. These peripherals make the Z8 Encore! MCU suitable for various applications including motor control, security systems, home appliances, personal electronic devices, and sensors. Discussion A brief description of the SPI bus, SPI Controller and the SPI temperature sensor is provided below: SPI Bus Overview Z8 Encore! SPI Controller DS1722 Temperature Sensor Overview SPI Bus Overview The SPI is a synchronous interface allowing several SPI-type devices to be interconnected. In an SPI environment, there is always at least one device designated as the SPI master while the other SPI-type devices are designated as slave SPI devices. The SPI master device initiates and performs the required data transfers with a slave device. A slave device cannot initiate an SPI transfer (using the SPI control signals) and must be addressed by the master to enable it to communicate. The SPI master generates the SPI clock required for each transfer (1 data bit shifts in/out for each clock period). The master device also selects the slave device for communication. The data transfer mode is a fullduplex mode. SPI Bus Operation SPI is a full duplex, synchronous, characteroriented channel that supports a four-wire interface (serial clock, transmit, receive, and slave select). The SPI block consists of a transmitter and receiver section, a Baud Rate (clock) Generator (BRG) and a control unit. The transmitter and the receiver sections use the same clock. Copyright 2008 by Zilog, Inc. All rights reserved.

2 During an SPI transfer, both the master and the slave SPI devices send and receive data simultaneously. The data and the serial clock require separate signals. When an SPI transfer occurs, a multi-bit (typically 8-bit) character is shifted out, on one data pin and a multi-bit character is simultaneously shifted in on a second data pin. An 8-bit shift register in the master and another 8-bit shift register in the slave transmit and receive data on the SPI interface. The SPI shift register is a single byte register in both the transmit and receive directions. New data to be transmitted cannot be written into the shift register until the previous transmission is complete, and the received data (if valid) is read. SPI Signals The four basic SPI signals are: MISO (Master-In/Slave-Out) MOSI (Master-Out/Slave-In) SCK (SPI Serial Clock) SS (Slave Select) For detailed description on SPI signals, refer to the appropriate document. Z8 Encore! SPI Controller Features of the Z8 Encore! SPI Controller include: Full-duplex, synchronous, character-oriented communication Four wire interface Data transfer rates up to a maximum of one-fourth the system clock frequency Error detection Write and mode collision detection Dedicated Baud Rate Generator (BRG) DS1722 Temperature Sensor Overview The DS1722 Digital Thermometer (referred to as Temperature Sensor in this document) with an SPI Interface provides temperature readings that indicate the temperature of the device. No additional components are required. The device is a temperature-to-digital converter. Temperature readings are communicated from the DS1722 Temperature Sensor over an SPI interface. For applications that require greater temperature resolution, you can adjust the readout resolution from 8 to 12 bits by changing bits R2, R1, and R0 in the configuration or status register (see Configuration Register Programming on page 3). The DS1722 Temperature Sensor consists of four major components: Precision thermometer Analog-to-Digital Converter SPI/3-wire interface electronics Data registers The DS1722 Temperature Sensor requires no external components. After power-up, you can alter the configuration register to place the device in a continuous temperature conversion mode or in a one-shot conversion mode. In the continuous conversion mode, the DS1722 Temperature Sensor continuously converts the temperature and stores the result in the temperature register. As conversions are performed in the background, reading the temperature register does not affect the conversion that is in progress. In the one-shot temperature conversion mode, the DS1722 Temperature Sensor performs a single temperature conversion, stores the result in the temperature register and returns to the shutdown state. This conversion mode is ideal for powersensitive applications. AN Page 2 of 18

3 The temperature conversion results have a default resolution of 9 bits. In applications where small incremental temperature changes are critical, you can change the conversion resolution from 9 bits to 10 bits, 11 bits, or 12 bits, all of which can be accomplished by programming the Configuration register. Each additional bit of resolution approximately doubles the conversion time V DDD CE SCLK GND V DDA SER MODE SDI SDO Pin Description SERMODE - Serial Interface Mode CE - Chip Enable SCLK - Serial Clock GND - Ground V DDA - Analog Supply Voltage SDO - Serial Data Out SDI - Serial Data In V DDD - Digital Supply Voltage Figure 1. Pin Assignment for DS1722 Configuration Register Programming The Configuration register is accessed in the DS1722 at address 00h for a read operation and at address 80h for a write operation. During SPI communication, data is first read from or written to the Configuration register. Table 1 displays the format of the Configuration register. SD is the shutdown bit and 1SHOT is the one shot/continuous temperature conversion bit. The entire register is volatile, and it powers-up in the default state. R0, R1, and R2 (see Table 2) are thermometer resolution bits. Table 1. Configuration/Status Register SHOT R2 R1 R0 SD MSB LSB Table 2. Thermometer Resolution Configuration R2 R1 R0 Thermometer Resolution Maximum Conversion Time bit 0.075s bit 0.15s bit 0.3s bit 0.6s 1 X X 12-bit 1.2s AN Page 3 of 18

4 Register Address Structure of DS1722 The area of interest in programming the DS1722 is the Configuration register. The programming is performed through the SPI communication interface by selecting the appropriate address of the desired register location. Table 3 lists the addresses for configuration and temperature registers. Table 3. Address Structure Read Address Write Address Active Register 00h 80h Configuration 01h No Access Temperature LSB 02h No Access Temperature MSB Z8 Encore! Interface to DS1722 Temperature Sensor Figure 2 displays the hardware setup of the Z8 Encore! MCU with DS1722 Temperature Sensor. In this setup, the microcontroller [MCU- Z8F6403] is the master device and the DS1722 Temperature Sensor is the slave device. Z8 Encore! SPI Device Driver The device driver software implementation provided here demonstrates the SPI capability of Z8 Encore! MCU. The main operations performed by the SPI device driver include: Initializing the SPI Port Writing Data to the Port, and Reading Data from the SPI Port MCU-Z8F6403 PC2/SS PC4 / MOSI PC5 / MISO PC3 / SCK Thermometer DS1722 CE SDI SDO SCLK Figure 2. Z8 Encore! SPI Bus as Master in a Single Master, Single Slave System Interfacing SPI Temperature Sensor with Z8 Encore! MCU The hardware interfacing details and the device driver software implementation are provided in the following sections: Z8 Encore! Interface to DS1722 Temperature Sensor Z8 Encore! SPI Device Driver The Temperature Sensor specific operations include: Initializing the Temperature Sensor Reading from the Temperature Sensor The source code allows temperature readings from the sensor in the standalone mode displayed in Figure 3 on page 10. The actual write or read APIs can be easily exported into any user application. AN Page 4 of 18

5 Table 4. Register bits used for initialization of SPI Port Register Name Bit Name Explanation SPICTL PHASE; CLKPOL PHASE bit is set to 1 and Clock Polarity (CLKPOL) bit is set to 0 to select data transmission on the rising edge and data reception on the falling edge of the clock. MMEN MMEN bit is set to enable the SPI controller to Master mode. SPIEN SPIEN bit is set to enable the SPI bus. SPIMODE SSIO SSIO bit is set to 1 to configure the SS pin as an output (for Master mode only) SPIBRH SPIBRL BRH BRL BRH bit is set to 0 and BRL bit is set to 9C to get the baud rate bps at MHz. For information on the bit fields of the registers, see Z8 Encore! SPI Register Description on page 6. Initializing the SPI Port This routine initializes a specified port (Port C) for SPI function, sets the baud rate and the mode of operation. Table 4 lists the registers and their bit descriptions. Writing Data to the Port This routine describes the data write functionality of the SPI device driver. The data written to the SPI port are either the device register address or the control word for configuring the device. The main functions in the SPI data write operation include: Setting the SSV bit High, enabling the chip select. Writing the address byte into SPI data register. Waiting for buffer to empty. Writing the data byte into SPI data register. Waiting for buffer to empty. Setting the SSV bit LOW to disable the chip select. Reading Data from the SPI Port This routine describes the data read functionality of the SPI device driver. The data that is read from the SPI port is the temperature reading of the device that was addressed by the write operation. The main functions in the SPI data read operation include: Setting the SSV bit High, in the SPI mode register, enabling the chip select. Writing the address byte into SPI data register. Waiting for buffer to empty. Shifting data from Temperature Sensor to SPI data register. Waiting for buffer to empty. Reading the data byte from the SPI data register. Setting the SSV bit Low to disable the chip select. Initializing the Temperature Sensor This routine describes initialization of the Temperature Sensor. Initialization varies from device to device. In this example, the sensor is initialized for 12-Bit ADC resolution and continuous operating mode. AN Page 5 of 18

6 Reading from the Temperature Sensor This routine is the main routine for reading the temperature from the Temperature Sensor. The three Temperature Sensor APIs are: Temperature Sensor initialization Read SPI Write SPI The Temperature Sensor can convert the data continuously. A timer is set to generate interrupts periodically to read the temperature from the sensor. The temperature reading from the sensor is therefore performed within the timer interrupt routine. SPI Baud Rate High and Low Byte Registers The SPI Baud Rate High and Low Byte registers combine to form a 16-bit reload value, BRG[15:0], for the SPI Baud Rate Generator. The reload value must be greater than or equal to 0002H for proper SPI operation (maximum baud rate is system clock frequency divided by 4). The SPI baud rate is calculated by the following equation: SPI Baud Rate (bits/s) = System Clock Frequency (Hz) 2 x BRG [15:0] Z8 Encore! SPI Register Description The Z8 Encore! SPI registers are briefly described in this section. SPI Control Registers The following registers comprise the SPI control registers and can be custom configured (see Table 5 through Table 10): SPI Data register (SPIDATA) SPI Control register (SPICTL) SPI Status register (SPISTAT) SPI Mode register (SPIMODE) SPI Baud Rate High Byte register (SPIBRH) SPI Baud Rate Low Byte register (SPIBRL) AN Page 6 of 18

7 Table 5. SPI Data Register (SPIDATA) BITS FIELD DATA RESET X X X X X X X X R/W R/W R/W R/W R/W R/W R/W R/W R/W ADDR F60H Bit Position Value (H) Description [7:0] DATA Transmit/receive data Table 6. SPI Control Register (SPICTL) BITS FIELD IRQE STR BIRQ PHASE CLKPOL WOR MMEN SPIEN RESET R/W R/W R/W R/W R/W R/W R/W R/W R/W ADDR F61H Bit Position Value (H) Description [7] IRQE Interrupt Request Enable [6] STR Start an SPI Interrupt Request [5] BIRQ BRG Timer Interrupt Request [4] PHASE Phase Select [3] CLKPOL Clock Polarity [2] WOR Wire-OR(Open-Drain)Mode Enable [1] MMEN SPI Master Mode Enable [0] SPIEN SPI Enable AN Page 7 of 18

8 Table 7. SPI Status Register (SPISTAT) BITS FIELD IRQ OVR COL Reserved TXST SLAS RESET R/W R/W* R/W* R/W* R R R ADDR F62H Note: R/W*-Read access. Write 1 to clear the bit to 0. Bit Position Value (H) Description [7] IRQ Interrupt Request [6] OVR Overrun [5] COL Collision [4:2] Reserved These bits are reserved and must be 0 [1] TXST Transmit Status [0] SLAS Slave Select (If SPI is enabled as a Master, this bit is not applicable) Table 8. SPI Mode Register (SPIMODE) BITS FIELD RESERVED NUMBITS [2:0] SSIO SSV RESET R/W R R/W R/W R/W R/W R/W ADDR F63H Bit Position Value (H) Description [7:5] Reserved These bits are reserved and must be 0 [4:2] NUMBITS[2:0] Number of Date Bits to Transfer [1] SSIO Slave Select I/O [0] SSV Slave Select Value (The SSV bit has no effect if SSIO=0 or SPI configured as a Slave) AN Page 8 of 18

9 Table 9. SPI Baud Rate High Byte Register (SPIBRH) BITS FIELD BRH RESET R/W R/W R/W R/W R/W R/W R/W R/W R/W ADDR F66H Bit Position Value (H) Description [7:0] BRH SPI Baud Rate High Byte Table 10. SPI Baud Rate Low Byte Register (SPIBRL) BITS FIELD BRL RESET R/W R/W R/W R/W R/W R/W R/W R/W R/W ADDR F67H Bit Position Value (H) Description [7:0] BRL SPI Baud Rate Low Byte For more details on registers, refer to ez80 CPU User Manual (UM0077). Testing Figure 3 on page 10 displays the setup used to test the SPI Temperature Sensor s device driver functionality. AN Page 9 of 18

10 Logic State Analyzer 8-Bit 8-Bit CLK Z8F6403 MCU Port G Port E PC2 - SS PC4 - MOSI PC5 - MISO PC3 - SCK SPI Temperature Sensor DS 1722 Figure 3. Test Setup for Z8 Encore! SPI Device Driver The equipment used for testing are listed below: Z8 Encore! Flash Microcontroller Development Kit (Z8ENCORE000ZCO), that contains the ZDS II- Z8 Encore! v4.1.0 Logic state analyzer- HP1661A The Logic State Analyser is used to capture the binary data from the SPI device driver through Ports G and E of the Z8 Encore! MCU. A test program is written to send the data from the device driver to Port G and Port E. To view this program, refer to the software project files. Alternatively, a PC with the HyperTerminal application, connected through the UART port can also be used to capture the test results, with a test program written specifically for the same. Summary This Application Note provides an overview of the SPI bus and the APIs to interface Z8 Encore! SPI (in master mode) with a DS1722 Temperature Sensor in a slave mode. These SPI device driver APIs can also be used with other devices like ADC and EEPROM, with minimum modification. References The documents associated with Z8 Encore!, ez8 CPU, and DS1722 are provided below: ez8 TM CPU User Manual (UM0128) DS1722 Digital Thermometer with SPI/3-Wire Interface (DS1722) Using the SPI device driver software, the temperature readings (binary data) were successfully taken from the DS1722 Temperature Sensor present on the Z8 Encore! Development Board. AN Page 10 of 18

11 Appendix A Glossary Table 11 lists the definitions for terms and abbreviations used in this Application Note. Table 11. Glossary Terms/Abbreviations API CPU GPIO HEX MCU MISO MOSI SCK SS SPI ZDS Definitions Application Programming Interface Central Processing Unit General-Purpose Input/Output Hexadecimal Microcontroller Unit Master-In/Slave-Out Master-Out/Slave-In SPI Serial Clock Slave Select Serial Peripheral Interface Zilog Developer Studio AN Page 11 of 18

12 Appendix B Flowcharts This appendix contains the flowcharts for the SPI temperature sensor application described in this Application Note. Figure 4 displays the initialization of SPI Device Driver in which the baud rate bps is calculated for MHz clock speed. START Configure Port C for alternate function to enable the SPI Initialize SPI control register PHASE = 1[rising edge] MODE = MASTER MODE SPIEN = ENABLE SPI Configure SPI mode register bit SSIO as an output Configure the baud rate generator Set BRG = 0x009C [59076 bits/sec] END Figure 4. Z8 Encore! SPI Initialization Routine AN Page 12 of 18

13 Figure 5 displays the data write routine of the SPI device driver. START Set SSV bit = 1 in SPI MODE Register Write to SPI Data Register (SPI Data=address) Tx buffer empty? NO YES Write to SPI Data Register (SPI Data=data) Tx buffer empty? NO YES Set SSV bit = 0 in SPI MODE Register END Figure 5. SPI Device Driver Write Routine AN Page 13 of 18

14 Figure 6 displays the data read routine of the SPI device driver. START Set SSV bit = 1 in SPI MODE Register Write to SPI Data Register (SPI Data=address) Tx buffer empty? NO YES Write to SPI Data Register (SPI Data=0x00) Tx buffer empty? NO YES Read from SPI Data Register (Data=SPI Data) Set SSV bit=0 in SPI MODE Register END Figure 6. SPI Device Driver Read Routine AN Page 14 of 18

15 Figure 7 displays the routine for Temperature Sensor initialization. This routine varies from device to device. Here, the sensor is initialized for 12-bit ADC resolution and continuous operating mode. START Call function to write the control word for 12-bit resolution and continuous ADC operation to SPI slave device END Figure 7. Temperature Sensor Initialization AN Page 15 of 18

16 Figure 8 displays the flowchart for the routine to read from the temperature sensor. Temperature reading is controlled by the interrupt. START Initialize the SPI controller Initialize the SPI temperature sensor by calling the initialization routine Initialize timer to generate interrupt for reading the temperature NO Interrupt generated? YES Read HIGH data byte from Temperature sensor Read LOW data byte from Temperature sensor Figure 8. Reading from the Temperature Sensor AN Page 16 of 18

17 Appendix C Examples of Z8 Encore! SPI Bus Operating Modes This appendix displays example for the operating modes which suggest ways to connect the master or slave device with Z8 Encore! MCU. Z8 Encore! can be used in other modes as well. Figure 8 displays SPI of Z8 Encore! configured as master in a Single Master Multiple Slave system. In this mode, the SS pin of SPI interface can be tied to the V CC, and the GPIO pins can be used as a chip select. Multiple sensors can be connected in parallel and the data can be read one at a time by selecting the sensor chip, using the CE signal. PC2 - SS V CC SPI Temp. Sensor DS1722 (Sensor -1) MCU-Z8F603 GPIO - SS1 GPIO - SS2 PC4 - MOSI PC5 - MISO PC3 - SCK SPI Temp. Sensor DS1722 (Sensor -2) Figure 8. SPI configured as a Master in a Single Master, Multiple Slave System Figure 9 displays SPI of Z8 Encore! configured as a slave. The SS pin and CLK pin are used as input pins. PC2 - SS MCU-Z8F6403 PC4 - MOSI PC5 - MISO PC3 - SCK SPI Master Device Figure 9. SPI Configured as a Slave in a Single Master Single Slave System AN Page 17 of 18

18 Warning: DO NOT USE IN LIFE SUPPORT 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 2008 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. Z8, Z8 Encore!, and Z8 Encore! XP are registered trademarks of Zilog, Inc. ez8 is a trademark of Zilog, Inc. All other product or service names are the property of their respective owners. AN Page 18 of 18

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

Getting Started with ESPI Interface Using the Z8 Encore! XP F1680 Application Note Getting Started with ESPI Interface Using the Z8 Encore! XP F1680 AN027301-0308 Abstract This application note demonstrates how to use the Enhanced Serial Peripheral Interface (ESPI) in

More information

Using the Z8051 MCU s USI Peripheral as an SPI Interface

Using the Z8051 MCU s USI Peripheral as an SPI Interface Using the Z8051 MCU s USI Peripheral as an SPI Interface AN035901-0513 Abstract This document describes how to configure Zilog s Z8051 Universal Serial Interface (USI) peripheral to operate as Serial Peripheral

More information

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

High Resolution Digital Weigh-Scale Design Using Z8 Encore! Microcontrollers Application te High Resolution Digital Weigh-Scale Design Using Z8 Encore! Microcontrollers AN025404-0608 Abstract This application note describes the development and use of a Digital Weigh-Scale (DWS)

More information

EEPROM Emulation with the ez80f91 MCU. Discussion

EEPROM Emulation with the ez80f91 MCU. Discussion Application Note EEPROM Emulation with the ez80f91 MCU AN015803-0608 Abstract This Application Note describes a method to utilize a portion of Zilog s ez80acclaimplus! MCU s Flash memory to emulate the

More information

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

Interfacing Z8 Encore! XP MCUs with an I 2 C-Based Character LCD Application Note Interfacing Z8 Encore! XP MCUs with an I 2 C-Based Character LCD AN014902-1207 Abstract This Application Note describes APIs for interfacing one or more I 2 C-based character LCDs with

More information

Real Time Embedded Systems. Lecture 1 January 17, 2012

Real Time Embedded Systems.  Lecture 1 January 17, 2012 SPI 4-Wire 3-Wire Real Time Embedded Systems www.atomicrhubarb.com/embedded Lecture 1 January 17, 2012 Topic Section Topic Where in the books Catsoulis chapter/page Simon chapter/page Zilog UM197 (ZNEO

More information

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

Challenge. Hardware Circuit Details. Solution. Result. Features and Functions. Z8 Encore! MC 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

More information

Flash Loader Utility for the Z8 Encore! XP MCU

Flash Loader Utility for the Z8 Encore! XP MCU Application Note Flash Loader Utility for the Z8 Encore! XP MCU AN011806-0408 Abstract This application note describes Flash Loader utility for the Zilog s Z8 Encore! XP MCU that can be operated through

More information

Lecture 14 Serial Peripheral Interface

Lecture 14 Serial Peripheral Interface www.atomicrhubarb.com/systems Lecture 14 Serial Peripheral Interface Section Topic Where in the books Zilog PS220 "Enhanced Serial Peripheral Interface" Assorted datasheets Synchronous Serial Buses 1-wire

More information

PIN ASSIGNMENT PIN DESCRIPTION

PIN ASSIGNMENT PIN DESCRIPTION www.dalsemi.com FEATURES Temperature measurements require no external components Measures temperatures from -55 C to +120 C. Fahrenheit equivalent is -67 F to +248 F Thermometer accuracy is ±2.0 C Thermometer

More information

Z8 Encore! XP F0822 Series

Z8 Encore! XP F0822 Series High Performance 8-Bit Microcontrollers Z8 Encore! XP F0822 Series Product Brief PB011112-0308 Overview Zilog s Z8 Encore! XP F0822 Series devices are microcontrollers based on Zilog s ez8 CPU. Z8 Encore!

More information

Boot Loader for the Z51F6412 MCU

Boot Loader for the Z51F6412 MCU Boot Loader for the Z51F6412 MCU AN037701-0215 Abstract This application note discusses how to create a boot loader program for the Z51F6412 microcontroller, a member of Zilog s Z8051 Family of Microcontrollers.

More information

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

Z8 Encore! XP F1680 Series 8-Bit Flash Solution with Extended Peripherals Embedded Flash Solutions Z8 Encore! XP F1680 Series High-performance 8-bit Flash MCU F1680 advantage low power - 1.8 V highly integrated peripherals flexible memory options optimized cost/performance target

More information

An Automatic Temperature Control System Using RZK

An Automatic Temperature Control System Using RZK Application Note An Automatic Temperature Control System Using RZK AN019902-0908 Abstract This application note demonstrates how an application running on Zilog s Real-Time Kernel (RZK) can be used to

More information

Character LCD Interface for ez80acclaim! MCUs

Character LCD Interface for ez80acclaim! MCUs Application Note Character LCD Interface for ez80acclaim! MCUs AN015902-0708 Abstract This Application Note provides Character LCD driver routines, coded in ANSI C, for Zilog s ez80acclaim! Flash microcontroller-based

More information

S3 Flash In-System Programmer

S3 Flash In-System Programmer S3 Family of Microcontrollers S3 Flash In-System Programmer UM026604-0816 PRELIMINARY Copyright 2016 Zilog, Inc. All rights reserved. www.zilog.com ii Warning: DO NOT USE THIS PRODUCT IN LIFE SUPPORT SYSTEMS.

More information

A Simple Console Application for Z8 Encore! XP MCUs

A Simple Console Application for Z8 Encore! XP MCUs A Simple Console Application for Z8 Encore! XP MCUs AN034201-1112 Abstract Console applications are widely used by engineers for ease of project development. For this reason, Zilog has developed a simple

More information

Zilog Real-Time Kernel

Zilog Real-Time Kernel An Company Configurable Compilation RZK allows you to specify system parameters at compile time. For example, the number of objects, such as threads and semaphores required, are specez80acclaim! Family

More information

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

Universal Motor Control with Z8 Encore! XP 8-Pin Highly Integrated Microcontroller Application Note Universal Motor Control with Z8 Encore! XP 8-Pin Highly Integrated Microcontroller AN050-0608 Abstract This Application Note discusses programmable speed control of a Universal Motor using

More information

5x7 LED Matrix Display with Z8 Encore! XP

5x7 LED Matrix Display with Z8 Encore! XP Application Note 5x7 LED Matrix Display with Z8 Encore! XP AN014402 1207 Abstract This application note explains the method to use Zilog s Z8 Encore! XP microcontroller s General-Purpose Input/Output (GPIO)

More information

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

High-Performance 8-Bit Microcontrollers. Up to 8 10-Bit ADC Channels. Two 16-Bit Timers/PWM. Internal Precision Oscillator High-Performance 8-Bit Microcontrollers Z8 Encore! 4K Series QuickTime and a BMP decompressor are needed to see this picture. Product Block Diagram 1 4 KB Watch-Dog Timer with RC Oscillator Analog UART

More information

Microcontrollers and Interfacing

Microcontrollers and Interfacing Microcontrollers and Interfacing Week 10 Serial communication with devices: Serial Peripheral Interconnect (SPI) and Inter-Integrated Circuit (I 2 C) protocols College of Information Science and Engineering

More information

Z8 Encore! XP 4K Series with extended Peripherals

Z8 Encore! XP 4K Series with extended Peripherals High-Performance 8-Bit Microcontrollers Z8 Encore! XP 4K Series with extended Peripherals PB013603-0604 PRELIMINARY Product Block Diagram 1 4KB Two 16-Bit Timers/PWM Watch-Dog Timer with RC Oscillator

More information

Introduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide

Introduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide Introduction the Serial Communications Huang Sections 9.2,.2 SCI Block User Guide SPI Block User Guide Parallel Data Transfer Suppose you need to transfer data from one HCS2 to another. How can you do

More information

C8051F700 Serial Peripheral Interface (SPI) Overview

C8051F700 Serial Peripheral Interface (SPI) Overview C8051F700 Serial Peripheral Interface (SPI) Overview Agenda C8051F700 block diagram C8051F700 device features SPI operation overview SPI module overview Where to learn more 2 Introducing The C8051F700

More information

Design and development of embedded systems for the Internet of Things (IoT) Fabio Angeletti Fabrizio Gattuso

Design and development of embedded systems for the Internet of Things (IoT) Fabio Angeletti Fabrizio Gattuso Design and development of embedded systems for the Internet of Things (IoT) Fabio Angeletti Fabrizio Gattuso Microcontroller It is essentially a small computer on a chip Like any computer, it has memory,

More information

< W3150A+ / W5100 Application Note for SPI >

< W3150A+ / W5100 Application Note for SPI > < W3150A+ / W5100 Application Note for SPI > Introduction This application note describes how to set up the SPI in W3150A+ or W5100. Both the W3150A+ and W5100 have same architecture. W5100 is operated

More information

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

ZLF645 Crimzon Flash Microcontroller with ZBase Database Industry Leading Universal Infrared Remote Control (UIR) Solution digital infrared Solutions CRIMZON ZLF645 Flash MCU uir solution with zbase database CRIMZON ZLF645 advantage 32/64 kb flash 512 b/1 kb ram crimzon z8 lxmc core ir transmission ir learning tuned ir amplifier

More information

Set Up a PLL Loop Filter on the ez80f91 MCU

Set Up a PLL Loop Filter on the ez80f91 MCU Application Note Set Up a PLL Loop Filter on the ez80f91 MCU AN017504-0108 Abstract This document provides information that will help an application developer effectively use the ez80f91 MCU s on-chip

More information

Serial Peripheral Interface (SPI) Host Controller Data Sheet

Serial Peripheral Interface (SPI) Host Controller Data Sheet Serial Peripheral Interface (SPI) Host Controller Data Sheet Proven System Block (PSB) for QuickLogic Customer Specific Standard Products (CSSPs) Features Supports Master configuration (Multi-Master configuration

More information

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

Zatara Series ARM ASSP High-Performance 32-bit Solution for Secure Transactions 1 ARM-BASED ASSP FOR SECURE TRANSACTIONS ZATARA SERIES 32-BIT ARM ASSP PB022106-1008 ZATARA SERIES ADVANTAGE SINGLE-CHIP SOLUTION BEST FEATURE SET IN POS PCIPED PRE-CERTIFIED EMV L1 CERTIFIED TOTAL SOLUTION

More information

Serial Communication Controllers (SCC) MULTIPROTOCOL DATA COMMUNICATION SOLUTIONS

Serial Communication Controllers (SCC) MULTIPROTOCOL DATA COMMUNICATION SOLUTIONS Serial Communication Controllers (SCC) MULTIPROTOCOL DATA COMMUNICATION SOLUTIONS SCC ADVANTAGES SUMMARY MULTIPLE CLOCK SPEEDS MULTIPLE PACKAGES MULTIPLE PROTOCOLS TARGET APPLICATIONS COMPUTER PERIPHERALS

More information

Digital Thermometers and Thermostats with SPI/3-Wire Interface

Digital Thermometers and Thermostats with SPI/3-Wire Interface 19-5629; Rev 0; 11/10 Digital Thermometers and Thermostats General Description The digital thermometers and thermostats with an SPI /3-wire interface provide temperature readings that indicate the device

More information

Application Note, V1.0, Jul AP XC16x. Interfacing the XC16x Microcontroller to a Serial SPI EEPROM. Microcontrollers

Application Note, V1.0, Jul AP XC16x. Interfacing the XC16x Microcontroller to a Serial SPI EEPROM. Microcontrollers Application Note, V1.0, Jul. 2006 AP16095 XC16x Interfacing the XC16x Microcontroller to a Serial SPI EEPROM Microcontrollers Edition 2006-07-10 Published by Infineon Technologies AG 81726 München, Germany

More information

AN10428 UART-SPI Gateway for Philips SPI slave bridges

AN10428 UART-SPI Gateway for Philips SPI slave bridges UART-SPI Gateway for Philips SPI slave bridges Rev. 01 7 March 2006 Application note Document information Info Keywords Abstract Content UART-SPI Gateway, UART to SPI, RS-232 to SPI The UART-SPI Gateway

More information

UART TO SPI SPECIFICATION

UART TO SPI SPECIFICATION UART TO SPI SPECIFICATION Author: Dinesh Annayya dinesha@opencores.org Table of Contents Preface... 3 Scope... 3 Revision History... 3 Abbreviations... 3 Introduction... 3 Architecture... 4 Baud-rate generator

More information

OUTLINE. SPI Theory SPI Implementation STM32F0 SPI Resources System Overview Registers SPI Application Initialization Interface Examples

OUTLINE. SPI Theory SPI Implementation STM32F0 SPI Resources System Overview Registers SPI Application Initialization Interface Examples SERIAL PERIPHERAL INTERFACE (SPI) George E Hadley, Timothy Rogers, and David G Meyer 2018, Images Property of their Respective Owners OUTLINE SPI Theory SPI Implementation STM32F0 SPI Resources System

More information

Section 5 SERCOM. Tasks SPI. In this section you will learn:

Section 5 SERCOM. Tasks SPI. In this section you will learn: Section 5 SERCOM SPI Tasks In this section you will learn: SPI protocol SERCOM Engine on SAMD20 How to use SERRCOM in SPI mode Implementation of SPI communication 04/12/2013 Table of Contents 1. The SPI

More information

AN510 Using SPI protocol with pressure sensor modules

AN510 Using SPI protocol with pressure sensor modules 1 USING SPI PROTOCOL WITH PRESSURE SENSOR MODULES This application note describes the possibility of communication between a microcontroller and MEAS Switzerland's pressure sensor modules (MS55XX series)

More information

Universität Dortmund. IO and Peripheral Interfaces

Universität Dortmund. IO and Peripheral Interfaces IO and Peripheral Interfaces Microcontroller System Architecture Each MCU (micro-controller unit) is characterized by: Microprocessor 8,16,32 bit architecture Usually simple in-order microarchitecture,

More information

spi 1 Fri Oct 13 13:04:

spi 1 Fri Oct 13 13:04: spi 1 Fri Oct 1 1:: 1.1 Introduction SECTION SERIAL PERIPHERAL INTERFACE (SPI) The SPI module allows full-duplex, synchronous, serial communication with peripheral devices.. Features Features of the SPI

More information

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

Product Update. Errata to Z8 Encore! 8K Series Silicon. Z8 Encore! 8K Series Silicon with Date Codes 0402 and Later Product Update Errata to Z8 Encore! 8K Series Silicon Z8 Encore! 8K Series Silicon with Date Codes 0402 and Later The errata listed in Table 1 are found in the Z8 Encore! 8K Series devices with date codes

More information

Interfacing Techniques in Embedded Systems

Interfacing Techniques in Embedded Systems Interfacing Techniques in Embedded Systems Hassan M. Bayram Training & Development Department training@uruktech.com www.uruktech.com Introduction Serial and Parallel Communication Serial Vs. Parallel Asynchronous

More information

Embedded Systems and Software. Serial Interconnect Buses I 2 C (SMB) and SPI

Embedded Systems and Software. Serial Interconnect Buses I 2 C (SMB) and SPI Embedded Systems and Software Serial Interconnect Buses I 2 C (SMB) and SPI I2C, SPI, etc. Slide 1 Provide low-cost i.e., low wire/pin count connection between IC devices There are many of serial bus standards

More information

Implementing a Secure Digital Card with a ZNEO Microcontroller

Implementing a Secure Digital Card with a ZNEO Microcontroller Implementing a Secure Digital Card with a ZNEO Microcontroller AN032001-1211 Abstract The ability of embedded devices to store data or a volume of data is widespread across multiple industries. The need

More information

SPI Overview and Operation

SPI Overview and Operation White Paper Abstract Communications between semiconductor devices is very common. Many different protocols are already defined in addition to the infinite ways to communicate with a proprietary protocol.

More information

EE 456 Fall, Table 1 SPI bus signals. Figure 1 SPI Bus exchange of information between a master and a slave.

EE 456 Fall, Table 1 SPI bus signals. Figure 1 SPI Bus exchange of information between a master and a slave. EE 456 Fall, 2009 Notes on SPI Bus Blandford/Mitchell The Serial Peripheral Interface (SPI) bus was created by Motorola and has become a defacto standard on many microcontrollers. This is a four wire bus

More information

M68HC08 Microcontroller The MC68HC908GP32. General Description. MCU Block Diagram CPU08 1

M68HC08 Microcontroller The MC68HC908GP32. General Description. MCU Block Diagram CPU08 1 M68HC08 Microcontroller The MC68HC908GP32 Babak Kia Adjunct Professor Boston University College of Engineering Email: bkia -at- bu.edu ENG SC757 - Advanced Microprocessor Design General Description The

More information

LABORATORIO DI ARCHITETTURE E PROGRAMMAZIONE DEI SISTEMI ELETTRONICI INDUSTRIALI. Laboratory Lesson 9: Serial Peripheral Interface (SPI)

LABORATORIO DI ARCHITETTURE E PROGRAMMAZIONE DEI SISTEMI ELETTRONICI INDUSTRIALI. Laboratory Lesson 9: Serial Peripheral Interface (SPI) LABORATORIO DI ARCHITETTURE E PROGRAMMAZIONE DEI SISTEMI ELETTRONICI INDUSTRIALI Laboratory Lesson 9: Serial Peripheral Interface (SPI) Prof. Luca Benini Prof Davide Rossi

More information

Emulating Dual SPI Using FlexIO

Emulating Dual SPI Using FlexIO Freescale Semiconductor, Inc. Document Number: AN5242 Application Note Rev. 0, 01/2016 Emulating Dual SPI Using FlexIO 1. Introduction This application note discusses one example of how to use FlexIO module

More information

Introduction to I2C & SPI. Chapter 22

Introduction to I2C & SPI. Chapter 22 Introduction to I2C & SPI Chapter 22 Issues with Asynch. Communication Protocols Asynchronous Communications Devices must agree ahead of time on a data rate The two devices must also have clocks that are

More information

MOS INTEGRATED CIRCUIT

MOS INTEGRATED CIRCUIT DATA SHEET MOS INTEGRATED CIRCUIT µpd6708 IEBus (Inter Equipment Bus ) PROTOCOL CONTROL LSI DESCRIPTION The µpd6708 is a peripheral LSI for microcontrollers that controls the protocol of the IEBus. This

More information

Z8 Encore! XP/Z8 Encore! Development Kits

Z8 Encore! XP/Z8 Encore! Development Kits Z8 Encore! XP/Z8 Encore! Development Kits QS004311-0111 Introduction This describes how to set up Zilog s Z8 Encore! XP/Z8 Encore! Development Kits and start using them to build designs and applications

More information

Serial Communication. Simplex Half-Duplex Duplex

Serial Communication. Simplex Half-Duplex Duplex 1.5. I/O 135 Serial Communication Simplex Half-Duplex Duplex 136 Serial Communication Master-Slave Master Master-Multi-Slave Master Slave Slave Slave (Multi-)Master Multi-Slave Master Slave Slave Slave

More information

SPI Block User Guide V02.07

SPI Block User Guide V02.07 DOCUMENT NUMBER S12SPIV2/D SPI Block User Guide V02.07 Original Release Date: 21 JAN 2000 Revised: 11 Dec 2002 Motorola, Inc. Motorola reserves the right to make changes without further notice to any products

More information

RL78 Serial interfaces

RL78 Serial interfaces RL78 Serial interfaces Renesas Electronics 00000-A Introduction Purpose This course provides an introduction to the RL78 serial interface architecture. In detail the different serial interfaces and their

More information

PARALLEL COMMUNICATIONS

PARALLEL COMMUNICATIONS Parallel Data Transfer Suppose you need to transfer data from one HCS12 to another. How can you do this? You could connect PORTA of the sending computer (set up as an output port) to PORTA of the receiving

More information

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.

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. XE166 Family AP16160 X E 1 6 4 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 Application Note V1.0, 2009-03 Microcontrollers Edition 2009-03 Published by Infineon Technologies AG 81726 Munich,

More information

EDBG. Description. Programmers and Debuggers USER GUIDE

EDBG. Description. Programmers and Debuggers USER GUIDE Programmers and Debuggers EDBG USER GUIDE Description The Atmel Embedded Debugger (EDBG) is an onboard debugger for integration into development kits with Atmel MCUs. In addition to programming and debugging

More information

Section 16. Basic Sychronous Serial Port (BSSP)

Section 16. Basic Sychronous Serial Port (BSSP) M 16 Section 16. Basic Sychronous Serial Port (BSSP) BSSP HIGHLIGHTS This section of the manual contains the following major topics: 16.1 Introduction...16-2 16.2 Control Registers...16-3 16.3 SPI Mode...16-6

More information

± 2g Tri-axis Accelerometer Specifications

± 2g Tri-axis Accelerometer Specifications Product Description The is a Tri-axis, silicon micromachined accelerometer with a full-scale output range of +/-2g (19.6 m/s/s). The sense element is fabricated using Kionix s proprietary plasma micromachining

More information

Module 3.C. Serial Peripheral Interface (SPI) Tim Rogers 2017

Module 3.C. Serial Peripheral Interface (SPI) Tim Rogers 2017 Module 3.C Serial Peripheral Interface (SPI) Tim Rogers 2017 Learning Outcome #3 An ability to effectively utilize the wide variety of peripherals integrated into a contemporary microcontroller How? A:

More information

(Serial Periphrial Interface (SPI) Synchronous Bus)

(Serial Periphrial Interface (SPI) Synchronous Bus) NM25C040 4K-Bit Serial CMOS EEPROM (Serial Peripheral Interface (SPI) Synchronous Bus) General Description The NM25C040 is a 4096-bit CMOS EEPROM with an SPI compatible serial interface. The NM25C040 is

More information

Digital UART Product Specification

Digital UART Product Specification Copyright 2016 Zilog, Inc. All rights reserved. www.zilog.com DIgital UART ii Warning: DO NOT USE THIS PRODUCT IN LIFE SUPPORT SYSTEMS. LIFE SUPPORT POLICY ZILOG'S PRODUCTS ARE NOT AUTHORIZED FOR USE AS

More information

USER GUIDE EDBG. Description

USER GUIDE EDBG. Description USER GUIDE EDBG Description The Atmel Embedded Debugger (EDBG) is an onboard debugger for integration into development kits with Atmel MCUs. In addition to programming and debugging support through Atmel

More information

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

Serial Peripheral Interface. What is it? Basic SPI. Capabilities. Protocol. Pros and Cons. Uses Serial Peripheral Interface What is it? Basic SPI Capabilities Protocol Serial Peripheral Interface http://upload.wikimedia.org/wikipedia/commons/thumb/e/ed/ SPI_single_slave.svg/350px-SPI_single_slave.svg.png

More information

Microcontrollers and Interfacing week 10 exercises

Microcontrollers and Interfacing week 10 exercises 1 SERIAL PERIPHERAL INTERFACE (SPI) HARDWARE Microcontrollers and Interfacing week 10 exercises 1 Serial Peripheral Interface (SPI) hardware Complex devices (persistent memory and flash memory cards, D/A

More information

Z8 Encore! XP F0822 Series Development Kit

Z8 Encore! XP F0822 Series Development Kit Z8F080000KITG Z8 Encore! XP F08 Series Development Kit UM0009-0608 Copyright 008 by Zilog, Inc. All rights reserved. www.zilog.com Z8 Encore! XP F08 Series Development Kit ii Revision History Each instance

More information

An SPI interface for the 65(C)02 family of microprocessors

An SPI interface for the 65(C)02 family of microprocessors Rev 4/B Dec 30, 2011 65SPI/B An SPI interface for the 65(C)02 family of microprocessors This device was created to provide a basic SPI interface for the 65xx family of microprocessors. Currently, the only

More information

Amarjeet Singh. January 30, 2012

Amarjeet Singh. January 30, 2012 Amarjeet Singh January 30, 2012 Website updated - https://sites.google.com/a/iiitd.ac.in/emsys2012/ Lecture slides, audio from last class Assignment-2 How many of you have already finished it? Final deadline

More information

PIC Serial Peripheral Interface (SPI) to Digital Pot

PIC Serial Peripheral Interface (SPI) to Digital Pot Name Lab Section PIC Serial Peripheral Interface (SPI) to Digital Pot Lab 7 Introduction: SPI is a popular synchronous serial communication protocol that allows ICs to communicate over short distances

More information

Environmental Data Acquisition Using (ENC28J60)

Environmental Data Acquisition Using (ENC28J60) Environmental Data Acquisition Using (ENC28J60) Joshi Vaibhav Abstract -- Ethernet is a local area technology, which is used for reliable and efficient transfer and access of information across the devices

More information

DS1306. Serial Alarm Real Time Clock (RTC)

DS1306. Serial Alarm Real Time Clock (RTC) www.dalsemi.com FEATURES Real time clock counts seconds, minutes, hours, date of the month, month, day of the week, and year with leap year compensation valid up to 2100 96-byte nonvolatile RAM for data

More information

Ethernet Smart Cable

Ethernet Smart Cable User Manual UM020704-0508 Introduction Zilog s Ethernet Smart Cable (ESC), ZENETSC0100ZACG, allows you to connect the Z8 Encore!, Z8 Encore! XP, ZNEO, or ez80acclaim! development board to a Zilog Developer

More information

ZigBee Compliant Platform 2.4G RF Low Power Transceiver Module for IEEE Standard. DATA SHEET Version B

ZigBee Compliant Platform 2.4G RF Low Power Transceiver Module for IEEE Standard. DATA SHEET Version B ZMD400-A01 ZigBee Compliant Platform 2.4G RF Low Power Transceiver Module for IEEE 802.15.4 Standard DATA SHEET Version B Quan International Co., Ltd., ZMD400 Features Fully compliant 802.15.4 Standard

More information

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

AN2737 Application note Basic in-application programming example using the STM8 I 2 C and SPI peripherals Introduction Application note Basic in-application programming example using the STM8 I 2 C and SPI peripherals Introduction This application note is one of a set of application notes giving examples of how to use

More information

DS75 Digital Thermometer and Thermostat

DS75 Digital Thermometer and Thermostat www.maxim-ic.com FEATURES Temperature Measurements Require No External Components Measures Temperatures from -55 C to +125 C (-67 F to +257 F) 2 C Accuracy Over a -25 C to +100 C Range Thermometer Resolution

More information

Digital Thermometer and Thermostat

Digital Thermometer and Thermostat General Description The DS75 digital thermometer and thermostat provides 9, 10, 11, or 12-bit digital temperature readings over a -55 C to +125 C range with ±2 C accuracy over a -25 C to +100 C range.

More information

BOOST YOUR SYSTEM PERFORMANCE USING THE ZILOG ESCC CONTROLLER

BOOST YOUR SYSTEM PERFORMANCE USING THE ZILOG ESCC CONTROLLER BOOST YOUR SYSTEM PERFORMANCE USING THE ZILOG ESCC CONTROLLER AN030001-0509 For greater testability, larger interface flexibility, and increased CPU/ DMA offloading, replace the SCC with the ESCC Controller...

More information

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

XC2000 Family AP Application Note. Microcontrollers. XC2236N Drive Card Description V1.0, XC2000 Family AP16179 Application Note V1.0, 2010-07 Microcontrollers Edition 2010-07 Published by Infineon Technologies AG 81726 Munich, Germany 2010 Infineon Technologies AG All Rights Reserved. LEGAL

More information

Raspberry Pi - I/O Interfaces

Raspberry Pi - I/O Interfaces ECE 1160/2160 Embedded Systems Design Raspberry Pi - I/O Interfaces Wei Gao ECE 1160/2160 Embedded Systems Design 1 I/O Interfaces Parallel I/O and Serial I/O Parallel I/O: multiple input/output simultaneously

More information

HZX N03 Bluetooth 4.0 Low Energy Module Datasheet

HZX N03 Bluetooth 4.0 Low Energy Module Datasheet HZX-51822-16N03 Bluetooth 4.0 Low Energy Module Datasheet SHEN ZHEN HUAZHIXIN TECHNOLOGY LTD 2017.7 NAME : Bluetooth 4.0 Low Energy Module MODEL NO. : HZX-51822-16N03 VERSION : V1.0 1.Revision History

More information

Ethernet1 Xplained Pro

Ethernet1 Xplained Pro Ethernet1 Xplained Pro Part Number: ATETHERNET1-XPRO The Atmel Ethernet1 Xplained Pro is an extension board to the Atmel Xplained Pro evaluation platform. The board enables the user to experiment with

More information

ZCRMZNICE01ZEMG Crimzon In-Circuit Emulator

ZCRMZNICE01ZEMG Crimzon In-Circuit Emulator Quick Start Guide QS006602-0408 Introduction Zilog s ZCRMZNICE01ZEMG Crimzon (ICE), shown in Figure 1, provides Crimzon chip family emulation with a Trace and Event system for program debugging using Zilog

More information

DS1305EN. Serial Alarm Real-Time Clock

DS1305EN. Serial Alarm Real-Time Clock Serial Alarm Real-Time Clock www.maxim-ic.com FEATURES Real-time clock (RTC) counts seconds, minutes, hours, date of the month, month, day of the week, and year with leap-year compensation valid up to

More information

Arduino Uno R3 INTRODUCTION

Arduino Uno R3 INTRODUCTION Arduino Uno R3 INTRODUCTION Arduino is used for building different types of electronic circuits easily using of both a physical programmable circuit board usually microcontroller and piece of code running

More information

ORDERING INFORMATION. OPERATION Measuring Temperature A block diagram of the DS1621 is shown in Figure 1. DESCRIPTION ORDERING PACKAGE

ORDERING INFORMATION. OPERATION Measuring Temperature A block diagram of the DS1621 is shown in Figure 1. DESCRIPTION ORDERING PACKAGE AVAILABLE Digital Thermometer and Thermostat FEATURES Temperature measurements require no external components Measures temperatures from -55 C to +125 C in 0.5 C increments. Fahrenheit equivalent is -67

More information

Serial Communication

Serial Communication Serial Communication What is serial communication? Basic Serial port operation. Classification of serial communication. (UART,SPI,I2C) Serial port module in PIC16F887 IR Remote Controller Prepared By-

More information

DS Wire Digital Thermometer and Thermostat

DS Wire Digital Thermometer and Thermostat www.maxim-ic.com FEATURES Temperature measurements require no external components with ±1 C accuracy Measures temperatures from -55 C to +125 C; Fahrenheit equivalent is -67 F to +257 F Temperature resolution

More information

ECE Microcontrollers. Serial Peripheral Interface (SPI) & NRF24 Radio

ECE Microcontrollers. Serial Peripheral Interface (SPI) & NRF24 Radio ECE 381 - Microcontrollers Serial Peripheral Interface (SPI) & NRF24 Radio Lab 9 Summary We will develop a wireless temperature sensor Once a second, sample LM34CZ voltage Convert to floating point with

More information

ZiLOG Real-Time Kernel Version 1.2.0

ZiLOG Real-Time Kernel Version 1.2.0 ez80acclaim Family of Microcontrollers Version 1.2.0 PRELIMINARY Introduction The (RZK) is a realtime, preemptive, multitasking kernel designed for time-critical embedded applications. It is currently

More information

DEVBOARD3 DATASHEET. 10Mbits Ethernet & SD card Development Board PIC18F67J60 MICROCHIP

DEVBOARD3 DATASHEET. 10Mbits Ethernet & SD card Development Board PIC18F67J60 MICROCHIP DEVBOARD3 DATASHEET 10Mbits Ethernet & SD card PIC18F67J60 MICROCHIP Version 1.0 - March 2009 DEVBOARD3 Version 1.0 March 2009 Page 1 of 7 The DEVBOARD3 is a proto-typing board used to quickly and easily

More information

SPI Protocol of the TLE941xy family

SPI Protocol of the TLE941xy family Protocol of the TLE941xy family Application Note Rev 1.0, 2016-04-25 Automotive Power Table of Contents 1 Abstract........................................................................ 3 2 Introduction.....................................................................

More information

CapSense I 2 C/SPI Timer Flash RAM

CapSense I 2 C/SPI Timer Flash RAM Datasheet SPIS V 2.5 001-13679 Rev. *K SPI Slave Copyright 2002-2015 Cypress Semiconductor Corporation. All Rights Reserved. Resources PSoC Blocks API Memory (Bytes) CapSense I 2 C/SPI Timer Flash RAM

More information

Software Serial Port Implemented with the PCA

Software Serial Port Implemented with the PCA APPLICATION BRIEF Software Serial Port Implemented with the PCA BETSY JONES ECO APPLICATIONS ENGINEER August 1988 Order Number 270531-002 Information in this document is provided in connection with Intel

More information

SPI Universal Serial Communication Interface SPI Mode

SPI Universal Serial Communication Interface SPI Mode SPI Universal Serial Communication Interface SPI Mode Serial Peripheral Interface (SPI) is not really a protocol, but more of a general idea. It s the bare-minimum way to transfer a lot of data between

More information

AN5123 Application note

AN5123 Application note Application note STSPIN32F0A - bootloader and USART protocol Introduction Cristiana Scaramel The STSPIN32F0A is a system-in-package providing an integrated solution suitable for driving three-phase BLDC

More information

Serial Communication. Spring, 2018 Prof. Jungkeun Park

Serial Communication. Spring, 2018 Prof. Jungkeun Park Serial Communication Spring, 2018 Prof. Jungkeun Park Serial Communication Serial communication Transfer of data over a single wire for each direction (send / receive) Process of sending data one bit at

More information

User-configurable Resolution. 9 to 12 bits (0.5 C to C)

User-configurable Resolution. 9 to 12 bits (0.5 C to C) AT30TS74 9- to 12-bit Selectable, ±1.0 C Accurate Digital Temperature Sensor DATASHEET Features Single 1.7V to 5.5V Supply Measures Temperature From -55 C to +125 C Highly Accurate Temperature Measurements

More information

IV B.Tech. I Sem (R13) ECE : Embedded Systems : UNIT -4 1 UNIT 4

IV B.Tech. I Sem (R13) ECE : Embedded Systems : UNIT -4 1 UNIT 4 IV B.Tech. I Sem (R13) ECE : Embedded Systems : UNIT -4 1 UNIT 4 4.1. Serial data communication basics ----------- 1 4.2. UART ------------------------------------------------ 4 4.3. Serial Peripheral

More information