ENTC-489 Embedded Real Time Software Development Embedded Real Time Software Development Week 4 Review.

Slides:



Advertisements
Similar presentations
I2C bus Inter Integrated Circuits bus by Philips Semiconductors
Advertisements

A Sample RTOS Presentation 4 Group A4: Sean Hudson, Manasi Kapadia Syeda Taib.
Resource management and Synchronization Akos Ledeczi EECE 354, Fall 2010 Vanderbilt University.
Real-Time Library: RTX
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Resource Access Control Protocols.
OS/2 Warp Chris Ashworth Cameron Davis John Weatherley.
- the new generation realtime operating system For embedded and fault tolerant applications.
Embedded Systems I2CI2C. Feature 3 wire GND SCL(clock) SDA(data) All devices share the same bus wire Using wire and, each device gain access to bus (become.
Serial Interfaces, Part Deux -I 2 C and SPI December 4, 2002 Presented by Eugene Ho.
Lecture 8: Serial Interfaces
PH4705 ET4305 Interface Standards A number of standard digital data interfaces are used in measurement systems to connect instruments and computers for.
Lecture Objectives: 1)Explain the limitations of flash memory. 2)Define wear leveling. 3)Define the term IO Transaction 4)Define the terms synchronous.
ENTC-489 Embedded Real Time Software Development Embedded Real Time Software Development Week 6 Review I2C Communication, review fixed point arithmetic,
IT Systems Multiprocessor System EN230-1 Justin Champion C208 –
© ABB Group Jun-15 Evaluation of Real-Time Operating Systems for Xilinx MicroBlaze CPU Anders Rönnholm.
CSE Fall Introduction - 1 What is an Embedded Systems  Its not a desktop system  Fixed or semi-fixed functionality (not user programmable)
Real-Time Kernels and Operating Systems. Operating System: Software that coordinates multiple tasks in processor, including peripheral interfacing Types.
I2CI2C CS-423 Dick Steflik. Inter-Integrated Circuit Developed and patented by Philips for connecting low speed peripherals to a motherboard, embedded.
Lecture 27: LM3S9B96 Microcontroller – Inter- Integrated Circuit (I 2 C) Interface.
Haptic Belt team Informational Presentation.  I 2 C is a form of control bus (multi-master) which allows communication between multiple integrated circuits.
Real-Time Operating Systems Suzanne Rivoire November 20, 2002
1 EECS 373 Design of Microprocessor-Based Systems Prabal Dutta University of Michigan Lecture 10: Serial buses Oct 6, 2011.
1 © Unitec New Zealand I2C Lecture 10 Date: - 2 Nov, 2011 Embedded Hardware ETEC 6416.
Embedded Bus – i2c David E. Culler Lab 2 Feb 2, 2015
4.0 rtos implementation part II
Real-Time Kernel (Part 1)
ENTC-489 Embedded Real Time Software Development Embedded Real Time Software Development Week 10 Real Time System Design.
Lecture 20: Communications Lecturers: Professor John Devlin Mr Robert Ross.
CSE466 Autumn ‘00- 1 Music Format if amp = 0, note is a command switch(note) 0: turn off specified channel 1: continue for specified tne w/ no change else.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
SOC Consortium Course Material Real-time OS Speaker: 沈文中 April. 9, 2003 National Taiwan University Adopted from National Chiao- Tung University SOC Course.
Getting Started with the µC/OS-III Real Time Kernel Akos Ledeczi EECE 6354, Fall 2015 Vanderbilt University.
2-1 The critical section –A piece of code which cannot be interrupted during execution Cases of critical sections –Modifying a block of memory shared by.
ENTC-489 Embedded Real Time Software Development Embedded Real Time Software Development Week 11 Design Examples.
ENTC-489 Embedded Real Time Software Development Embedded Real Time Software Development Week 5 Mail Boxes / Binary Semaphores Fixed Point Arithmetic.
Reference: Ian Sommerville, Chap 15  Systems which monitor and control their environment.  Sometimes associated with hardware devices ◦ Sensors: Collect.
Real-time OS Hao-yuan Chin Feb. 18, Institute of Electronics, National Chiao Tung University Real-time OS 1 Outline Introduction to RTOS Introduction.
I2C Master Core Simulation Environment. I2C Master Core Requirements Coverage (*) Requirement I2C IP RS-906: The I2C IP shall define the period of time,
Embedded Operating System Leo Philip 10/5/ Do we need an OS ?
1 Synchronous Serial IO Send a separate clock line with data –SPI (serial peripheral interface) protocol –I 2 C (or I2C) protocol Encode a clock with data.
ENTC-489 Embedded Real Time Software Development Embedded Real Time Software Development Week 7 Review, Quiz, & Watchdog Timers.
ENTC-489 Embedded Real Time Software Development Embedded Real Time Software Development Week 1 Introduction Week 1 - Introduction (Rev 2) 1.
ECGR-6185 µC/OS II Nayana Rao University of North Carolina at Charlotte.
Real Time Operating Systems Michael Thomas Date: Rev. 1.00Date.
MicroC/OS-II S O T R.  MicroC/OS-II (commonly termed as µC/OS- II or uC/OS-II), is the acronym for Micro-Controller Operating Systems Version 2.  It.
©2008 R. Gupta, UCSD COSMOS Summer 2008 Peripheral Interfaces Rajesh K. Gupta Computer Science and Engineering University of California, San Diego.
1 VxWorks 5.4 Group A3: Wafa’ Jaffal Kathryn Bean.
ENTC-489 Embedded Real Time Software Development Embedded Real Time Software Development Week 3 Sharing Nicely Week 3 - Sharing Nicely 1.
Essentials of Communication This simple model requires many guarantees. Sender Receiver Communication Link Data.
6.0 INTRODUCTION TO REAL-TIME OPERATING SYSTEMS (RTOS) 6.0 Introduction A more complex software architecture is needed to handle multiple tasks, coordination,
1 J.O. KLEIN Institut Universitaire de Technologie de CACHAN Université PARIS SUD - FRANCE An Introduction to Real Time Operating System.
Embedded Communication Protocols Don Heer 10/18/10 1.
Where Testing Fails …. Problem Areas Stack Overflow Race Conditions Deadlock Timing Reentrancy.
SOC Consortium Course Material SoC Design Laboratory Lab 8 Real-time OS - 1 Speaker: Yung-Chih Chen Advisor: Prof. Chun-Yao Wang November 17, 2003 Department.
Embedded Real-Time Systems Processing interrupts Lecturer Department University.
Chapter 7: Semaphore Management Seulki Lee 1. Semaphore?  A protocol mechanism offered by most multitasking kernels  Control access to a shared resource.
Introduction to Real-Time Operating Systems
Outline Analog to digital conversion (ADC) of NuMaker TRIO
Chapter 11: Inter-Integrated Circuit (I2C) Interface
(Inter-IC bus) By Tejaswini Gadicherla
Getting Started with the µC/OS-III Real Time Kernel
I2C PROTOCOL SPECIFICATION
Communication Lines Fundamentals.
BJ Furman ME 106 Fundamentals of Mechatronics 15NOV2012
Преглед Начин функционисања Имплементације
Lecture 2 Part 2 Process Synchronization
Computer Science & Engineering Electrical Engineering
RTOS Modelling Naren Bala.
Akos Ledeczi EECE 6354, Fall 2017 Vanderbilt University
Akos Ledeczi EECE 6354, Fall 2015 Vanderbilt University
Presentation transcript:

ENTC-489 Embedded Real Time Software Development Embedded Real Time Software Development Week 4 Review

ENTC-489 Embedded Real Time Software Development Today’s Agenda Review – Development Tools and Turning in H/W – ERTSD Vocabulary – Tasks and Task States – OS Timers – Counting Semaphores – Binary Semaphores – Mutexes I2C – Understanding I2C communication – SHT21 Temperature/Humidity Sensor Operation

ENTC-489 Embedded Real Time Software Development ERTSD Vocabulary What is the difference between a kernel and an operating system? Compare – Superloops – Foreground/Background Systems – Kernel Interrupts are (Foreground? Background?) What makes a function reentrant?

ENTC-489 Embedded Real Time Software Development ERTSD Vocabulary Define Real-Time – Hard Real-Time – Soft Real-Time What makes software deterministic? What does the term deterministic have to do with the term Real-Time? What is the difference between a cooperative kernel and a preemptive kernel?

ENTC-489 Embedded Real Time Software Development ERTSD Vocabulary Five Possible Task States in a Kernel, what does each mean? – Dormant – Ready – Pending – Running – Interrutped

ENTC-489 Embedded Real Time Software Development ERTSD Vocabulary In uC/OS-II which is a higher priority? – 15 – 31 What do these parameters do in OSTaskCreate()? – void (*task)(void *pd) – void *pdata – OS_STK *ptos – UINT8U prio

ENTC-489 Embedded Real Time Software Development ERTSD Vocabulary What is a semaphore? – Binary – Counting What is “deadlock” when applied to a kernel? How can you avoid deadlock? What is “priority inversion”? What is a Mutex? Why would you use one?

ENTC-489 Embedded Real Time Software Development ERTSD Vocabulary Explain these functions – OSSemCreate() – OSSemPost() – OSSemPend() – OSSemAccess()

ENTC-489 Embedded Real Time Software Development Homework Architecture

ENTC-489 Embedded Real Time Software Development RTOS Demonstration Volunteers – Timer – Kernel – Idle Task – Task 1 – Task 2 – Main

ENTC-489 Embedded Real Time Software Development Break

ENTC-489 Embedded Real Time Software Development What is I2C Multi master, Multi slave serial protocol Two Wires, SDA & SCL 7 Bit addresses Speed – 100 kb/s Standard – 400 kb/s Fast mode – 1 Mb/s Fast mode + – 3.4 Mb/s High Speed mode – 5 Mb/s Ultra-Fast mode

ENTC-489 Embedded Real Time Software Development Architecture

ENTC-489 Embedded Real Time Software Development Message Structure Start Condition indicates the master is setting up communication Ack, the “sender” releases SDA and the “receiver” pulls it low if no error Stop Condition lets all devices on the bus know to listen for a Start Condition again

ENTC-489 Embedded Real Time Software Development Clock Stretching After receiving last data bit, the slave holds the clock line low until it is ready. Ack is set to the correct state, usually 0 Clock line is released for master to continue

ENTC-489 Embedded Real Time Software Development Repeated Start Condition Used when more than one message must be sent to complete an operation. e.g. reading a byte from an EEPROM Master, Slave, S=Start, P=Stop

ENTC-489 Embedded Real Time Software Development Real Life Example SHT-21 Measures temperature and humidity Fast mode I2C (up to 400 kb/s)

ENTC-489 Embedded Real Time Software Development SHT-21 Performance

ENTC-489 Embedded Real Time Software Development Addressing & Commands 7 Bit address is 0b – Address to write 0b or 0x80 – Address to read 0b or 0x81 Commands:

ENTC-489 Embedded Real Time Software Development Why are there 2 measurement commands? 4 mS Hold, freezes I2C bus for 160 potential message bytes 85 mS Hold, freezes I2C bus for 3400 potential message bytes The SHT-21 is not our only I2C device on this board

ENTC-489 Embedded Real Time Software Development Measure the Humidity