Mbed Microcontroller SPI. Spring, 2018 Prof. Jungkeun Park

Size: px
Start display at page:

Download "Mbed Microcontroller SPI. Spring, 2018 Prof. Jungkeun Park"

Transcription

1 Mbed Microcontroller SPI Spring, 2018 Prof. Jungkeun Park

2 SPI Logic Signals Full duplex mode using a master-slave architecture Single master Originates the frame for reading and writing Logic signal Description Output from SCLK Serial Clock Master MOSI Master Out Slave In (Data) Master MISO Master In Slave Out (Data) Slave SS Slave Select (often active low) Master 2

3 Clock Polarity and Phase Conventional names CPOL: clock polarity CPOL = 0: clock idles at 0 CPOL = 1: clock idles at 1 CPHA: clock phase CPHA = 0: in side captures data on the leading edge of the clock CPHA = 1: in side captures data on the trailing edge of the clock Mode numbers SPI Mode Clock Polarity (CPOL/CKP) Clock Phase (CPHA) Clock Edge (CKE/NCPHA)

4 Clock Polarity and Phase Timing diagram 4

5 SPI Port Pins 2 SPIs (mosi, miso, sck) (p5, p6, p7) (p11, p12, p13) CS 는 GPIO 를통해구현 5

6 mbed SPI Module Constructor Constructor SPI(PinName mosi, PinName miso, PinName sclk, PinName ssel = NC) Description mosi: master out / slave in pin miso: master in / slave out pin sclk: clock pin ssel: chip select pin (default: NC) Member functions (selected) Function void format(int bits, int mode = 0) void frequency(int hz = ) int write(int value) Description Configure the data transfer format bits: # of bits per SPI frame (4 ~ 16) mode: clock polarity and phase Set SPI bus clock frequency hz: frequency in hz (default: 1Mhz) Write to SPI slave and return response 6

7 SPI Example Program example Mode 0: clock idle at 0, capture data at leading edge 7

8 SPI Example transmit next bit on falling edge clock idle 8

9 ADXL345 Digital Accelerometer Features Ultralow power: as low as 23 μa in measurement mode and 0.1 μa in standby mode at = 2.5 V (typical) VS Power consumption scales automatically with bandwidth User-selectable resolution Fixed 10-bit resolution Full resolution, where resolution increases with g range, up to 13-bit resolution at ±16 g (maintaining 4 mg/lsb scale factor in all g ranges) Embedded memory management system with FIFO Single tap/double tap detection Activity/inactivity monitoring Free-fall detection 9

10 ADXL345 Digital Accelerometer Supply voltage range: 2.0 V to 3.6 V I/O voltage range: 1.7 V to V S SPI (3- and 4-wire) and I2C digital interfaces Flexible interrupt modes mappable to either interrupt pin Measurement ranges selectable via serial command Bandwidth selectable via serial command Wide temperature range ( 40 C to +85 C) 10,000 g shock survival Pb free/rohs compliant Small and thin: 3 mm 5 mm 1 mm LGA package 10

11 Functional Block Diagram 11

12 Pin Configuration 12

13 SPI Interface 3-wire and 4 wire mode (default) Mode 3: CPOL = 1, CPHA = 1 Clock frequency Data rate 3200Hz and 1600Hz: clock >= 2MHz Data rate 800Hz: clock >= 400KHz Remaining data rate scale proportionally (data rate x 500) 13

14 R/W Timing Diagram 14

15 Register Map 15

16 Register Map 16

17 Register Definition 17

18 Register Definition 18

19 Register Definition 19

20 Output Response 20

21 mbed Hardware Connection VS CS SDO INT1 INT2 ADXL345 VCC+5V GND SCL SDA/SDI +3.3V 21

22 Example x-axis 의가속도값을읽어서화면에출력 #include "mbed.h #define ADXL345_DEVID 0x00 #define ADXL345_POWER_CTR 0x2D #define ADXL345_DATA_FORMAT 0x31 #define ADXL345_DATA_X0 0x32 #define ADXL345_DATA_X1 0x33 #define ADXL345_DATA_Y0 0x34 #define ADXL345_DATA_Y1 0x35 #define ADXL345_DATA_Z0 0x36 #define ADXL345_DATA_Z1 0x37 #define POWER_MODE_MEASURE (0x01 << 3) #define FULL_RES (0x1 << 3) #define RANGE_2G 0 #define RANGE_4G 1 #define RANGE_8G 2 #define RANGE_16G 3 #define SPI_READ (0x1 << 7) #define SPI_WRITE (0x0 << 7) #define SPI_MB (0x1 << 6) 22

23 Example int8_t read_8(unsigned char address); void write_8(unsigned char address, unsigned char data); int16_t read_16(unsigned char address); void SPI_init(void); SPI SPI_port(p5, p6, p7); DigitalOut cs(p8); // mosi, miso, sclk // this acts as "Slave select int main() { unsigned char read_val; int accel_x; SPI_init(); read_val = read_8(adxl345_devid); // read device ID printf("device ID = %XH \n", read_val); write_8(adxl345_data_format, FULL_RES RANGE_16G); } while(1) { accel_x = read_16(adxl345_data_x0); printf("accel_x = %d \n", accel_x); wait(0.1); } 23

24 Example int8_t read_8(unsigned char address) { unsigned char received; cs = 0; SPI_port.write(address SPI_READ); received = SPI_port.write(0); cs = 1; wait_us(1); } return received; int16_t read_16(unsigned char address) { int16_t val; unsigned char *byte = (unsigned char *)&val; cs = 0; SPI_port.write(address SPI_READ SPI_MB); byte[0] = SPI_port.write(0); byte[1] = SPI_port.write(0); cs = 1; wait_us(1); } return val; 24

25 Example void write_8(unsigned char address, unsigned char data) { cs = 0; SPI_port.write(address SPI_WRITE); SPI_port.write(data); cs = 1; wait_us(1); } void SPI_init(void) { SPI_port.format(8,3); SPI_port.frequency(400000); wait(0.1); write_8(adxl345_power_ctr, POWER_MODE_MEASURE); // Measurement mode wait_us(10); } 25

Serial communications with SPI

Serial communications with SPI Serial communications with SPI DRAFT VERSION - This is part of a course slide set, currently under development at: http://mbed.org/cookbook/course-notes We welcome your feedback in the comments section

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

Serial Peripheral Interface (SPI)

Serial Peripheral Interface (SPI) SPI = Simple, 3 wire, full duplex, synchronous serial data transfer Interfaces to many devices, even many non-spi peripherals Can be a master or slave interface 4 interface pins: -MOSI master out slave

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

< 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

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

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

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

LAB4. Program the on chip SPI module

LAB4. Program the on chip SPI module LAB4 Program the on chip SPI module Outline Learn to utilize the on-chip SPI module Implement it in C Translate it to ARM Assembly Test and verify the result using oscilloscope and shift register. Serial

More information

The 9S12 Serial Peripheral Inteface (SPI) Huang Section 10.2 through 10.6 SPI Block User Guide

The 9S12 Serial Peripheral Inteface (SPI) Huang Section 10.2 through 10.6 SPI Block User Guide The 9S12 Serial Peripheral Inteface (SPI) Huang Section 102 through 106 SPI Block User Guide The 9S12 Serial Peripheral Interface (SPI) The 9S12 has a Synchronous Serial Interface On the 9S12 it is called

More information

ArduCAM-M-2MP Camera Shield

ArduCAM-M-2MP Camera Shield 33275-MP ArduCAM-M-2MP Camera Shield 2MP SPI Camera Hardware Application Note Rev 1.0, Mar 2015 33275-MP ArduCAM-M-2MP Hardware Application Note Table of Contents 1 Introduction... 2 2 Typical Wiring...

More information

SPI (Serial & Peripheral Interface)

SPI (Serial & Peripheral Interface) SPI (Serial & Peripheral Interface) What is SPI SPI is a high-speed, full-duplex bus that uses a minimum of 3 wires to exchange data. The popularity of this bus rose when SD cards (and its variants ie:

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

Accel 5 click. PID: MIKROE 3149 Weight: 24 g

Accel 5 click. PID: MIKROE 3149 Weight: 24 g Accel 5 click PID: MIKROE 3149 Weight: 24 g Accel 5 click features an ultra-low power triaxial accelerometer sensor, labeled as the BMA400. This Click board allows linear motion and gravitational force

More information

Skill Level: Beginner

Skill Level: Beginner ADXL345 Quickstart Guide by zaggrad January 10, 2011 Skill Level: Beginner Description: The ADXL345 is a small, thin, low power, 3-axis accelerometer with high resolution (13-bit) measurement at up to

More information

Understanding SPI with Precision Data Converters

Understanding SPI with Precision Data Converters Understanding SPI with Precision Data Converters By: Tony Calabria Presented by: 1 Communication Comparison SPI - Serial Peripheral Interface Bus I2C - Inter- Integrated Circuit Parallel Bus Advantages

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

MMA axis digital accelerometer module

MMA axis digital accelerometer module MMA7455 3-axis digital accelerometer module Instruction The MMA7455L is a Digital Output (I2C/SPI), low power, low profile capacitive micromachined accelerometer featuring signal conditioning, a low pass

More information

Pedometer 3 Click. PID: MIKROE 3259 Weight: 24 g

Pedometer 3 Click. PID: MIKROE 3259 Weight: 24 g Pedometer 3 Click PID: MIKROE 3259 Weight: 24 g The Pedometer 3 click is a tri-axis acceleration sensing Click board utilizing the KX126-1063. An advanced three-axis acceleration sensor, the KX126-1063

More information

McMaster University Embedded Systems. Computer Engineering 4DS4 Lecture 6 Serial Peripherals Amin Vali Feb. 2016

McMaster University Embedded Systems. Computer Engineering 4DS4 Lecture 6 Serial Peripherals Amin Vali Feb. 2016 McMaster University Embedded Systems Computer Engineering 4DS4 Lecture 6 Serial Peripherals Amin Vali Feb. 2016 Serial Peripherals I2C Inter-IC Bus X/Y Coord. RGB data LCD config controller LCD data controller

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

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

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

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

More on the 9S12 SPI Using the Dallas Semiconductor DS1302 Real Time Clock with the 9S12 SPI

More on the 9S12 SPI Using the Dallas Semiconductor DS1302 Real Time Clock with the 9S12 SPI More on the 9S12 SPI Using the Dallas Semiconductor DS1302 Real Time Clock with the 9S12 SPI Using the 9S12 SPI The SPI has a data register (SPIDR) and a shift register. To write data to the SPI, you write

More information

Gambar A.1 Board Arduino

Gambar A.1 Board Arduino LAMPIRAN A ARDUINO UNO Gambar A.1 Board Arduino The Arduino Uno is a microcontroller board based on the ATmega328. It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog

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

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

Serial Peripheral Interface Bus SPI

Serial Peripheral Interface Bus SPI Serial Peripheral Interface Bus SPI SPI Bus Developed by Motorola in the mid 1980 s Full-duplex, master-slave serial bus suited to data streaming applications for embedded systems Existing peripheral busses

More information

Sensor Toolbox (Part 2): Inertial Sensors

Sensor Toolbox (Part 2): Inertial Sensors November 2010 Sensor Toolbox (Part 2): Inertial Sensors AMF-ENT-T1118 Michael Steffen MCU & Sensor Field Application Engineer Expert Reg. U.S. Pat. & Tm. Off. BeeKit, BeeStack, CoreNet, the Energy Efficient

More information

SPI: Serial Peripheral Interface

SPI: Serial Peripheral Interface ECE3411 Fall 2015 Lab 6c. SPI: Serial Peripheral Interface Marten van Dijk, Syed Kamran Haider Department of Electrical & Computer Engineering University of Connecticut Email: {vandijk, syed.haider}@engr.uconn.edu

More information

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

EE 308 Spring Using the 9S12 SPI

EE 308 Spring Using the 9S12 SPI Using the 9S12 SPI The SPI has a data register (SPIDR) and a shift register. To write data to the SPI, you write to the SPIDR data register. The 9S12 automatically transfers the data to the shift register

More information

F²MC-8FX FAMILY 8-BIT MICROCONTROLLER MB95200H SERIES SPI SW REALIZATION USING GPIO APPLICATION NOTE

F²MC-8FX FAMILY 8-BIT MICROCONTROLLER MB95200H SERIES SPI SW REALIZATION USING GPIO APPLICATION NOTE Fujitsu Semiconductor (Shanghai) Co., Ltd. Application Note MCU-AN-500035-E-10 F²MC-8FX FAMILY 8-BIT MICROCONTROLLER MB95200H SERIES SPI SW REALIZATION USING GPIO APPLICATION NOTE Revision History Revision

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

PAN502x Capacitive Touch Controller Datasheet

PAN502x Capacitive Touch Controller Datasheet PAN502x Capacitive Touch Controller sheet PAN502x-A-A, Rev 1.0 Panchip Microelectronics www.panchip.com Copyright@2014, Panchip Microelectronics, CO., LTD. All right reserved. 1 / 16 Table of Contents

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

3.2inch SPI Module MSP3218 User Manual

3.2inch SPI Module MSP3218 User Manual 3.2inch SPI Module MSP3218 User Manual www.lcdwiki.com 1 / 23 Rev1.0 Product Description The LCD module uses a 4-wire SPI communication method with a driver IC of ILI9341 with a resolution of 240x320 and

More information

Parallel Data Transfer. Suppose you need to transfer data from one HCS12 to another. How can you do this?

Parallel Data Transfer. Suppose you need to transfer data from one HCS12 to another. How can you do this? Introduction the Serial Communications Huang Sections 9.2, 10.2, 11.2 SCI Block User Guide SPI Block User Guide IIC Block User Guide o Parallel vs Serial Communication o Synchronous and Asynchronous Serial

More information

± 2g Tri-axis Digital Accelerometer Specifications

± 2g Tri-axis Digital Accelerometer Specifications Product Description The KXSD9 is a tri-axis silicon micromachined accelerometer with a user selectable full-scale output range of ±2g, ±4g, ±6g or ±8g. The sense element is fabricated using Kionix s proprietary

More information

IPC. Preliminary Data Brief. IPC High speed phase current sensor with digital interface Draft Review Released

IPC. Preliminary Data Brief. IPC High speed phase current sensor with digital interface Draft Review Released IPC Preliminary Data Brief Header Project State IPC High speed phase current sensor with digital interface Draft Review Released Responsible Creation 2010-07-27 Module Name IPC-A and IPC-C Hardware Version

More information

Table of Contents 1 Typical Applications General Description Block Diagram Pinout System Connections Typical A

Table of Contents 1 Typical Applications General Description Block Diagram Pinout System Connections Typical A Data Sheet: Product Preview Rev 0.3, 3/2014 Xtrinsic 3-Axis Digital Angular Rate Gyroscope is a small, low-power, yaw, pitch, and roll angular rate gyroscope. The full-scale range is adjustable from ±250

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

ECE 471 Embedded Systems Lecture 20

ECE 471 Embedded Systems Lecture 20 ECE 471 Embedded Systems Lecture 20 Vince Weaver http://web.eece.maine.edu/~vweaver vincent.weaver@maine.edu 20 October 2017 Announcements Project coming Only one person was in class Wednesday due to Career

More information

or between microcontrollers)

or between microcontrollers) : Communication Interfaces in Embedded Systems (e.g., to interface with sensors and actuators or between microcontrollers) Spring 2016 : Communication Interfaces in Embedded Systems Spring (e.g., 2016

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

GSDM110 Three-Axis Digital Magnetometer

GSDM110 Three-Axis Digital Magnetometer Features! 3-axis Hall Effect Magnetometer! Low Profile and Small Footprint! Wide supply Voltage! Independent IOs Supply and Supply Voltage Compatible! Low Power Consumption! I2C/SPI Digital Output Interface!

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

PAT9125EL: Optical Tracking Miniature Chip

PAT9125EL: Optical Tracking Miniature Chip PAT9125EL: General Description The PAT9125EL is PixArt Imaging s low power optical tracking miniature chip using PixArt s LASER-based optical navigation technology enabling digital surface tracking. It

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

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

± 2g / 4g / 6g / 8g Tri-axis Digital Accelerometer Specifications

± 2g / 4g / 6g / 8g Tri-axis Digital Accelerometer Specifications Product Description The KXUD9 is a tri-axis silicon micromachined accelerometer with a user selectable full-scale output range of ±2g, ±4g, ±6g or ±8g. The sense element is fabricated using Kionix s proprietary

More information

Level Shifter. for. Hardware User s Manual.

Level Shifter. for. Hardware User s Manual. Level Shifter for USB-to to-i2c Hardware User s Manual https://www.i2ctools.com/ Information provided in this document is solely for use with the I2C and SPI Level Shifter from SB Solutions, Inc. SB Solutions,

More information

Block Diagram. mast_sel. mast_inst. mast_data. mast_val mast_rdy. clk. slv_sel. slv_inst. slv_data. slv_val slv_rdy. rfifo_depth_log2.

Block Diagram. mast_sel. mast_inst. mast_data. mast_val mast_rdy. clk. slv_sel. slv_inst. slv_data. slv_val slv_rdy. rfifo_depth_log2. Key Design Features Block Diagram Synthesizable, technology independent IP Core for FPGA, ASIC and SoC reset Supplied as human readable VHDL (or Verilog) source code mast_sel SPI serial-bus compliant Supports

More information

Chapter 7: Starting with Serial Communication tw rev

Chapter 7: Starting with Serial Communication tw rev Chapter 7: Starting with Serial Communication tw rev. 26.8.16 If you use or reference these slides or the associated textbook, please cite the original authors work as follows: Toulson, R. & Wilmshurst,

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

AN-1025 APPLICATION NOTE

AN-1025 APPLICATION NOTE APPLICATION NOTE One Technology Way PO Box 9106 Norwood, MA 02062-9106, USA Tel: 7813294700 Fax: 7814613113 wwwanalogcom Utilization of the First In, First Out (FIFO) Buffer in Analog Devices, Inc Digital

More information

Pressure 4 click. PID: MIKROE 3020 Weight: 24 g

Pressure 4 click. PID: MIKROE 3020 Weight: 24 g Pressure 4 click PID: MIKROE 3020 Weight: 24 g Pressure 4 click is an absolute barometric pressure measurement Click board, which features a low power consumption, high precision barometric pressure sensor.

More information

ASNTu2s PCB with Tiger Board USB to 7-Channel 3-Wire Interface Bridge Application Notes

ASNTu2s PCB with Tiger Board USB to 7-Channel 3-Wire Interface Bridge Application Notes ASNTu2s PCB with Tiger Board USB to 7-Channel 3-Wire Interface Bridge Application Notes Table of Contents Tiger Board Description... 2 ASNTu2s Description... 2 Software Installation... 3 Bridge and GUI

More information

AN055. Replacing KX023, KX123, KX124 with KXG07. Introduction

AN055. Replacing KX023, KX123, KX124 with KXG07. Introduction Replacing KX023, KX123, KX124 with KXG07 Introduction The purpose of this application note is to illustrate how the Kionix KXG07 accelerometergyroscope can replace an existing Kionix KX023, KX123, or KX124

More information

Serial Peripheral Interface (SPI)

Serial Peripheral Interface (SPI) SPI and I 2 C 1 Serial Peripheral Interface (SPI) SPI allow half/full duplex, synchronous, serial communication with external devices The interface can be configured as master for MCU board Communication

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

SPI Storm. Data sheet

SPI Storm. Data sheet Revision 1.02 - February 2015 Table of Contents 1 Main features...4 2 SPI Storm Overview...4 2.1 SPI Storm at a glance...4 2.2 Minimum Host PC requirements...5 2.3 Operating power...5 2.4 USB and system

More information

SH1030 Rev Introduction. Ultra low power DASH7 Arduino Shield Modem. Applications. Description. 868 MHz. Features

SH1030 Rev Introduction. Ultra low power DASH7 Arduino Shield Modem. Applications. Description. 868 MHz. Features SH1030 Rev. 1.2 Applications Wireless sensor network Data acquisition equipment Security systems Industrial monitor and control Internet of things (IoT) Ultra low power DASH7 Arduino Shield Modem 868 MHz

More information

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

An SPI Temperature Sensor Interface with the Z8 Encore! SPI Bus Application Note An SPI Temperature Sensor Interface with the Z8 Encore! SPI Bus AN012703-0608 Abstract This Application Note provides an overview of Zilog s Z8 Encore! Serial Peripheral Interface (SPI)

More information

The Serial Peripheral Interface

The Serial Peripheral Interface (SPI) ARSLAB - Autonomous and Robotic Systems Laboratory Dipartimento di Matematica e Informatica - Università di Catania, Italy santoro@dmi.unict.it L.S.M. 1 Course What is SPI? The SPI Serial Peripheral

More information

ICS Humla CTF. Copyright 2017 Payatu https://www.payatu.com 1

ICS Humla CTF. Copyright 2017 Payatu https://www.payatu.com 1 ICS Humla CTF BY ARUN MANE SR. SECURITY RESEARCHER Copyright 2017 Payatu https://www.payatu.com 1 About Sr. Security Researcher at Payatu Software Labs Focused in IoT, ICS, Vehicle Security Co-Trainer

More information

SPI 3-Wire Master (VHDL)

SPI 3-Wire Master (VHDL) SPI 3-Wire Master (VHDL) Code Download Features Introduction Background Port Descriptions Clocking Polarity and Phase Command and Data Widths Transactions Reset Conclusion Contact Code Download spi_3_wire_master.vhd

More information

MC3635 FEATURES GENERAL DESCRIPTION

MC3635 FEATURES GENERAL DESCRIPTION GENERAL DESCRIPTION MC3635 FEATURES The MC3635 is an ultra-low power, low noise, integrated digital output 3-axis accelerometer with a feature set optimized for wearables and the Internet of Moving Things

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

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

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

FPGA Implementation Of SPI To I2C Bridge

FPGA Implementation Of SPI To I2C Bridge FPGA Implementation Of SPI To I2C Bridge Abhilash S.Warrier Akshay S.Belvadi Dhiraj R.Gawhane Babu Ravi Teja K Abstract Today s electronic system is not a standalone unit instead working in a group, where

More information

YOU WILL NOT BE ALLOWED INTO YOUR LAB SECTION WITHOUT THE REQUIRED PRE-LAB.

YOU WILL NOT BE ALLOWED INTO YOUR LAB SECTION WITHOUT THE REQUIRED PRE-LAB. Page 1/5 Revision 2 OBJECTIVES Learn how to use SPI communication to interact with an external IMU sensor package. Stream and plot real-time XYZ acceleration data with USART to Atmel Studio s data visualizer.

More information

AppNote-US2400-EVB Low Power 2.4GHz Transceiver

AppNote-US2400-EVB Low Power 2.4GHz Transceiver US2400-EVB for IEEE 802.15.4 Standard Revision History Hardware Revision Date Description of Changes V01 / V02 Sep. 2011 Initial release V03 Dec 2011 Addition 4.1 Evaluation Board Variants and 5.3 Connector

More information

SPI/USB Interface board Data sheet for HF RFID Reader/Writer module LXRFZZHBBA-044

SPI/USB Interface board Data sheet for HF RFID Reader/Writer module LXRFZZHBBA-044 1. General Descriptions is an interface board for HF RFID Reader/Writer module, LXRFZZHAAA-026. [Features] -Signal conversion : SPI USB -100% green material for RoHS compliance -Related product name Part

More information

Application Note TSYS01

Application Note TSYS01 PRODUCT HIGHLIGHTS High Accuracy up to ±0.1 C Very Small Size Ready for SMT Assembly Multiple Interfaces I2C, SPI Adjustment of High Accuracy Temperature Range on Request Low Current Consumption Low Self

More information

ADC to I 2 C. Data Sheet. 10 Channel Analog to Digital Converter. with output via I 2 C

ADC to I 2 C. Data Sheet. 10 Channel Analog to Digital Converter. with output via I 2 C Data Sheet 10 Channel Analog to Digital Converter with output via I 2 C Introduction Many microcontroller projects involve the use of sensors like Accelerometers, Gyroscopes, Temperature, Compass, Barometric,

More information

Remote 16-bit I/O expander for Fm+ I 2 C-bus with interrupt and reset. Description

Remote 16-bit I/O expander for Fm+ I 2 C-bus with interrupt and reset. Description Remote 16-bit I/O expander for Fm+ I 2 C-bus with interrupt and reset Features Operation power supply voltage from 2.3V to 5.5V 16-bit remote I/O pins that default to inputs at powerup 1 MHz I 2 C-bus

More information

Pmod modules are powered by the host via the interface s power and ground pins.

Pmod modules are powered by the host via the interface s power and ground pins. 1300 Henley Court Pullman, WA 99163 509.334.6306 www.store. digilent.com Digilent Pmod Interface Specification 1.2.0 Revised October 5, 2017 1 Introduction The Digilent Pmod interface is used to connect

More information

1.5inch OLED Module User Manual

1.5inch OLED Module User Manual 1.5inch OLED Module User Manual OVERVIEW This is a general OLED display module, 1.5inch diagonal, 128*128 pixels, 16-bit grey level, with embedded controller, communicating via SPI or I2C interface. FEATURES

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

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

Color 7 click. PID: MIKROE 3062 Weight: 19 g

Color 7 click. PID: MIKROE 3062 Weight: 19 g Color 7 click PID: MIKROE 3062 Weight: 19 g Color 7 click is a very accurate color sensing Click board which features the TCS3472 color light to digital converter with IR filter, from ams. It contains

More information

SPI Xpress. Data sheet

SPI Xpress. Data sheet Revision 1.04 - July 2010 Table of Contents Table of Contents... 2 Table of Tables... 2 Table of Figures... 2 Revision history... 3 1 Features... 4 2 SPI Xpress Overview... 4 3 Connecting the SPI Xpress

More information

Serial Peripheral Interface (SPI) Last updated 8/7/18

Serial Peripheral Interface (SPI) Last updated 8/7/18 Serial Peripheral Interface (SPI) Last updated 8/7/18 MSP432 SPI eusci = enhanced Universal Serial Communications Interface 2 tj MSP432 SPI ARM (AMBA Compliant) 7/8 bit transmission Master/Slave LSB/MSB

More information

How to create your own peripheral modules for use with the ARC EMSK and embarc

How to create your own peripheral modules for use with the ARC EMSK and embarc How to create your own peripheral modules for use with the ARC EMSK and embarc Overview embarc is an open software platform designed to help accelerate the development and production of embedded systems

More information

Serial Peripheral Interface (SPI)

Serial Peripheral Interface (SPI) Serial Peripheral Interface (SPI) MSP432 SPI eusci = enhanced Universal Serial Communications Interface 2 tj MSP432 SPI ARM (AMBA Compliant) 7/8 bit transmission Master/Slave LSB/MSB first Separate RX/TX

More information

DS1305 Serial Alarm Real Time Clock (RTC)

DS1305 Serial Alarm Real Time Clock (RTC) 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

More information

AT90SO72 Summary Datasheet

AT90SO72 Summary Datasheet AT90SO Summary Datasheet Features General High-performance, Low-power -/-bit Enhanced RISC Architecture Microcontroller - Powerful Instructions (Most Executed in a Single Clock Cycle) Low Power Idle and

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

AT89S4D12. 8-Bit Microcontroller with 132K Bytes Flash Data Memory AT89S4D12. Features. Description. Pin Configurations

AT89S4D12. 8-Bit Microcontroller with 132K Bytes Flash Data Memory AT89S4D12. Features. Description. Pin Configurations Features Compatible with MCS-51 Products 128K Bytes of In-System Reprogrammable Flash data memory and 4K Bytes of Downloadable Flash Program Memory Endurance: 1,000 Write/Erase Cycles per Sector Data Retention:

More information

From Datasheets to Digital Logic. synthesizing an FPGA SPI slave from the gates

From Datasheets to Digital Logic. synthesizing an FPGA SPI slave from the gates From Datasheets to Digital Logic synthesizing an FPGA SPI slave from the gates Joshua Vasquez March 26, 2015 The Road Map Top-Level Goal Motivation What is SPI? SPI Topology SPI Wiring SPI Protocol* Defining

More information

Figure 1: Byte 1 Byte 2 MISO <--- OVF EOM P0 P1 P2 P3 P4 P5 P6 P7 P8 P9 P

Figure 1: Byte 1 Byte 2 MISO <--- OVF EOM P0 P1 P2 P3 P4 P5 P6 P7 P8 P9 P A Winbond Company Applications Note 5A Operations, a Simplified Guide A simple but powerful command structure is built into the 4000 series SPI control port. It s inherent flexibility allows the software

More information

MPU-6000/MPU Axis Evaluation Board User Guide

MPU-6000/MPU Axis Evaluation Board User Guide MPU-6000/MPU-6050 9-Axis Evaluation Board User Guide InvenSense, Inc., 1197 Borregas Ave., Sunnyvale, Ca 94089, USA 1 AN-MPU-6000EVB-00 Table of Contents 1. REVISION HISTORY... 3 2. PURPOSE... 4 2.1 USAGE...

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

Design Development and Implementation of SPI

Design Development and Implementation of SPI MIT International Journal of Electronics and Communication Engineering, Vol. 4, No. 2, August 2014, pp. 65 69 65 Design Development and Implementation of SPI A. Sirisha Kurnool (DT), A.P, INDIA M. Sravanthi

More information

i_csn i_wr i_rd i_cpol i_cpha i_lsb_first i_data [15:0] o_data [15:0] o_tx_ready o_rx_ready o_rx_error o_tx_error o_tx_ack o_tx_no_ack

i_csn i_wr i_rd i_cpol i_cpha i_lsb_first i_data [15:0] o_data [15:0] o_tx_ready o_rx_ready o_rx_error o_tx_error o_tx_ack o_tx_no_ack October 2012 Introduction Reference Design RD1142 The Serial Peripheral Interface (SPI) is used primarily for synchronous serial communication between a host processor and its peripherals. The SPI bus

More information

WM1030 Rev Introduction. Ultra low power DASH7 Modem. Applications. Description. 868 / 915 MHz. Features. WIZZILAB Technical datasheet 1/10

WM1030 Rev Introduction. Ultra low power DASH7 Modem. Applications. Description. 868 / 915 MHz. Features. WIZZILAB Technical datasheet 1/10 WM1030 Rev. 1.2 Applications Wireless sensor network Data acquisition equipment Security systems Industrial monitor and control Internet of things (IoT) Ultra low power DASH7 Modem 868 / 915 MHz 1 Introduction

More information

Growing Together Globally Serial Communication Design In Embedded System

Growing Together Globally Serial Communication Design In Embedded System Growing Together Globally Serial Communication Design In Embedded System Contents Serial communication introduction......... 01 The advantages of serial design......... 02 RS232 interface......... 04 RS422

More information