CAN In A Day 2L01I. Renesas Electronics America Inc Renesas Electronics America Inc. All rights reserved.

Size: px
Start display at page:

Download "CAN In A Day 2L01I. Renesas Electronics America Inc Renesas Electronics America Inc. All rights reserved."

Transcription

1 CAN In A Day 2L01I Renesas Electronics America Inc.

2 Renesas Technology & Solution Portfolio 2

3 Microcontroller and Microprocessor Line-up bit 8/16-bit 1200 DMIPS, Superscalar Automotive & Industrial, 65nm 600µA/MHz, 1.5µA standby 500 DMIPS, Low Power 32-Bit High Performance DSP, FPU with High Integration Automotive & Industrial, 90nm 600µA/MHz, 1.5µA standby 165 DMIPS, FPU, DSC Industrial, 90nm 200µA/MHz, 1.6µA deep standby 25 DMIPS, Low Power Industrial & Automotive, 150nm 190µA/MHz, 0.3µA standby 10 DMIPS, Capacitive Touch Wide Industrial Format & LCDs Automotive, 130nm 350µA/MHz, 1µA standby 1200 DMIPS, Performance Automotive, 40nm 500µA/MHz, 35µA deep standby 165 DMIPS, FPU, DSC Industrial, 40nm 200µA/MHz, 0.3µA deep standby Embedded Security, ASSP Industrial, 90nm 1mA/MHz, 100µA standby 44 DMIPS, True Low Power Industrial & Automotive, 130nm 144µA/MHz, 0.2µA standby 3

4 Connect to the Smart Society with CAN! Smart Society Challenge You don t have time to write and debug a reliable CAN driver You need to get your idea to market SOON Solution Use CAN and the CAN API! The CAN API handles controlling the peripheral The CAN peripheral - Handles ALL the low level details Focus on your application! 4 Agenda

5 Agenda Where Use CAN!? The CAN Dataframe The CAN Mailbox The CAN API Polling vs. Interrupts Transmit Dataframes Polling vs. Interrupt Receive Dataframes Polling vs. Interrupt Error Handling Lab Application Level Considerations 5

6 Lab Learn how to Initialize the CAN peripheral with the API Transmit from a CAN mailbox Receive data to a mailbox Use a low cost CAN Monitor to view and send CAN dataframes The CAN API The lab is straightforward Reading Understanding Uncommenting code So don t leave! 6

7 Where CAN is Best! 4 min. Mainly on-board comm. Poor noise immunity Too expensive 7

8 CAN Continuously Moving into New Fields Machines (knitting) Agriculture Control Electronics Factory Assembly Lines Medical Systems Railway Electronics Marine Electronics Elevators Building Automation Printing, Copying 8

9 Lowest Levels Dataframe and Mailbox 9

10 The Dataframe Standard 11-bit ID Dataframe S O F Identifier Rem Req ID extend Control Data (Bytes) C R C A C K I F S bytes Application software only reads/writes CAN ID Data Length Code (in Control Field) Data Field 10

11 Frame Resides in Mailbox Mailbox A.k.a. Message Box, Buffer, Slot Application <-> Bus point of interaction One mailbox handles one complete dataframe (0-8 bytes) RX has 32 mailboxes/peripheral With two channels, 64 mailboxes to use on one bus More mailboxes SW design easier More SW design flexibility Less runtime reconfiguring 11

12 Managing a Mailbox Field Transmit Receive Setup mailbox Receive Get message ID DLC Write Write Write - Read Read All app needs to do! Data Write - Read HW takes care of rest Tx mailbox: HW takes care of low level transmit details Rx mailbox: HW captures messages with the set ID Mailboxes can be reconfigured at runtime 12

13 CAN Firmware & Peripheral Interaction Node MCU Node MCU Node MCU Configure a mailbox to send a frame with ID=5 Configure a mailbox to receive ID=5 Firmware Mailboxes ID=5,Data=123,TX Mailboxes Mailboxes ID=5,Data= 123,RX CAN Peripheral Mask Mask Mask Transceiver Transceiver Transceiver 13

14 Question Which of these do you need in order to setup a mailbox to transmit? 1. CAN ID 2. Data Length Code 3. Data Field 4. All above Which of these do you need to specify to setup a mailbox to receive? 1. CAN ID 2. Data Length Code 3. Data Field 4. All above 14

15 Application Level 15

16 Layers (Where are we?) Let s move up the layers. Optional industrial protocol 16

17 Dealing with the CAN Registers CAN Initialization START Enter CAN reset/ initialization mode Exit CAN sleep mode CAN reset mode? YES Enable CAN ports Set CAN control register - Loopback mode select bit - Message order select bit - Basic CAN mode select bit - Bus error interrupt enable bit NO can be tedious. Sure would be nice to have Set CAN bit timing and baud rate Set mask register Go to CAN operation mode CAN operation mode? YES END NO The CAN API 17

18 The CAN API Initialization, Port and Peripheral Control R_CAN_Create (ch_nr); R_CAN_SetBitrate (ch_nr); R_CAN_PortSet (ch_nr, action_type); [action_type = ENABLE, DISABLE] R_CAN_Control (ch_nr, action_type); [action_type = ENTERSLEEP_CANMODE, EXITSLEEP_CANMODE, RESET_CANMODE, HALT_CANMODE, OPERATE_CANMODE, CANPORT_TEST_LISTEN_ONLY, CANPORT_TEST_0_EXT_LOOPBACK, CANPORT_TEST_1_INT_LOOPBACK, CANPORT_RETURN_TO_NORMAL] Send R_CAN_TxSet (ch_nr, mbox_nr, frame_p, frame_type); R_CAN_Tx (ch_nr, mbox_nr); R_CAN_TxCheck (ch_nr, mbox_nr); R_CAN_TxStopMsg (ch_nr, mbox_nr); The CAN API Receive R_CAN_RxSet (ch_nr, mbox_nr, stid, frame_type); R_CAN_RxRead (ch_nr, mbox_nr, frame_p); R_CAN_RxPoll (ch_nr, mbox_nr, frame_p); R_CAN_RxSetMask (ch_nr, sid_mask_value, mask_reg_nr); Error Check R_CAN_CheckErr (ch_nr); 18

19 Polling vs. Interrupts Polling You only need data at a certain execution path You don t want CAN interrupts interfering some other task Note: Overrun New message discarded Overwrite New message overwrites old Interrupts For processing data as soon as it arrives When messages may not be lost - linked messages To avoid overwrite / overrun 19

20 Transmitting A Frame struct can_std_data_s { uint16 id; uint8 dlc; uint8 data[8]; }; struct can_std_frame_t my_tx_frame.id = 0x700; my_tx_frame.dlc = 2; my_tx_frame.data[0] = 0x11; my_tx_frame.data[1] = 0x22; my_tx_frame; The CAN API R_CAN_TxSet (0, mbox_nr, &my_tx_frame, DATA_FRAME); The API function Waits for previous frame to finish transmit Clears message control register Disables interrupts for mailbox Sets CAN ID Sets DLC Sets transmit data Transmits Dataframe 20

21 Transmit Verification Not necessary... unless application must know whether message sent yet Example; message in a sequence CAN peripheral will deliver unless Bus Off Just continuously check for Error Passive/Bus Off Polling #define USE_CAN_POLL 1 (config_r_can_rapi.h) Check if data sent by calling API_status = R_CAN_TxCheck (ch_nr, mbox_nr); If API_OK, message was sent! Transmit interrupt #define USE_CAN_POLL 0 Successful Dataframe transmit triggers ISR CAN0_TXM0_ISR() checks which mailbox sent. Flag the application that data has been sent! 21

22 Question A CAN mailbox configured with an ID can later be reused to handle other IDs? A. True, a mailbox can be reconfigured at runtime. Can a mailbox be reconfigured from transmit to receive? A. Again, yes! A mailbox can be reconfigured at runtime. 22

23 Configure Mailbox to Receive R_CAN_RxSet(ch_nr, mbox_nr, stid, frame_type); The CAN API The API Waits for any previous transmission/reception to complete Interrupt disables the mailbox Clears mailbox control register Sets Standard ID for selected mailbox Sets Dataframe/Remote frame Sets receive interrupt enabled unless USE_CAN_POLL defined 23

24 Polling for Received Data How to receive Dataframe in application At System Setup In config_r_can_rapi.h #define USE_CAN_POLL 1 When polling from app, use R_CAN_RxPoll(ch_nr, mbox_nr, frame_p); If this returns API_OK, mailbox has new message, call R_CAN_RxRead (ch_nr, mbox_nr, frame_p); Copies data to address -> frame_p. 24

25 Using the Receive Interrupt How to receive Dataframe in application At System Setup In config_r_can_rapi.h #define USE_CAN_POLL 0 When frame arrives with ID set by API the CAN Receive ISR triggers Check which mailbox caused the interrupt with R_CAN_RxPoll (ch_nr, mbox_nr, frame_p); If new frame, call R_CAN_RxRead (ch_nr, mbox_nr, frame_p); which copies the data to frame_p Set a flag to tell the main application that data has been received 25

26 Lab Setup U A R T J-Link Debug 5V DC Not necessary. CAN only needs V A to mini-b USB cable To PC for J-Link debug SW3 SW2 SW1 LCD YRDK63N CAN Hi = thick red wire -> pin 1 J8 Ring of LEDs v A to B USB cable To PC for Sys Tec CAN monitor SYSTEC CAN bus monitor v 27

27 Application Level Considerations 28

28 Your CAN Application - Keep in Mind No real addresses Messages broadcast to whomever happens to listen! Subdivide ID field for higher level functionality 11-bit ID split into user protocol fields Group priority (critical, info,..) Function ID (temp sensor, motor,..) Device address You CAN use! 29

29 Error Handling Check node state regularly with uint8_t R_CAN_CheckErr(void) The CAN API Returns STATE_ERROR (Error Active): < 127 CAN transmit and receive errors occurred, OK! STATE_ERROR_PASSIVE: Over 127 errors occurred warn user. STATE_BUSOFF: Node will not transmit until it recovers. Pause application, notify user that node is not working. Reinitialize CAN and reset mailboxes when node recovers to Error Active. 30

30 Minimum Application Handling of Bus Off Normal application activity Poll if peripheral is in Bus Off Peripheral recovered: Bus Off reached Reinitialize CAN! Application can not send or receive System goes into error mode: Poll if peripheral recovers 31

31 Questions? 32

32 Connect to the Smart Society with CAN! Smart Society Challenge You don t have time to write and debug a reliable CAN driver You need to get your idea to market SOON Solution Use CAN and the CAN API! The CAN API handles controlling the peripheral The CAN peripheral - Handles ALL the low level details Focus on your application! Do you agree? 33

33 Renesas Electronics America Inc.

Implementing Bootloaders on Renesas MCUs

Implementing Bootloaders on Renesas MCUs Implementing Bootloaders on Renesas MCUs Brandon Hussey, Applications Engineer Class ID: CL09I Renesas Electronics America Inc. Brandon Hussey Applications Engineer RX support Flash API Virtual EEPROM

More information

RL78 Project Configuration Tips

RL78 Project Configuration Tips RL78 Project Configuration Tips Renesas Electronics America Inc. Renesas Technology & Solution Portfolio 2 Microcontroller and Microprocessor Line-up 2010 2012 32-bit 8/16-bit 1200 DMIPS, Superscalar Automotive

More information

Low Power Design. Renesas Electronics America Inc Renesas Electronics America Inc. All rights reserved.

Low Power Design. Renesas Electronics America Inc Renesas Electronics America Inc. All rights reserved. Low Power Design Renesas Electronics America Inc. Renesas Technology & Solution Portfolio 2 Microcontroller and Microprocessor Line-up 2010 2012 32-bit 8/16-bit 1200 DMIPS, Superscalar Automotive & Industrial,

More information

Using Software Building Blocks for Faster Time to Market

Using Software Building Blocks for Faster Time to Market Using Software Building Blocks for Faster Time to Market Brandon Hussey, Applications Engineer Class ID: 3L09B Renesas Electronics America Inc. Brandon Hussey Applications Engineer RX support Flash API

More information

Low Power Design Michael Thomas, Applications Engineer

Low Power Design Michael Thomas, Applications Engineer Low Power Design Michael Thomas, Applications Engineer Class ID: CL01B Renesas Electronics America Inc. Michael Thomas (Applications Engineer) 5 years at Renesas Electronics RX200 Technical Support RTOS,

More information

Incorporating a Capacitive Touch Interface into Your Design

Incorporating a Capacitive Touch Interface into Your Design Incorporating a Capacitive Touch Interface into Your Design Renesas Electronics America Inc. Renesas Technology & Solution Portfolio 2 Microcontroller and Microprocessor Line-up 2010 2012 32-bit 8/16-bit

More information

LibUSB - Create a Solution Without the Class Struggle

LibUSB - Create a Solution Without the Class Struggle LibUSB - Create a Solution Without the Class Struggle Carl Stenquist, Staff AE Class ID: 2L01I Renesas Electronics America Inc. Carl Stenquist Applications Engineer USB Development & support of RX USB

More information

Capacitive Touch Based User Interfaces and Hardware-based Solutions

Capacitive Touch Based User Interfaces and Hardware-based Solutions Capacitive Touch Based User Interfaces and Hardware-based Solutions Renesas Electronics America Inc. Renesas Technology & Solution Portfolio 2 Microcontroller and Microprocessor Line-up 2010 2013 32-bit

More information

Embedding Audio into your RX Application

Embedding Audio into your RX Application Embedding Audio into your RX Application Renesas Electronics America Inc. Renesas Technology & Solution Portfolio 2 Microcontroller and Microprocessor Line-up 2010 2013 32-bit 8/16-bit 1200 DMIPS, Superscalar

More information

Software Development with an Open Source RTOS

Software Development with an Open Source RTOS Software Development with an Open Source RTOS Fatih Peksenar - Sr. Manager, Application Engineering Class ID: 9L02I Renesas Electronics America Inc. Mr. Fatih Peksenar Manager, Applications Engineering

More information

RL78 Ultra Low Power MCU Lab

RL78 Ultra Low Power MCU Lab RL78 Ultra Low Power MCU Lab Renesas Electronics America Inc. Renesas Technology & Solution Portfolio 2 Renesas Technology & Solution Portfolio 3 Microcontroller and Microprocessor Line-up 2010 2012 32-bit

More information

Secure Firmware Update Lab Session

Secure Firmware Update Lab Session Secure Firmware Update Lab Session Shotaro Saito, Staff Application Engineer, Secure MCU Class ID: BL02I Renesas Electronics America Inc. Shotaro Saito, Application Engineer 24 years in Embedded Systems

More information

An Introduction to e 2 studio

An Introduction to e 2 studio An Introduction to e 2 studio Axel Wolf, Tools Marketing Manager Class ID: 3C15B Renesas Electronics America Inc. Axel Wolf Product Marketing for Development Tools REA Marketing Unit, MCU Products Based

More information

Rapid RX600 System Development Using the RPDL and PDG

Rapid RX600 System Development Using the RPDL and PDG ID 320L: Rapid RX600 System Development Using the RPDL and PDG Renesas Electronics America Inc. Brandon Hussey Applications Engineer 12 & 13 October 2010 Version: 1.0 Welcome to the Rapid Development for

More information

CC05B RX Project Configuration Tips

CC05B RX Project Configuration Tips CC05B RX Project Configuration Tips John Breitenbach, Senior Engineering Manager Class ID: CC05B Renesas Electronics America Inc. John Breitenbach Senior Engineering Manager Manage apps engineering team

More information

RL78 Ultra Low Power MCU Lab

RL78 Ultra Low Power MCU Lab RL78 Ultra Low Power MCU Lab Michael Clodfelter Sr. Staff Application Engineer Class ID: CL07I Renesas Electronics America Inc. Mike Clodfelter Sr. Staff Application Engineer for Renesas Electronics 16bit

More information

ID 025C: An Introduction to the OSEK Operating System

ID 025C: An Introduction to the OSEK Operating System ID 025C: An Introduction to the OSEK Operating System Version 1.0 1 James Dickie Product Manager for Embedded Software Real-time operating systems AUTOSAR software components Software logic analyzer Experience:

More information

ID B34L: HMI Development with QNX'S Momentics Toolchain and Connected Automotive Reference QNX CAR

ID B34L: HMI Development with QNX'S Momentics Toolchain and Connected Automotive Reference QNX CAR ID B34L: HMI Development with QNX'S Momentics Toolchain and Connected Automotive Reference QNX CAR Patrick Shelly FAE, North American Automotive QNX Software Systems Tuesday, 12 October 2010 Jon Jedlicka

More information

Optimizing RX Performance

Optimizing RX Performance Optimizing RX Performance Renesas Electronics America Inc. Renesas Technology & Solution Portfolio 2 Microcontroller and Microprocessor Line-up 2010 2012 32-bit 1200 DMIPS, Superscalar Automotive & Industrial,

More information

ID 024C: Auto Code Generation: The Shortest Distance From Idea to Implementation

ID 024C: Auto Code Generation: The Shortest Distance From Idea to Implementation ID 024C: Auto Code Generation: The Shortest Distance From Idea to Implementation Christopher Myers Director of Software Development 12 October 2010 Version: 1.1 Christopher Myers cmyers@simuquest.com Director

More information

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 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 I²C interface. It covers the main features of this communication interface, which is widely used to connect devices such as microcontrollers, sensors,

More information

ID 434L: Incorporating a Capacitive Touch Interface into Your Design

ID 434L: Incorporating a Capacitive Touch Interface into Your Design ID 434L: Incorporating a Capacitive Touch Interface into Your Design Renesas Electronics America Inc. Jim Page Senior Applications Engineer 12 & 13 October 2010 Version: 1.1 1 Jim Page Senior Applications

More information

ID 730L: Getting Started with Multimedia Programming on Linux on SH7724

ID 730L: Getting Started with Multimedia Programming on Linux on SH7724 ID 730L: Getting Started with Multimedia Programming on Linux on SH7724 Global Edge Ian Carvalho Architect 14 October 2010 Version 1.0 Mr. Ian Carvalho System Architect, Global Edge Software Ltd. Responsible

More information

ID 020C: Hardware-in-Loop: System Testing Without the System

ID 020C: Hardware-in-Loop: System Testing Without the System ID 020C: Hardware-in-Loop: System Testing Without the System Applied Dynamics International Marcella Haghgooie Sr. Field Applications Engineer 13 October 2010 Version: 1.2 Marcella Haghgooie Sr. Field

More information

Getting Started with Renesas Development Tools

Getting Started with Renesas Development Tools Getting Started with Renesas Development Tools Renesas Electronics America Inc. Renesas Technology & Solution Portfolio 2 Microcontroller and Microprocessor Line-up 2010 2013 32-bit 8/16-bit 1200 DMIPS,

More information

ID 321L: KPIT GNU compiler plug-ins for HEW / KPIT Eclipse IDE

ID 321L: KPIT GNU compiler plug-ins for HEW / KPIT Eclipse IDE ID 321L: KPIT GNU compiler plug-ins for HEW / KPIT Eclipse IDE Matt Newsome, Principal Engineer, Software Tools, Renesas Electronics Europe, UK Kaushik Phatak, Tech Lead, KPIT Cummins Infosystems, Pune,

More information

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

Hello, and welcome to this presentation of the STM32 Low Power Universal Asynchronous Receiver/Transmitter interface. It covers the main features of Hello, and welcome to this presentation of the STM32 Low Power Universal Asynchronous Receiver/Transmitter interface. It covers the main features of this interface, which is widely used for serial communications.

More information

Enhance Embedded Systems with Low Cost TFT Solutions

Enhance Embedded Systems with Low Cost TFT Solutions Enhance Embedded Systems with Low Cost TFT Solutions Dean Chang, Product Marketing Manager Class ID: 5C09B Renesas Electronics America Inc. Dean Chang Product Marketing Manager 32 bit MCU/MPUs (RX, SH,

More information

FOR IOT PRODUCT DEVELOPMENT

FOR IOT PRODUCT DEVELOPMENT FOR IOT PRODUCT DEVELOPMENT TRONSHOW IEEE2050-2018 STANDARD 2018/12/12 ATSUSHI HASEGAWA INDUSTRIAL SOLUTION BUSINESS UNIT RENESAS ELECTRONICS CORPORATION SOLUTION OFFERINGS FOR FOCUS DOMAINS To develop

More information

Types of Interrupts:

Types of Interrupts: Interrupt structure Introduction Interrupt is signals send by an external device to the processor, to request the processor to perform a particular task or work. Mainly in the microprocessor based system

More information

A11L: 78K0R Low Power MCU

A11L: 78K0R Low Power MCU A11L: 78K0R Low Power MCU Hands-On Lab Renesas Electronics America Inc. Bob Proctor Staff Engineer 12 & 13 October 2010 Version 1.0 1 Bob Proctor Staff Applications Engineer in Durham, NC 3-years at Renesas

More information

ID 220L: Hands-on Embedded Ethernet Design with an Open Source TCP/IP Stack

ID 220L: Hands-on Embedded Ethernet Design with an Open Source TCP/IP Stack ID 220L: Hands-on Embedded Ethernet Design with an Open Source TCP/IP Stack Renesas Electronics America Inc. Fatih Peksenar Senior Manager, Applications Engineering 12 October 2010 Version: 1.2 Embedded

More information

Remote Keyless Entry In a Body Controller Unit Application

Remote Keyless Entry In a Body Controller Unit Application 38 Petr Cholasta Remote Keyless Entry In a Body Controller Unit Application Many of us know this situation. When we leave the car, with a single click of a remote control we lock and secure it until we

More information

BASICS OF THE RENESAS SYNERGY TM

BASICS OF THE RENESAS SYNERGY TM BASICS OF THE RENESAS SYNERGY TM PLATFORM Richard Oed 2018.11 02 CHAPTER 9 INCLUDING A REAL-TIME OPERATING SYSTEM CONTENTS 9 INCLUDING A REAL-TIME OPERATING SYSTEM 03 9.1 Threads, Semaphores and Queues

More information

BASICS OF THE RENESAS SYNERGY PLATFORM

BASICS OF THE RENESAS SYNERGY PLATFORM BASICS OF THE RENESAS SYNERGY PLATFORM TM Richard Oed 2017.12 02 CHAPTER 9 INCLUDING A REAL-TIME OPERATING SYSTEM CONTENTS 9 INCLUDING A REAL-TIME OPERATING SYSTEM 03 9.1 Threads, Semaphores and Queues

More information

ID B30C: IP Video Surveillance Applications

ID B30C: IP Video Surveillance Applications ID B30C: IP Video Surveillance Applications Using the Renesas SH 7724 MPU Global Edge Ian Carvalho Architect Kiran Gaitonde Program Manager 12 October 2010 Version 1.0 1 Mr. Ian Carvalho System Architect,

More information

Embedded Wireless Technologies

Embedded Wireless Technologies Embedded Wireless Technologies Renesas Electronics America Inc. Renesas Technology & Solution Portfolio 2 Microcontroller and Microprocessor Line-up 2010 2012 32-bit 1200 DMIPS, Superscalar Automotive

More information

I Introduction to Real-time Applications By Prawat Nagvajara

I Introduction to Real-time Applications By Prawat Nagvajara Electrical and Computer Engineering I Introduction to Real-time Applications By Prawat Nagvajara Synopsis This note is an introduction to a series of nine design exercises on design, implementation and

More information

How to get realistic C-states latency and residency? Vincent Guittot

How to get realistic C-states latency and residency? Vincent Guittot How to get realistic C-states latency and residency? Vincent Guittot Agenda Overview Exit latency Enter latency Residency Conclusion Overview Overview PMWG uses hikey960 for testing our dev on b/l system

More information

Learning Module 9. Managing the Sensor: Embedded Computing. Paul Flikkema. Department of Electrical Engineering Northern Arizona University

Learning Module 9. Managing the Sensor: Embedded Computing. Paul Flikkema. Department of Electrical Engineering Northern Arizona University Learning Module 9 Managing the Sensor: Embedded Computing Paul Flikkema Department of Electrical Engineering Northern Arizona University Outline Networked Embedded Systems Hardware Software Languages Operating

More information

Using Virtual EEPROM and Flash API for Renesas MCUs RX600 Series

Using Virtual EEPROM and Flash API for Renesas MCUs RX600 Series Using Virtual EEPROM and Flash API for Renesas MCUs RX600 Series Description: This lab will take the user through using the Virtual EEPROM (VEE) project for RX. The user will learn to use the Virtual EEPROM

More information

EEL 4744C: Microprocessor Applications. Lecture 7. Part 1. Interrupt. Dr. Tao Li 1

EEL 4744C: Microprocessor Applications. Lecture 7. Part 1. Interrupt. Dr. Tao Li 1 EEL 4744C: Microprocessor Applications Lecture 7 Part 1 Interrupt Dr. Tao Li 1 M&M: Chapter 8 Or Reading Assignment Software and Hardware Engineering (new version): Chapter 12 Dr. Tao Li 2 Interrupt An

More information

Reading Assignment. Interrupt. Interrupt. Interrupt. EEL 4744C: Microprocessor Applications. Lecture 7. Part 1

Reading Assignment. Interrupt. Interrupt. Interrupt. EEL 4744C: Microprocessor Applications. Lecture 7. Part 1 Reading Assignment EEL 4744C: Microprocessor Applications Lecture 7 M&M: Chapter 8 Or Software and Hardware Engineering (new version): Chapter 12 Part 1 Interrupt Dr. Tao Li 1 Dr. Tao Li 2 Interrupt An

More information

EFM32....the world s most energy friendly microcontrollers

EFM32....the world s most energy friendly microcontrollers EFM32...the world s most energy friendly microcontrollers Energy Micro s Mission EFM32 Gecko Microcontrollers... the world s most energy friendly microcontrollers EFR Draco Radios... the world s most energy

More information

Hello, and welcome to this presentation of the STM32L4 power controller. The STM32L4 s power management functions and all power modes will also be

Hello, and welcome to this presentation of the STM32L4 power controller. The STM32L4 s power management functions and all power modes will also be Hello, and welcome to this presentation of the STM32L4 power controller. The STM32L4 s power management functions and all power modes will also be covered in this presentation. 1 Please note that this

More information

CHAPTER 11 INTERRUPTS PROGRAMMING

CHAPTER 11 INTERRUPTS PROGRAMMING CHAPTER 11 INTERRUPTS PROGRAMMING Interrupts vs. Polling An interrupt is an external or internal event that interrupts the microcontroller To inform it that a device needs its service A single microcontroller

More information

Global GPS NMEA over I²C Software Guide V 1.2

Global GPS NMEA over I²C Software Guide V 1.2 Global GPS NMEA over I²C Software Guide V 1.2 Steve Chen 1 Version History History Date Rev. Author Description 2014/10/01 1.0 Stanly Lin First Release 2015/07/23 1.1 Steve Chen Modify 1.slave address

More information

MCU R&D Strategies for the Smart Society

MCU R&D Strategies for the Smart Society MCU R&D Strategies for the Smart Society Renesas Electronics America Inc. Renesas Technology & Solution Portfolio 2 Smart Society Paradigm From sporadic to CONTINUOUS measurement Energy is limited INFORMATION

More information

Hardware OS & OS- Application interface

Hardware OS & OS- Application interface CS 4410 Operating Systems Hardware OS & OS- Application interface Summer 2013 Cornell University 1 Today How my device becomes useful for the user? HW-OS interface Device controller Device driver Interrupts

More information

Security in Automotive Applications

Security in Automotive Applications Security in Automotive Applications Fabrice Poulard, Technical Marketing Automotive Business Group Class ID: BC05I Renesas Electronics America Inc. Fabrice Poulard Manager, Automotive Business Group Renesas

More information

ID B33C: Developing Rich Graphical User Interfaces Optimized for Embedded Systems

ID B33C: Developing Rich Graphical User Interfaces Optimized for Embedded Systems ID B33C: Developing Rich Graphical User Interfaces Optimized for Embedded Systems Jason Clarke Co-Founder Crank Software Inc. 13 October 2010 Version: 1.0 In the market place today the myth about embedded

More information

CAN Protocol Implementation

CAN Protocol Implementation CAN Protocol Implementation Arun Pasupathi, Gaurav Agalave Electrical and Computer Engineering Department School of Engineering and Computer Science Oakland University, Rochester, MI e-mails: apasupathi@oakland.edu,

More information

LONMANAGER NSS-10 MODEL

LONMANAGER NSS-10 MODEL LONMANAGER NSS-10 MODEL 34000-100 FEATURES Host processor and operating system independent design Register-based host interface provides high packet throughput for system-level monitoring and control applications

More information

Design Tradeoffs in Industrial Ethernet Hardware Implementations

Design Tradeoffs in Industrial Ethernet Hardware Implementations Design Tradeoffs in Industrial Ethernet Hardware Implementations Wil Florentino, Industrial Segment Marketing Class ID: 2C08I Renesas Electronics America Inc. Wil Florentino Renesas Industrial Automation

More information

CAN Node using HCS12

CAN Node using HCS12 CAN Node using HCS12 Ketan Kulkarni, Siddharth Dakshindas Electrical and Computer Engineering Department School of Engineering and Computer Science Oakland University, Rochester, MI e-mails: krkulkarni@oakland.edu,

More information

STM8L and STM32 L1 series. Ultra-low-power platform

STM8L and STM32 L1 series. Ultra-low-power platform STM8L and STM32 L1 series Ultra-low-power platform 8-bit and 32-bit MCU families 2 Flash (bytes) 2 M 1 M 128 K 16 K 8-bit Core STM8S Mainstream STM8A F and STM8AL Automotive STM8L Ultra-low-power 32-bit

More information

TA0139 USER MANUAL ARDUINO 2 WHEEL DRIVE WIRELESS BLUETOOTH ROBOT KIT

TA0139 USER MANUAL ARDUINO 2 WHEEL DRIVE WIRELESS BLUETOOTH ROBOT KIT TA0139 USER MANUAL ARDUINO 2 WHEEL DRIVE WIRELESS BLUETOOTH ROBOT KIT I Contents Overview TA0139... 1 Getting started: Arduino 2 Wheel Drive Wireless Bluetooth Robot Kit using Arduino UNO... 1 2.1. What

More information

vcan API USER GUIDE v1.0 Date : 18th December 2016

vcan API USER GUIDE v1.0 Date : 18th December 2016 vcan API USER GUIDE v1.0 Date : 18 th December 2016 Chapter 1. Overview The vcan CAN Bus Analyzer API (Application Programming Interface) is designed to allow the vcan CAN BUS analyzer devices to be easily

More information

Operation manual. HDOM-Profibus-V0. More options please visit;www.veikong-electric.com

Operation manual. HDOM-Profibus-V0. More options please visit;www.veikong-electric.com Operation manual HDOM-Profibus-V0 More options please visit;www.veikong-electric.com Contents 1 Introduction... 1 1.1 Product description... 1 1.2 HDOM-Profibus-V0 label... 1 1.3 Technical specifications...

More information

STM32 Cortex-M3 STM32F STM32L STM32W

STM32 Cortex-M3 STM32F STM32L STM32W STM32 Cortex-M3 STM32F STM32L STM32W 01 01 STM32 Cortex-M3 introduction to family 1/2 STM32F combine high performance with first-class peripherals and lowpower, low-voltage operation. They offer the maximum

More information

ID 411C: Capacitive Touch User Interfaces and Hardwarebased

ID 411C: Capacitive Touch User Interfaces and Hardwarebased ID 411C: Capacitive Touch User Interfaces and Hardwarebased Solutions Renesas Electronics America Inc. Nelson Quintana Senior Manager, Marketing 12 October 2010 Version 1.2 Hello and welcome to course

More information

Embedded Systems and Software

Embedded Systems and Software Embedded Systems and Software Serial Communication Serial Communication, Slide 1 Lab 5 Administrative Students should start working on this LCD issues Caution on using Reset Line on AVR Project Posted

More information

Introduction to Embedded Systems

Introduction to Embedded Systems Stefan Kowalewski, 4. November 25 Introduction to Embedded Systems Part 2: Microcontrollers. Basics 2. Structure/elements 3. Digital I/O 4. Interrupts 5. Timers/Counters Introduction to Embedded Systems

More information

Microcontroller Technologies for Smart Society

Microcontroller Technologies for Smart Society Microcontroller Technologies for Smart Society Ritesh Tyagi, Sr. Director MCU Marketing Class ID: 1C02B Renesas Electronics America Inc. Mr. Ritesh Tyagi Sr. Director Microcontroller Product Marketing

More information

EFM32 Series 0: DMA (ARM PrimeCell µdma PL230)

EFM32 Series 0: DMA (ARM PrimeCell µdma PL230) EFM32 Series 0: DMA (ARM PrimeCell µdma PL230) EFM32 - DMA DMA has read/write access to most of the EFM32 memory map Flash writes can not be done in memory map, but through sequenced writes to peripheral

More information

Using FlexIO to emulate communications and timing peripherals

Using FlexIO to emulate communications and timing peripherals NXP Semiconductors Document Number: AN12174 Application Note Rev. 0, 06/2018 Using FlexIO to emulate communications and timing peripherals 1. Introduction The FlexIO is a new on-chip peripheral available

More information

CSE 120. Overview. July 27, Day 8 Input/Output. Instructor: Neil Rhodes. Hardware. Hardware. Hardware

CSE 120. Overview. July 27, Day 8 Input/Output. Instructor: Neil Rhodes. Hardware. Hardware. Hardware CSE 120 July 27, 2006 Day 8 Input/Output Instructor: Neil Rhodes How hardware works Operating Systems Layer What the kernel does API What the programmer does Overview 2 Kinds Block devices: read/write

More information

New Generation of CAN Controllers Optimized for 8-bit MCUs

New Generation of CAN Controllers Optimized for 8-bit MCUs New Generation of CAN Controllers Optimized for 8-bit MCUs Paul Kinowski, Bertrand Conan ST Microelectronics, Rousset, France With the introduction of OSEK and the increasing number of ECUs in car s body,

More information

NXP Unveils Its First ARM Cortex -M4 Based Controller Family

NXP Unveils Its First ARM Cortex -M4 Based Controller Family NXP s LPC4300 MCU with Coprocessor: NXP Unveils Its First ARM Cortex -M4 Based Controller Family By Frank Riemenschneider, Editor, Electronik Magazine At the Electronica trade show last fall in Munich,

More information

12.1. Unit 12. Exceptions & Interrupts

12.1. Unit 12. Exceptions & Interrupts 12.1 Unit 12 Exceptions & Interrupts 12.2 Disclaimer 1 This is just an introduction to the topic of interrupts. You are not meant to master these right now but just start to use them We will cover more

More information

EEL 4744C: Microprocessor Applications. Lecture 7. Part 2. M68HC12 Interrupt. Dr. Tao Li 1

EEL 4744C: Microprocessor Applications. Lecture 7. Part 2. M68HC12 Interrupt. Dr. Tao Li 1 EEL 4744C: Microprocessor Applications Lecture 7 Part 2 M68HC12 Interrupt Dr. Tao Li 1 Reading Assignment Software and Hardware Engineering (New version): Chapter 12 or SHE (old version) Chapter 8 And

More information

CAN / RS485. Product Description. Technical Reference Note. Interface Adapter. Special Features

CAN / RS485. Product Description. Technical Reference Note. Interface Adapter. Special Features CAN / Interface Adapter For SHP Series Total Power: < 1 Watts Input Voltage: 5V Internal Outputs: CAN,, USB, I 2 C Special Features Input Protocols: 1) using Modbus 2) CAN using modified Modbus Output

More information

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

RX Family APPLICATION NOTE. I 2 C Bus Interface (RIIC) Module Using Firmware Integration Technology. Introduction. Target Device. I 2 C Bus Interface (RIIC) Module Using Firmware Integration Technology Introduction APPLICATION NOTE R01AN1692EJ0231 Rev. 2.31 This application note describes the I 2 C bus interface (RIIC) module using

More information

AN1077 APPLICATION NOTE

AN1077 APPLICATION NOTE AN1077 APPLICATION NOTE OVERVIEW OF ENHANCED CAN CONTROLLERS FOR ST7 AND ST9 MCUS by Microcontroller Division Applications ABSTRACT Automotive body network requirements have changed significantly in the

More information

MCS-51 Serial Port A T 8 9 C 5 2 1

MCS-51 Serial Port A T 8 9 C 5 2 1 MCS-51 Serial Port AT89C52 1 Introduction to Serial Communications Serial vs. Parallel transfer of data Simplex, Duplex and half-duplex modes Synchronous, Asynchronous UART Universal Asynchronous Receiver/Transmitter.

More information

19: I/O. Mark Handley. Direct Memory Access (DMA)

19: I/O. Mark Handley. Direct Memory Access (DMA) 19: I/O Mark Handley Direct Memory Access (DMA) 1 Interrupts Revisited Connections between devices and interrupt controller actually use interrupt lines on the bus rather than dedicated wires. Interrupts

More information

Course Introduction. Purpose. Objectives. Content. Learning Time

Course Introduction. Purpose. Objectives. Content. Learning Time Course Introduction Purpose This training course provides an overview of Message Frames and hardware issues of the Controller Area Network (CAN) technology used to build networked, multiprocessor embedded

More information

LibUSB: Create a Solution Without the Class Struggle!

LibUSB: Create a Solution Without the Class Struggle! LibUSB: Create a Solution Without the Class Struggle! RX USB lab 2L01I Description: Use a LibUSB PC Host application together with an target board USB Device. Lab objectives Understand how to easily create

More information

Renesas Synergy MCUs Build a Foundation for Groundbreaking Integrated Embedded Platform Development

Renesas Synergy MCUs Build a Foundation for Groundbreaking Integrated Embedded Platform Development Renesas Synergy MCUs Build a Foundation for Groundbreaking Integrated Embedded Platform Development New Family of Microcontrollers Combine Scalability and Power Efficiency with Extensive Peripheral Capabilities

More information

Embedded Systems and Software. Serial Communication

Embedded Systems and Software. Serial Communication Embedded Systems and Software Serial Communication Slide 1 Using RESET Pin on AVRs Normally RESET, but can be configured via fuse setting to be general-purpose I/O Slide 2 Disabling RESET Pin on AVRs Normally

More information

Interrupt is a process where an external device can get the attention of the microprocessor. Interrupts can be classified into two types:

Interrupt is a process where an external device can get the attention of the microprocessor. Interrupts can be classified into two types: 8085 INTERRUPTS 1 INTERRUPTS Interrupt is a process where an external device can get the attention of the microprocessor. The process starts from the I/O device The process is asynchronous. Classification

More information

New STM32 F7 Series. World s 1 st to market, ARM Cortex -M7 based 32-bit MCU

New STM32 F7 Series. World s 1 st to market, ARM Cortex -M7 based 32-bit MCU New STM32 F7 Series World s 1 st to market, ARM Cortex -M7 based 32-bit MCU 7 Keys of STM32 F7 series 2 1 2 3 4 5 6 7 First. ST is first to sample a fully functional Cortex-M7 based 32-bit MCU : STM32

More information

STM32G0 MCU Series Efficiency at its Best

STM32G0 MCU Series Efficiency at its Best STM32G0 MCU Series Efficiency at its Best Key Messages of STM32G0 Series 2 2 3 Efficient Arm Cortex -M0+ at 64 MHz Compact cost: maximum I/Os count Best RAM/Flash Ratio Smallest possible package down to

More information

Design and Implementation Interrupt Mechanism

Design and Implementation Interrupt Mechanism Design and Implementation Interrupt Mechanism 1 Module Overview Study processor interruption; Design and implement of an interrupt mechanism which responds to interrupts from timer and UART; Program interrupt

More information

CS 134. Operating Systems. April 8, 2013 Lecture 20. Input/Output. Instructor: Neil Rhodes. Monday, April 7, 14

CS 134. Operating Systems. April 8, 2013 Lecture 20. Input/Output. Instructor: Neil Rhodes. Monday, April 7, 14 CS 134 Operating Systems April 8, 2013 Lecture 20 Input/Output Instructor: Neil Rhodes Hardware How hardware works Operating system layer What the kernel does API What the programmer does Overview 2 kinds

More information

PCAN-ExpressCard CAN Interface for the ExpressCard Slot. User Manual. Document version ( )

PCAN-ExpressCard CAN Interface for the ExpressCard Slot. User Manual. Document version ( ) PCAN-ExpressCard CAN Interface for the ExpressCard Slot User Manual Document version 2.4.0 (2016-05-11) Relevant products Product name Model Part number PCAN-ExpressCard Single One CAN channel IPEH-003000

More information

Energy Harvesting Reference Design

Energy Harvesting Reference Design www.silabs.com Energy Harvesting Reference Design Sustainable, Ultra-Low-Power Solution for Wireless Sensor Node Applications Embargo Until May 25, 2011 Dramatic Growth Ahead in Energy Harvesting Energy

More information

Advanced Computer Networks. End Host Optimization

Advanced Computer Networks. End Host Optimization Oriana Riva, Department of Computer Science ETH Zürich 263 3501 00 End Host Optimization Patrick Stuedi Spring Semester 2017 1 Today End-host optimizations: NUMA-aware networking Kernel-bypass Remote Direct

More information

User's Guide

User's Guide www.caberg-helm.com User's Guide CONTENTS 1. INTRODUCTION...3 2. PACKAGE CONTENTS...4 3. GETTING STARTED...5 Installing the Headset on Your Helmet... 5 Powering On... 6 Powering Off... 6 Charging the Headset...

More information

Hello, and welcome to this presentation of the STM32 Random Number Generator. The features of this peripheral, which is widely used to provide random

Hello, and welcome to this presentation of the STM32 Random Number Generator. The features of this peripheral, which is widely used to provide random Hello, and welcome to this presentation of the STM32 Random Number Generator. The features of this peripheral, which is widely used to provide random numbers, will be covered in this presentation. 1 The

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

RF Networking With MSP430 & the ez430-rf2500 Session 2 Miguel Morales, MSP430 Applications 6/5/2008 1

RF Networking With MSP430 & the ez430-rf2500 Session 2 Miguel Morales, MSP430 Applications 6/5/2008 1 RF Networking With MSP430 & the ez430-rf2500 Session 2 Miguel Morales, MSP430 Applications 6/5/2008 1 Agenda Recap of Session 1 Hardware description Session 2 Lab Overview Lab 2.1 Tilt & Ambient Noise

More information

Getting Started With the Stellaris EK-LM4F120XL LaunchPad Workshop. Version 1.05

Getting Started With the Stellaris EK-LM4F120XL LaunchPad Workshop. Version 1.05 Getting Started With the Stellaris EK-LM4F120XL LaunchPad Workshop Version 1.05 Agenda Introduction to ARM Cortex Cortex -M4F M4F and Peripherals Code Composer Studio Introduction to StellarisWare, I iti

More information

8086 Interrupts and Interrupt Responses:

8086 Interrupts and Interrupt Responses: UNIT-III PART -A INTERRUPTS AND PROGRAMMABLE INTERRUPT CONTROLLERS Contents at a glance: 8086 Interrupts and Interrupt Responses Introduction to DOS and BIOS interrupts 8259A Priority Interrupt Controller

More information

Freescale Semiconductor, I. SECTION 13 CAN 2.0B CONTROLLER MODULE (TouCAN)

Freescale Semiconductor, I. SECTION 13 CAN 2.0B CONTROLLER MODULE (TouCAN) nc. SECTION 13 CAN 2.0B CONTROLLER MODULE (TouCAN) This section is an overview of the TouCAN module. Refer to D.10 TouCAN Module for information concerning TouCAN address map and register structure. 13.1

More information

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

Hello, and welcome to this presentation of the STM32 Universal Synchronous/Asynchronous Receiver/Transmitter Interface. It covers the main features Hello, and welcome to this presentation of the STM32 Universal Synchronous/Asynchronous Receiver/Transmitter Interface. It covers the main features of this USART interface, which is widely used for serial

More information

Approximately half the power consumption of earlier Renesas Technology products and multiple functions in a 14-pin package

Approximately half the power consumption of earlier Renesas Technology products and multiple functions in a 14-pin package Renesas Technology to Release R8C/Mx Series of Flash MCUs with Power Consumption Among the Lowest in the Industry and Powerful On-Chip Peripheral Functions Approximately half the power consumption of earlier

More information

Wed. Aug 23 Announcements

Wed. Aug 23 Announcements Wed. Aug 23 Announcements Professor Office Hours 1:30 to 2:30 Wed/Fri EE 326A You should all be signed up for piazza Most labs done individually (if not called out in the doc) Make sure to register your

More information

SR5 Serial Protocol - Issue 1.6

SR5 Serial Protocol - Issue 1.6 cctalk bus SR5 Serial Protocol - Issue 1.6 This document is the copyright of Money Controls Ltd and may not be reproduced in part or in total by any means, electronic or otherwise, without the written

More information

Overview of Embedded Systems in Medical Applications

Overview of Embedded Systems in Medical Applications of Embedded Systems in Medical Applications 1 Embedded Systems Simplistic definition Embedded System Shorthand for Embedded Processor System Embed microprocessor + fixed program in non-computer system

More information