SPI, SCI, SI and SDIO Port/devices for Serial Data Communication

Similar documents
8051 Serial Port. Crystal TXD. I/O Device RXD. Embedded Systems Peripherals

Using the HT46R46 I/O Ports to Implement Half-Duplex SPI Communication

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

Elettronica dei Sistemi Digitali Costantino Giaconia SERIAL I/O COMMON PROTOCOLS

Chapter 13. PIC Family Microcontroller

Serial Communications

Microtronics technologies Mobile:

A DIY Hardware Packet Sniffer

RS-422/485 Multiport Serial PCI Card. RS-422/485 Multiport Serial PCI Card Installation Guide

USART and Asynchronous Communication

AVR317: Using the Master SPI Mode of the USART module. 8-bit Microcontrollers. Application Note. Features. Introduction

Objectives. Basics of Serial Communication. Simplex vs Duplex. CMPE328 Microprocessors (Spring ) Serial Interfacing. By Dr.

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

Atmel Norway XMEGA Introduction

Serial Communications

Part 1. MAX BIT DAC with an Arduino Board. MIDI to Voltage Converter Part1

INFORMATICA INDUSTRIALE

DECT Module UM-9802 Datasheet

ARM Thumb Microcontrollers. Application Note. Software ISO 7816 I/O Line Implementation. Features. Introduction

SPI I2C LIN Ethernet. u Today: Wired embedded networks. u Next lecture: CAN bus u Then: wireless embedded network

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC Microprocessor & Microcontroller Year/Sem : II/IV

Hello, and welcome to this presentation of the STM32 SDMMC controller module. It covers the main features of the controller which is used to connect

ET-BASE AVR ATmega64/128

Am186ER/Am188ER AMD Continues 16-bit Innovation

Eureka Technology. Understanding SD, SDIO and MMC Interface. by Eureka Technology Inc. May 26th, Copyright (C) All Rights Reserved

The Programming Interface

Lesson-16: Real time clock DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK

Implementing SPI Master and Slave Functionality Using the Z8 Encore! F083A

Flash Microcontroller. Memory Organization. Memory Organization

AVR305: Half Duplex Compact Software UART. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

Freescale Semiconductor, Inc. Product Brief Integrated Portable System Processor DragonBall ΤΜ

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

Microcomputer Protocol Implementation at Local Interconnect Network Georgi Krastev

INFORMATICA INDUSTRIALE

Chapter 11: Input/Output Organisation. Lesson 06: Programmed IO

Why you need to monitor serial communication?

Raspberry Pi. Hans- Petter Halvorsen, M.Sc.

Implementing SPI Communication Between MSP430 G2452 and LTC ADC

a8251 Features General Description Programmable Communications Interface

Chapter 1 Lesson 3 Hardware Elements in the Embedded Systems Chapter-1L03: "Embedded Systems - ", Raj Kamal, Publs.: McGraw-Hill Education

Design and Implementation of Home Monitoring System Using RF Technology

Von der Hardware zur Software in FPGAs mit Embedded Prozessoren. Alexander Hahn Senior Field Application Engineer Lattice Semiconductor

RL78/G12 APPLICATION NOTE. Serial Array Unit (CSI Master Communication) Introduction. Target Device. R01AN1369EJ0100 Rev Mar.

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

User s Manual of Board Microcontroller ET-MEGA2560-ADK ET-MEGA2560-ADK

Block 3 Size 0 KB 0 KB 16KB 32KB. Start Address N/A N/A F4000H F0000H. Start Address FA000H F8000H F8000H F8000H. Block 2 Size 8KB 16KB 16KB 16KB

Computer and Set of Robots

Data Sheet. Adaptive Design ltd. Arduino Dual L6470 Stepper Motor Shield V th November L6470 Stepper Motor Shield

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

TURBO PROGRAMMER USB, MMC, SIM DEVELOPMENT KIT

COMPUTER HARDWARE. Input- Output and Communication Memory Systems

Eliminate Risk of Contention and Data Corruption in RS-485 Communications

AT15007: Differences between ATmega328/P and ATmega328PB. Introduction. Features. Atmel AVR 8-bit Microcontrollers APPLICATION NOTE

1-Port R422/485 Serial PCIe Card

Using Xbee in Serial Communication

ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-17: Memory organisation, and types of memory

Hello, and welcome to this presentation of the STM32L4 reset and clock controller.

USB OTG and Embedded Host Microchip Technology Incorporated. All Rights Reserved. Slide 1

Embedded Ethernet Interface Using Arm Processor

Lab Experiment 1: The LPC 2148 Education Board

LINDY ELECTRONICS LIMITED & LINDY-ELEKTRONIK GMBH - SECOND EDITION

Communication Unit 560CMU05 Data sheet

Remote PLC system using GSM network with application to home security system

ALL-USB-RS422/485. User Manual. USB to Serial Converter RS422/485. ALLNET GmbH Computersysteme Alle Rechte vorbehalten

Bluetooth Audio Data Transfer between Bluetooth chipset (PMB6752&PMB6625) and TriCore Host TC1920

Measurement and Analysis Introduction of ISO7816 (Smart Card)

USER GUIDE EDBG. Description

Using FPGAs to Design Gigabit Serial Backplanes. April 17, 2002

Display Message on Notice Board using GSM

Location-Aware and Safer Cards: Enhancing RFID Security and Privacy

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester

Microcontrollers in Practice

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

Advanced Microcontrollers Grzegorz Budzyń Lecture. 3: Electrical parameters of microcontrollers 8051 family

Hello, and welcome to this presentation of the STM32 Serial Audio Interface. I will present the features of this interface, which is used to connect

Guangzhou HC Information Technology Co., Ltd. Product Data Sheet

Industrial Multi-port Serial Cards

Serial Communications (Chapter 10) RS232, SPI, I2C

PART B QUESTIONS AND ANSWERS UNIT I

Computer Performance. Topic 3. Contents. Prerequisite knowledge Before studying this topic you should be able to:

Programming Flash Microcontrollers through the Controller Area Network (CAN) Interface

GTS-4E Hardware User Manual. Version: V1.1.0 Date:

PIC-MAXI-WEB development board Users Manual

How to design and implement firmware for embedded systems

SC16IS740/750/760. Single UART with I 2 C-bus/SPI interface, 64 bytes of transmit and receive FIFOs, IrDA SIR built-in support

Software User Guide UG-461

VMR6512 Hi-Fi Audio FM Transmitter Module

Bluetooth to serial HC-06 wireless module

MicroMag3 3-Axis Magnetic Sensor Module

Android Controlled Based Interface

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

Hardware and Software Requirements

In-Vehicle Networking

Parallel IO. Serial IO. Parallel vs. Serial IO. simplex vs half-duplex vs full-duplex. Wires: Full Duplex. Wires: Simplex, Half-duplex.

Microprocessor & Assembly Language

ARM Cortex STM series

FPGA INTEGRATION MANUAL SATURN-SIL 2 MODULES. Dictionary Code. Edition 01. Revision 00. Number of pages 18

RN-131-PICTAIL & RN-171-PICTAIL Evaluation Boards

SDLC Controller. Documentation. Design File Formats. Verification

Transcription:

DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK Lesson-5: SPI, SCI, SI and SDIO Port/devices for Serial Data Communication 1

Microcontroller internal devices for SPI or SCI or SI Synchronous Peripheral Interface (SPI) Port, for example, in 68HC11 and 68HC12 microcontrollers Asynchronous UART Serial Connect Interface (SCI), for example, SCI port in 68HC11/12 Asynchronous UART mode Serial Interface (SI), for example, SI in 8051 2

1. SPI 3

SPI Full-duplex Synchronous communication. SCLK, MOSI and MISO signals for serial clock from master, output from master and input to master, respectively. Device selection as master or slave can be done by a signal to hardware input SS. (Slave select when 0) pin 4

SS MOSI MISO SCLK Master SPI SS MOSI MISO SCLK SPI signals 1 Slave Select input (for defining an SPI device as slave when SS active, else it is master) At Master output and at slave input At master input at slave output Clock output at master and input at slave Slave SPI SS MOSI MISO SCLK 0 5

SPI Control Bits Programming Programmable for defining the instance of the occurrence of -ve negative edges and +ve positive edges within an interval of bits at serial data out or in Programmable for open-drain or totem pole output from a master to a slave. Programmable by the device selection as master or slave 6

SPI Control Bits Programming Programmable for the clock bits, and therefore of the period T of serial out data bits down to the interval of 0.5µs for an 8 MHz crystal at 68HC11 7

68HC11/12 synchronous serial communication SPI (Serial Peripheral Interface) 8

68HC11/12 SPI signals at Port PD DDR.2 PD.2 SS Programmable data direction register for port D DDR.3 DDR.4 DDR.5 DDRD PD.3 PD.4 PD.5 PD MOSI MISO SCLK 68HC11/12 SPI Features 1. Programmable rates for the clock 2. Programmable as slave or master or by SS input bit 3. Programmable for the instance of the occurrence of negative or positive clock edge and positive edges 4. Programmable for open-drain output or totem pole output 9

2. SCI 10

Serial Connect Interface (SCI) Port UART asynchronous mode port Full-duplex mode SCI programmable for transmission and for reception 11

SCI Full duplex signals Transceiver RxD TxD At receiver input from a transmitter output At transmitter output for a receiver input Transceiver RxD UART Transceiver TxD TxD UART RxD 12

SCI Control bits Programming Programmability for SCI baud rates are fixed as per rate and prescaling bits Serial in and out lines baud rate not separately programmable Baud rate is selectable among 32 possible ones by the three- rate bits and two prescaling bits. SCI two control register bits, T8 and R8 for the inter-processor communication in 11- bit format. 13

SCI Control bits Programming SCI receiver wake up feature programmable by RWU (Receiver wakeup Unavailable bit) Feature enabled if RWU (1st bit of SCC2, Serial Communication Control Register 2) is set, and is disabled if RWU is reset. If RWU if set, then the receiver of a slave does not interrupt by the succeeding frames. Number of processors can communicate on the SCI bus using control bits RWU, R8 and T8 14

68HC11/12 asynchronous serial communication One SCI and standard baud rates can be set up to 9.6 kbps only in 68HC11 68HC12 provides two SCIs that can operate at two different clock rates. 68HC12 baud rates can be set up to 38.4 kbps. 15

68HC11 SCI signals at Port PD Programmable data direction DDR.1 PD.1 register for DDR.0 PD.0 port D DDRD PD 68HC11/12 SCI Features UART RxD TxD 1. SCI baud rates are fixed as per rate and prescaling bits 2. T8 and R8 for the inter-processor communication in 11- bit format 3. receiver wake up feature programmable by RWU 4. Signals programmable for RxD or TxD using DDR 16

3. SI 17

Serial Interface (SI) Port UART 10T or 11T mode asynchronous port interface. Functions as USRT (universal synchronous receiver and transmitter) also. SI is therefore synchronous- asynchronous serial communication port called USART (universal synchronous-asynchronous receiver and transmitter) port. SI is an internal serial IO device in 8051. 18

SI Full duplex signals Mode 1, 2 or 3 SBUF Serial transmit/receive data buffer TxD RxD Processor Processor TxD RxD TxD/CLK, RxD/Data pins UART At receiver input from a transmitter output At transmitter output for a receiver input UART Processor TxD RxD 19

SI Half duplex signals Mode 0 SBUF Serial transmit/receive data buffer CLK Data Processor Processor CLK Data TxD/CLK, RxD/Data Pins UART From a transmitter Processor output at receiver input At transmitter output for a receiver Processor input UART Processor CLK Data 20

SI Control bits programming Mode 0 Half- duplex synchronous mode of operation, called. When a 12 MHz crystal is at 8051, and is attached to the processor, the clock bits are at the intervals of 1 µs. Mode 1 or 2 or 3 Full- duplex asynchronous serial communication. Modes 1 and 3 baud rate programmed Using the timer bits. 21

SI Control bits programming Mode 2 baud rate programming using SMOD bit at an SFR called PCON, when is used, the rate is programmable at 1/64 or 1/32 of oscillator frequency at 8051. T8 and R8 programming, when using 11- bit format, provides the 10th bit for errordetection or for indicating whether the sent data byte is a command or data for the receiving SI device 22

8051 SI signals at Port P3.1 and P3.0 TxD/CLK, RxD/Data Pins SBUF Serial transmit/receive data Programmed as per mode buffer selected and SBUF read or write instruction P3.1 P3.0 TxD/CLK RxD/Data executed P3 8051 SI Features 1. Mode 0 Half-duplex synchronous mode of operation 2. T8 and R8 for the inter-processor communication in 11- bit format 3. Mode 1 or 2 or 3 Full-duplex asynchronous serial communication 4. Signals not programmable for RxD or TxD no DDR in 8051 23

80196 On-chip common hardware device SI Programmable-rate register after loading the 14-bits at BAUD_RATE register twice. 24

3. SDIO 25

Secure Digital Association (SD) SD an association of over 700 companies started from 3 companies in 1999 Created a new flash memory card format, called SD format for IOs SDIO card has become popular feature in handheld mobile devices, PDAs, digital cameras and embedded systems. 26

SDIO Card SD card size just 0.14 cm 2.4 cm 3.2 cm. Allowed to stick out of the handheld device open slot, which can be at the top in order to facilitate insertion of the SD card 27

A processing element functions used SDIO host controller to process the IOs. SDIO card host controller Controller may include SPI controller to support SPI mode for the IOs and also supports the needed protocol functionality internally 28

SD card IO functionalities SDIO (Secure Digital Input Output) card Can have upto eight logical functions. provides additional memory storage in SD format Functions include IOs with several protocols, for example, IrDA adapter, Ethernet adapter, GPS or WiFi, Bluetooth, WLAN, digital camera, barcode or RFID code readers 29

SCI Control bits Programming For single byte transactions, SDIO card may include a UART 16550 mode communication over the SD 30

SDIO has 9 pins. SDIO 9 pins Total 6 pins are for SPI and SD 31

SDIO Functions and Card 1. SDIO (Secure Digital Input Output) up to eight logical functions during communication 2. CRC checks on the transferred data and 3. Specifies capabilities for additional tries by retransmission on error 4. Data communication 48-bit command/ request format for 48-bit control register/ status register bits 5. Supports data transfer in block of bytes SDIO Card SDIO host 9-pin controller Connector 6. Programmable or SPI (20 Mbps) or 1-bit SD (25 Mbps) or 4-bit SD (100 Mbps by 4 serial bits in parallel) communication 32

Summary 33

We learnt SPI serial synchronous transmitting /receiving device, for example, in 68HC11/12 SCI serial asynchronous UART mode transmitting /receiving device, for example, in 68HC11/12 with interprocessor on SCI bus 34

We learnt SI serial synchronous half duplex/asynchronous full duplex device, for example, in 8051 35

We learnt SDIO IO card with (i) host controller for 8 logic functions, 48-bit control/command register, flash memory and 9 pins (ii) SD 1-bit serial transfer, 4-bit mode serial-cum-parallel and optional UART modes for the IOs (iii) Support to transmission of data with many protocols 36

End of Lesson 5 of Chapter 3 37