© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose:  This course provides an overview of the serial communication.

Slides:



Advertisements
Similar presentations
EUSART Serial Communication.
Advertisements

I2C bus Inter Integrated Circuits bus by Philips Semiconductors
INPUT-OUTPUT ORGANIZATION
Programmable Interval Timer
ECT 357 Ch 18 UART. Today’s Quote: Be careful that your marriage doesn’t become a duel instead of a duet. Be careful that your marriage doesn’t become.
Microcontroller based system design Asst. Prof. Dr. Alper ŞİŞMAN.
SCI: Serial Communications Interface Presented by: Sean Kline Chad Smith Jamie Cruce.
7-1 Digital Serial Input/Output Two basic approaches  Synchronous shared common clock signal all devices synchronised with the shared clock signal data.
1 ECE 263 Embedded System Design Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System.
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 13.
INPUT-OUTPUT ORGANIZATION
Serial Peripheral Interface Module MTT M SERIAL PERIPHERAL INTERFACE (SPI)
Multichannel Serial Port Interface (McSPI)
Lecture 111 Lecture 11: Lab 3 Overview, the ADV7183B Video Decoder and the I 2 C Bus ECE 412: Microcomputer Laboratory.
© 2010, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose:  This course provides an overview of the SH7216 Ethernet.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Module Introduction Purpose  This training module provides an overview of the different.
LSU 10/22/2004Serial I/O1 Programming Unit, Lecture 5.
SC200x Peripherals Broadband Entertainment Division DTV Source Applications July 2001.
Input/Output mechanisms
Renesas Electronics Europe GmbH A © 2010 Renesas Electronics Corporation. All rights reserved. RL78 Clock Generator.
Universal Synchronous/Asynchronous Receiver/Transmitter (USART)
AT91 Embedded Peripherals
Lecture 13 A/D Converter & D/A Converter. Outline Basic Operation Single Scan Mode Continuous Scan Mode Group Scan Mode Interrupt Sources Registers D/A.
Lecture 20: Communications Lecturers: Professor John Devlin Mr Robert Ross.
Lecture 14 DMA Controller & Serial Communications Interface (UART)
1 Neutron Monitor Workshop 3(B): Next Generation Readout Board Mahidol University January 6, 2010 Paul Evenson University of Delaware Bartol Research Institute.
Universal Asynchronous Receiver/Transmitter (UART)
ECE 353 Introduction to Microprocessor Systems Michael Schulte Week 13.
Embedded System Design Laboratory October 4, 2002Stanford University - EE281 Lecture #3#1 Lecture #3 Outline Announcements AVR Processor Resources –UART.
Scott Baker Will Cross Belinda Frieri March 9 th, 2005 Serial Communication Overview ME4447/6405.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an overview of the CPU architecture.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose This course provides an introduction to the peripheral functions.
Advanced Microprocessor1 I/O Interface Programmable Interval Timer: 8254 Three independent 16-bit programmable counters (timers). Each capable in counting.
 8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This training course provides an overview of the CPU architecture.
Atmel Atmega128 Overview ALU Particulars RISC Architecture 133, Mostly single cycle instructions 2 Address instructions (opcode, Rs, Rd, offset) 32x8 Register.
Universal Asynchronous Receiver/Transmitter (UART)
Renesas Electronics Corporation © 2010 Renesas Electronics America Inc. All rights reserved. RX 12 Bit Analog-to-Digital Converter A Rev /1/10.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Module Introduction Purpose  This training module provides an overview of the peripherals.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Module Introduction Purpose  This training module provides an overview of the analog interfaces.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose This course provides an overview of the standard peripheral.
7 - 1 Texas Instruments Incorporated Module 7 : Serial Peripheral Interface C28x 32-Bit-Digital Signal Controller TMS320F2812.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose:  This course provides an overview of the Direct Memory.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an overview of the Digital-to-Analog.
RX Serial Peripheral Interface (RSPI)
©2008 R. Gupta, UCSD COSMOS Summer 2008 Peripheral Interfaces Rajesh K. Gupta Computer Science and Engineering University of California, San Diego.
Serial Communications Interface Module Slide #1 of 19 MC68HC908GP20 Training PURPOSE -To explain how to configure and use the Serial Communications Interface.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an overview of the PWM type Digital-to-Analog.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose This course provides an introduction to the peripheral functions.
Device Overview 1.  The advantages of all PIC18Fxxxx microcontrollers:  High computational performance  High-endurance  Enhanced Flash program memory.
ECE 2799 Electrical and Computer Engineering Design ANALOG to DIGITAL CONVERSION Prof. Bitar Last Update:
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions.
Communicating. The ATmega16 communicates through one of the following ways: Serial Peripheral Interface (SPI) Universal Synchronous and Asynchronous serial.
Networked Embedded Systems Sachin Katti & Pengyu Zhang EE107 Spring 2016 Lecture 9 Serial Buses – SPI, I2C.
8251 USART.
Criteria for choosing a microcontroller A microcontroller must meet the task at hand efficiency and cost effectively. Speed. What is highest speed of.
Tiva C TM4C123GH6PM UART Embedded Systems ECE 4437 Fall 2015 Team 2:
Renesas Electronics Europe GmbH A © 2010 Renesas Electronics Corporation. All rights reserved. RL78 AD converter.
The HCS12 SCI Subsystem A HCS12 device may have one or two serial communication interface. These two SCI interfaces are referred to as SCI0 and SCI1. The.
Outline Analog to digital conversion (ADC) of NuMaker TRIO
EE 107 Fall 2017 Lecture 5 Serial Buses – UART & SPI
Chapter 11: Inter-Integrated Circuit (I2C) Interface
UNIT – Microcontroller.
E3165 DIGITAL ELECTRONIC SYSTEM
Asynchronous Serial Communications
Serial Communication Interface: Using 8251
Lecture 13 A/D Converter & D/A Converter
AVR – ATmega103(ATMEL) Architecture & Summary
Serial Communication 19th Han Seung Uk.
Presentation transcript:

© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose:  This course provides an overview of the serial communication interfaces and data converters on devices in the SH-2 and SH-2A families of 32-bit RISC microcontrollers, which are members of the SuperH ™ series  Objectives:  Gain a basic knowledge of the features and operation of the serial communication interface (SCI)  Discover the extra capabilities of the SCIF version  Learn about synchronous serial interface options  Learn basic facts about analog-to-digital converter (ADC or A/D) and digital-to-analog converter (DAC or D/A) peripherals  Content:  22 pages  3 questions  Learning Time:  20 minutes

© 2009, Renesas Technology America, Inc., All Rights Reserved SuperH Peripheral Functions  Microcontrollers for embedded system applications require extensive on-chip peripherals to  Minimize system chip count  Reduce overall system cost  Facilitate small system size, etc.  Built-in peripheral functions must  Provide required capabilities  Deliver needed performance levels  Offer design flexibility  Maintain a basic commonality within product family, if possible  Offer an acceptable cost-benefit compromise, etc. SH-2 SuperH 32-bit RISC CPU SH7047 SuperH Series Microcontroller Multi-function Timer Pulse Unit Compare-Match Timer Watchdog Timer Advanced User Debugger Bus Interface Flash Bus State Controller High-performance User Debug Interface Clock Pulse Generator RAM Data Transfer Controller Interrupt Controller User Break Controller I/O Ports Motor Management Timer Serial Communication Interface D/A Converter* A/D Converter * included on some SH-2 series devices, but not the SH7047 CAN Function

© 2009, Renesas Technology America, Inc., All Rights Reserved 3 Serial Communication Interface  SuperH-series devices feature two types of serial communication interface:  SCI on first-generation devices  Serial communication interface with FIFO (SCIF) as well on SH-2A microcontrollers and newer SH-2 devices  16-stage FIFO  Makes it possible to transmit and receive data on each channel for high-speed communication  SCI and SCIF support asynchronous and clocked synchronous serial communication SCIF

© 2009, Renesas Technology America, Inc., All Rights Reserved 4 Serial Communication Modes  Asynchronous mode provides  7- or 8-bit data length  1 or 2 stop bits  Even, odd, or no parity  Parity, framing and overrun error detection  Break detection (SH-2A)  Up to 3Mbit/s operation  Clocked synchronous mode provides  8-bit data length  Overrun error detection  Up to 5Mbit/s operation Data format in clocked synchronous mode Data format in asynchronous mode

© 2009, Renesas Technology America, Inc., All Rights Reserved 5 Full Duplex Communication  SCI and SCIF offer full duplex communication, allowing simultaneous transmission and reception  Each channel has an Independent baud rate generator that uses none of the microcontroller’s timer resources  The interface supports internal and external clock sources

© 2009, Renesas Technology America, Inc., All Rights Reserved 6 Baud Rate/Bit Error Calculation When you choose a baud rate, consider the percentage error rate, too!

© 2009, Renesas Technology America, Inc., All Rights Reserved 7  Four sources can trigger interrupts:  Tx (FIFO) data empty  Rx (FIFO) data full  Receive error  Break condition (SH-2A)  If a receive error occurs, it must be cleared before reception can continue  With FIFO you can  Ascertain the quantity of Tx and Rx FIFO data in the buffers  Keep track of the number of Rx errors  SCIF can generate a timeout (DR) error in asynchronous mode  Rx and Tx interrupts can activate DMAC and DTC transfers  SCI and SCIF can be put into standby mode to conserve power Generating Interrupts (Automatically enables)

© 2009, Renesas Technology America, Inc., All Rights Reserved 8 Modem Flow Control SCIF in SH-2A devices can generate modem control signals (/CTS, /RTS)

© 2009, Renesas Technology America, Inc., All Rights Reserved 10 I 2 C Interface and Peripherals  I 2 C is a serial bus interface standard developed by Philips Semiconductor  Two SH-2 series I 2 C peripherals provide an I 2 C-compatible bus interface  IIC2 on earlier devices in the SH-2 series  IIC3 on SH-2A microcontrollers and newer SH-2 devices  Select I 2 C or clocked-synchronous serial formats  Master and slave modes are supported  Independent registers make possible continuous data transmission and reception  Shift register  Tx data register  Rx data register Peripherals operate in I 2 C or clocked synchronous mode

© 2009, Renesas Technology America, Inc., All Rights Reserved 11 I 2 C Bus Format Features  IIC2 and IIC3 peripherals can  Automatically generate start and stop conditions  Automatically transmit acknowledge bit  Reception acknowledge levels are selectable  IIC3 (on SH-2A and newer SH-2 devices) has a bit synchronization/wait function in master mode that  Monitors SCL per bit  Synchronizes timing automatically  Holds SCL low to wait  Multiple interrupt sources include Tx empty, Tx end, Rx data full, arbitration lost, NACK detection, and stop condition detection  Tx data empty or Rx data full can activate SH-2A DMAC  Direct bus drive is provided

© 2009, Renesas Technology America, Inc., All Rights Reserved 12 Clocked Synchronous Serial  This format  Adds more synchronous serial communication channels  Supports multiple interrupt sources, including Tx data empty, Tx end, Rx data full, and overrun error  Tx data empty and Rx data full interrupts can activate DMAC interrupt handling on SH-2A series microcontrollers  SDA outputs data in synchronization with the SCL clock Bit 0 Bit 7 SDA SCL Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1

© 2009, Renesas Technology America, Inc., All Rights Reserved 13 IIC3: I 2 C Interface on SH-2A MCU IIC3 Implementation IIC3 External Circuit Connections

© 2009, Renesas Technology America, Inc., All Rights Reserved 14 Synchronous Serial Comm. Unit SSU on the SH-2 series devices  Communicates with clocked synchronous devices that use separate input and output pins  Works in standard clocked synchronous mode  Supports master and slave modes of operation with internal or external clock  Has selectable clock polarity and phase  Supports full duplex communication with 8-, 16-, and 32-bit-wide data  Can be configured to send LSB or MSB first  Provides interrupt sources: Tx end, Tx empty, Rx full, overrun, and conflict errors  Triggers DTC for interrupt handling  Can be put into standby mode to conserve power

© 2009, Renesas Technology America, Inc., All Rights Reserved 16 Analog-to-Digital Converter  This peripheral  Converts analog voltages to numerical values  Uses successive approximation with up to 12-bit resolution  Supports up to 16 input channels  Devices with 2 or 3 ADCs can make simultaneous conversions on multiple channels  Latest analog-to-digital converters offer  As little as 1  s conversion time  Individual channels with their own 16-bit result register  Several operating modes are available:  Single  Multi (conversion on 1 – 4 or 1 – 8 channels)  Scan (continuous conversion on 1 – 4 or 1 – 8 channels)

© 2009, Renesas Technology America, Inc., All Rights Reserved 17 ADC Features  Sample-and-hold function  Samples input signal voltage  Holds voltage constant during conversion process  Conversion start methods  Software  MTU, MTU2, or MTU2S trigger (MTU2S on SH-2A devices)  External trigger input  Interrupt generated on completion of A/D conversion  DMAC or DTC transfer triggered on end of conversion  Module standby mode to save power

© 2009, Renesas Technology America, Inc., All Rights Reserved 18 ADC Implementation

© 2009, Renesas Technology America, Inc., All Rights Reserved 19 ADC Conversion Errors

© 2009, Renesas Technology America, Inc., All Rights Reserved 20 Digital-to- Analog Converter  Features include  2 output channels  8-bit resolution  10  s conversion time (20pF load)  Output voltage 0V to AVref  DAC holds output voltage constant, even in software standby mode  DAC can be put in module standby mode to conserve power DACR: D/A Control Register DADR0: D/A Data Register 0; DADR1: D/A Data Register 1 8-bit D/A DACRDACR Bus Interface Module Data Bus Internal Data Bus AVCC AVSS DADR0DADR0 Control Circuit DADR1DADR1 DA0 DA1 AVref

© 2009, Renesas Technology America, Inc., All Rights Reserved 22 Course Summary  Serial communication interfaces  Analog-to-Digital converter  Digital-to-Analog converter