RL78 Serial interfaces

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

Hello, and welcome to this presentation of the STM32 Low Power Universal Asynchronous Receiver/Transmitter interface. It covers the main features of

AN Multifunction Serial Interface of FM MCU. Contents. 1 Introduction

Basics of UART Communication

HZX N03 Bluetooth 4.0 Low Energy Module Datasheet

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

MN101EF69D. 8-bit Single-chip Communication LSI. Overview

Introduction to I2C & SPI. Chapter 22

Hello, and welcome to this presentation of the STM32 Universal Synchronous/Asynchronous Receiver/Transmitter Interface. It covers the main features

Section 16. Basic Sychronous Serial Port (BSSP)

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

RX Family, RL78 Family

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

Using FlexIO to emulate communications and timing peripherals

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

Concepts of Serial Communication

Two Wire Interface (TWI) also commonly called I2C

INTRODUCTION TO FLEXIO

PIC16C7X 11.0 SYNCHRONOUS SERIAL PORT (SSP) MODULE SSP Module Overview. Applicable Devices

C8051F700 Serial Peripheral Interface (SPI) Overview

Understand the design and operation of the SCI and the I 2 C, IrDA and Smart Card interfaces

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

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

Interfacing Techniques in Embedded Systems

Universität Dortmund. IO and Peripheral Interfaces

Serial Buses in Industrial and Automotive Applications

Microcontroller Systems. ELET 3232 Topic 23: The I 2 C Bus

Laboratory 5 Communication Interfaces

Device: MOD This document Version: 1.0. Matches module version: v3 [29 June 2016] Date: 23 October 2017

Typical modules include interfaces to ARINC-429, ARINC-561, ARINC-629 and RS-422. Each module supports up to 8 Rx or 8Tx channels.

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING. EE Microcontroller Based System Design

AT90SO72 Summary Datasheet

or between microcontrollers)

Growing Together Globally Serial Communication Design In Embedded System

AT90SO36 Summary Datasheet

MN101E50 Series. 8-bit Single-chip Microcontroller

Raspberry Pi - I/O Interfaces

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

Dallas Semiconductor DS1307 Real Time Clock. The DS 1307 is a real-time clock with 56 bytes of NV (nonvolatile)

MOS INTEGRATED CIRCUIT

PC87435 Enhanced IPMI Baseboard Management Controller

COMP2121: Microprocessors and Interfacing

Tutorial for I 2 C Serial Protocol

USIC. Universal Serial Interface Channel TTA Training

1.3inch OLED User Manual

RL78/G14, RL78/G1C, RL78/L12, RL78/L13, RL78/L1C Group

S1C17 Family Technical Manual Errata

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

Freescale and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their

ELE492 Embedded System Design

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

V850ES/SG3, V850ES/SJ3

UNIT IV SERIAL COMMUNICATIONS

Emulating I2C Bus Master by using FlexIO

Addressing scheme to address a specific devices on a multi device bus Enable unaddressed devices to automatically ignore all frames

DESIGN AND VERIFICATION OF LOW SPEED PERIPHERAL SUBSYSTEM SUPPORTING PROTOCOLS LIKE SPI, I 2 C AND UART

Implementation of MCU Invariant I2C Slave Driver Using Bit Banging

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

EE 354 November 13, 2017 ARM UART Notes

Interfacing a Hyper Terminal to the Flight 86 Kit

Emulating Dual SPI Using FlexIO

Serial Communication

AN-895 APPLICATION NOTE

Welcome to this presentation of the STM32 direct memory access controller (DMA). It covers the main features of this module, which is widely used to

Arduino Uno R3 INTRODUCTION

UART Register Set. UART Master Controller. Tx FSM. Rx FSM XMIT FIFO RCVR. i_rx_clk o_intr. o_out1 o_txrdy_n. o_out2 o_rxdy_n i_cs0 i_cs1 i_ads_n

Module Introduction. PURPOSE: The intent of this module, is to explain several of the important features of Freescale s i.mx1 applications processor.

11 ASYNCHRONOUS SERIAL PORTS

Real-Time Embedded Systems. CpE-450 Spring 06

RX Family APPLICATION NOTE. Simple I 2 C Module Using Firmware Integration Technology. Introduction. Target Device.

STM8S005xx STM8S105xx Errata sheet

GT24C02. 2-Wire. 2Kb Serial EEPROM (Smart Card application)

SEIKO EPSON CORPORATION

27.7 SCI Control Registers

RX Family APPLICATION NOTE. I 2 C Bus Interface (RIIC) Module Using Firmware Integration Technology. Introduction. Target Device.

TB2669. I²C Slave Mode. Introduction. Author: Christopher Best, Microchip Technology Inc.

I2C on the HMC6352 Compass

BV4531U. I2C or Serial 6 Way Relay

Section 21. UART UART HIGHLIGHTS. This section of the manual contains the following major topics:

Section 21. UART UART HIGHLIGHTS. This section of the manual contains the following topics:

Infineon C167CR microcontroller, 256 kb external. RAM and 256 kb external (Flash) EEPROM. - Small single-board computer (SBC) with an

Informatics for industrial applications

Application Note: AZD025 IQ Switch - ProxSense TM Series I2C Example Code for the IQS222

Serial Communications

TB3191. I²C Master Mode. Introduction. Author: Christopher Best, Microchip Technology Inc.

ECE 4510/5530 Microcontroller Applications Week 10

I 2 C Communication. Embedded Systems Interfacing. 25 October 2011

spi 1 Fri Oct 13 13:04:

For reference only Refer to the latest documents for details

Microtronix Avalon I 2 C

SCI Serial Communication Interface

MN101E56/57/76 Series

DC6688FL32TC Super 1T 8051 Microcontroller

For reference only Refer to the latest documents for details

Microcontroller basics

ATmega640/1280/1281/2560/2561

HCS12 Inter-Integrated Circuit(IIC) Block Guide V02.06

Freescale Semiconductor, I

ASCLIN Asynchronous Synchronous Interface

Global GPS NMEA over I²C Software Guide V 1.2

Transcription:

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 usage are explained. Objective Learn about the RL78 serial interface structure and their capabilities. Content 28 pages (including this page) x questions Learning Time 20 minutes 2

Serial Array Unit 3

Serial Array Unit overview The serial array unit is the unique serial interface supporting CSI clock synchronous interface UART Simplified I2C Up to three Serial Array Units are available Each serial array unit has up to four channels Channels could be used independently for CSI and simplified I 2 C or in combination in case of UART R5F100LE The access by the DMA Controller is supported 4

Serial Array Unit usage example The number of serial interfaces available on each device may differ depending on the flash size and the pin count of the device. Below you will find examples of the usage for a R5F100LE (64 pin,64k) 2 x UART and 2 x CSI 1 x UART and 2 x CSI and 2 x simplified I2C 3 x UART R5F100LE 5

Serial Array Unit Block diagram Block Diagram Global clock select Global control block Channel n 6

Serial Array Unit CSI mode 3-wire serial I/O Data transmission/reception Data length of 7 or 8 bits Phase and Level control of transmit/receive data MSB/LSB first selectable Clock control Master/slave selection Phase control of I/O clock Setting of transfer period by prescaler and internal counter of each channel Max speed fclk /2 for master mode CSI00 Max speed fclk /6 for slave mode CSI00 Interrupt function Transfer end interrupt Buffer empty interrupt Error detection flag Overrun error 7

Serial Array Unit UART UART Full-duplex UART communication can be realized by using two channels, one dedicated to transmission (even channel) and the other to reception (odd channel) Data transmission/reception Data length of 7,8 or 9 bits Select the MSB/LSB first Level setting of transmit/receive data Parity bit appending and parity check functions Stop bit appending Interrupt function Transfer end interrupt/buffer empty interrupt Error interrupt in case of framing error, parity error, or overrun error 8

Serial Array Unit baud rate setting Baud rate will be defined by Operation clock fmck of target channel and Upper 7 bits of the SDR register Example of baud rate setting @ 32MHz 9

Serial Array Unit I 2 C Simplified I 2 C Designed for single communication with a device such as an external EEPROM, some RF parts, Master mode only (No support for Slave mode) No wait state detection Data transmission/reception Master transmission, master reception ACK output and ACK detection functions Data length of 8 bits (When an address is transmitted, the address is specified by the higher 7 bits, and the least significant bit is used for R/W control.) Manual generation of start condition and stop condition Interrupt function / Error detection flag Transfer end interrupt / Parity error (ACK error) Functions not supported by simplified I 2 C Slave transmission, slave reception Arbitration loss detection function Wait detection functions 10

Serial Array Unit Snooze Mode The serial array unit is supporting the SNOOZE mode on the following channels SNOOZE mode capable >= 96K devices will also support SNOOZE mode on UART2 Snooze Mode allows data reception directly from the stop mode Baud rate is limited to 9600 baud (target) Wake up in case of valid reception Directly back into STOP mode in case of reception error 11

Serial Array Unit Snooze Mode example Wake up from SNOOZE by valid reception 12

Serial Array Unit LIN support LIN-bus functions UART2 Wakeup signal detection Sync break field (SBF) detection Sync field measurement for baud rate calculation External interrupt (INTP0) and timer array unit TAU0 channel 7 is used Connections are prepared internally ISC register 13

Serial Array Unit DMA support DMA can be used for a background block transfer with the serial interface Example of an high speed CSI transfer CPU 1. Setup data 3. Start DMA 5. Interrupt to CPU that block transfer is 2. Start interface finished Data0 DataX RAM Data to be sent DMA 0 4. Interrupt trigger DMA To receive /sent next data SDR Serial Array Unit SCK SO SI DMA 1 SDR 14

Serial Array Unit CSI and DMA example Example for Master Transmit/Receive mode Single Transmission/Reception mode Start of transmission directly by CPU INTCSI will trigger DMA and process receive and transmitt data CPU not involved 15

IICA Interface 16

Features of IICA interface Number of channels depends on the device I 2 C features Supports Master Slave Multi-master mode Compliant to I 2 C-bus specification Wake up from STOP mode Since the SCL0 and SDA0 pins are used for open drain outputs, IIC0 requires pull-up resistors for the serial clock line and the serial data bus line. 17

I2C Interface Block Diagram 18

I2C Interface Since the SCL0 and SDA0 pins are open drain outputs, IIC0 requires pull-up resistors for the serial clock line and the serial data bus line 19

Thank You Renesas Electronics Europe