ECE 4510/5530 Microcontroller Applications Week 12
|
|
- Fay Cole
- 5 years ago
- Views:
Transcription
1 Microcontroller Applications Week 12 Dr. Bradley J. Bazuin Associate Professor Department of Electrical and Computer Engineering College of Engineering and Applied Sciences
2 Continuing Information PING Controller Area Network (CAN) Project 3 PLAN
3 PING Ultrasonic range sensing Dist C air Tof 2 C air T / sec m c 3
4 Controller Area Network 4
5 CAN Physical Layer Data Frames are transmitted on a two-wire common bus as CAN high (CAN_H) and CAN low (CAN_L) signals
6 Typical CAN Signaling Frame A data frame consists of seven fields: start-of-frame, arbitration, control, data, CRC, ACK, and end-of-frame. Interframe space Data Frame Interframe space or overload frame Start of frame Arbitration field Control field Data field CRC field ACK field End of frame Figure 13.2 CAN Data frame Data: 0 to 8 Bytes
7 Multiple CAN Frames 7
8 CAN Controllers The controllers handle many if not all interface issues. Software is needed to: Initialize the controller Configure the controller Select the CAN addresses to pay attention to Read the messages when received Determine message type, address, amount of data, and data Prepare a transmit message if and when required Determine message type, provide address, fill data buffers and define amount of data Handle error conditions Reset, reinitialize or just turn off.
9 Procedure for Message Transmission Step 1 Identifying an available transmit buffer by checking the TXEx flag associated with the transmit buffer. (CANxTFLG) Step 2 Setting a pointer to the empty transmit buffer by writing the CANxTFLG register to the CANxTBSEL register. This makes the transmit buffer accessible to the user. (Moves it to the foreground.) Step 3 Storing the identifier, the control bits, and the data contents into one of the foreground transmit buffers. Step 4 Flagging the buffer as ready by clearing the associated TXE flag.
10 Using multiple transmit buffers (1) void can_transmit( void ) { static unsigned int buf_addr[3] = {0xFFFF, 0xFFFF, 0xFFFF; // Check if the incoming address has already been configured in a mailbox if( can.address == buf_addr[0] ){ // Mailbox 0 setup matches our new message // Write to TX Buffer 0, start at data registers, and initiate transmission while(!(can0tflg & TXE0)){asm("nop"); CAN0TBSEL = TX0; else if( can.address == buf_addr[1] ){ // Mailbox 1 setup matches our new message // Write to TX Buffer 1, start at data registers, and initiate transmission while(!(can0tflg & TXE1)){asm("nop"); CAN0TBSEL = TX1; else if( can.address == buf_addr[2] ){ // Mailbox 2 setup matches our new message // Write to TX Buffer 2, start at data registers, and initiate transmission while(!(can0tflg & TXE2)){asm("nop"); CAN0TBSEL = TX2; else Check for existing address 10
11 Using multiple transmit buffers (2) else{ // Check if we've got any un-setup mailboxes free and use them // Otherwise, find a non-busy mailbox and set it up with our new address if( buf_addr[0] == 0xFFFF ){ // Mailbox 0 is free // Write to TX Buffer 0, start at address registers, and initiate transmission CAN0TBSEL = TX0; buf_addr[0] = can.address; Check for free address else if( buf_addr[1] == 0xFFFF ){ // Mailbox 1 is free // Write to TX Buffer 1, start at address registers, and initiate transmission CAN0TBSEL = TX1; buf_addr[1] = can.address; else if( buf_addr[2] == 0xFFFF ){ // Mailbox 2 is free // Write to TX Buffer 2, start at address registers, and initiate transmission while(!(can0tflg & TXE2)){asm("nop"); CAN0TBSEL = TX2; buf_addr[2] = can.address; else 11
12 Using multiple transmit buffers (3) else { // No mailboxes free, wait until at least one is not busy while(( CAN0TFLG & 0x07 ) == 0x00){ asm("nop"); // Is it mailbox 0? if(( CAN0TFLG & TXE0 ) == TXE0) { // Setup mailbox 0 and send the message CAN0TBSEL = TX0; buf_addr[0] = can.address; // Is it mailbox 1? else if(( CAN0TFLG & TXE1 ) == TXE1) { // Setup mailbox 1 and send the message CAN0TBSEL = TX1; buf_addr[1] = can.address; // Is it mailbox 2? else if(( CAN0TFLG & TXE2 ) == TXE2) { // Setup mailbox 2 and send the message CAN0TBSEL = TX2; buf_addr[2] = can.address; Wait until a mailbox is not busy 12
13 Using multiple transmit buffers (4) // No matches in existing mailboxes // No mailboxes already configured, so we'll need to load an address - set it up CAN0TXIDR0 = (unsigned char)(can.address >> 3); CAN0TXIDR1 = (unsigned char)(can.address << 5); CAN0TXIDR3 = 0x00; // EID8 CAN0TXIDR4 = 0x00; // EID0 CAN0TXDLR = 0x08; // DLC = 8 bytes // Fill data into buffer, it's used by any address // Allow room at the start of the buffer for the address info if needed CAN0TXDSR0 = can.data.data_u8[0]; CAN0TXDSR1 = can.data.data_u8[1]; CAN0TXDSR2 = can.data.data_u8[2]; CAN0TXDSR3 = can.data.data_u8[3]; CAN0TXDSR4 = can.data.data_u8[4]; CAN0TXDSR5 = can.data.data_u8[5]; CAN0TXDSR6 = can.data.data_u8[6]; CAN0TXDSR7 = can.data.data_u8[7]; Load the data and send CAN0TFLG = CAN0TBSEL; // clear TXE flag to send 13
14 Receive Procedure When a valid message is received at the background receive buffer, it will be transferred to the foreground receive buffer and the RXF flag will be set to 1. (CANxRFLG & RXF) The user s program has to read the received message from the RxFG and then clear the RXF flag to acknowledge the interrupt and to release the foreground receive buffer. When all receive buffers in the FIFO are filled with received messages, an overrun condition may occur. (CANxRFLG & OVRIF)
15 Using receive buffers (1) void can_receive( void ) { unsigned char flags; // Read out the interrupt flags register flags = CAN0RFLG; // Check for errors if(( flags & CSCIF )!= 0x00 ){ // Clear error flags CAN0RFLG &= ~(CSCIF); Check if CSCIF error conditions to high 15
16 Using receive buffers (2) // No error, check for received messages else if(( flags & RXF )!= 0x00 ) { // Read in the info, address & message data can.address = CAN0IDAR0; can.address = can.address << 3; temp = CAN0IDAR1 >> 5; can.address = can.address temp; // Fill out return structure // check for Remote Frame requests and indicate the status correctly if(( CAN0IDAR1 & RTR ) == 0x00 ){ // We've received a standard data packet can.status = CAN_OK; // Fill in the data can.data.data_u8[0] = CAN0RXDSR0; can.data.data_u8[1] = CAN0RXDSR1; can.data.data_u8[2] = CAN0RXDSR2; can.data.data_u8[3] = CAN0RXDSR3; can.data.data_u8[4] = CAN0RXDSR4; can.data.data_u8[5] = CAN0RXDSR5; can.data.data_u8[6] = CAN0RXDSR6; can.data.data_u8[7] = CAN0RXDSR7; can.length = CAN0RXDLR; else{ // We've received a remote frame request // Data is irrelevant with an RTR can.status = CAN_RTR; // Clear the IRQ flag CAN0RFLG &= ~(RXF); Check RXF (RTR or message) 16
17 Using receive buffers (3) else{ can.status = CAN_ERROR; can.address = 0x0001; can.data.data_u8[0] = flags; // CAN0RFLG values returned Not CSCIF or RXF. Another error, possibly an overrun error (all receive buffers full). 17
18 Project #3 Plan Old (1) Historical Project Objectives: The theme of the project is to move an object that has been placed on a conveyor belt from a start position to a specific end position. Emulation: If it was built, a physical model of the plant would include the peripherals as follows: a Start Switch, a LED indicator, a Buzzer (a small speaker), an IR (Infra Red) Emitter and Receiver Module, a H- Bridge Motor Driver Module, and a Motor Encoder Module. In the absence of a fully assembled physical model, the IR Module will be substituted by a IR LED indicator (i.e., a common LED) and a bounce-free switch (STOP#), the output signal of the Encoder Module will be provided by a Function Generator (initial frequency is 5.5KHz), and the PWM signal to drive the H-Bridge will be verified using a Logic Analyzer (initial duty cycle is 50%). All signals should comply with TTL levels. 18
19 Project #3 Plan Old (2) Historical Project Description: The system should implement the operations as follows: upon receiving the asserted START# signal (active-low), the Buzzer should sound (the frequency of the output signal f = 5.5KHz), and the LED indicator should blink six times (at the rate of 1 blink/s). The Buzzer should also be turned off when the blinking is over. Then the IR Emitter LED should be turned on. The PWM signal driving the motor should also be turned on at this point (f = approx. 30KHz, initial duty cycle = 50% to match the input frequency of 5.5 KHz). Until an active-low signal from the IR Receiver (i.e., from the STOP# switch) is detected indicating that the object on the belt has tripped the IR beam, the system should sample the frequency of the signal received from the Encoder, and respond to it by adjusting the duty cycle of the PWM signal as given in the Table below. Input frequency (KHz) Duty cycle of PWM signal (%) When the desired end position for the object is reached, the PWM signal should be turned off (duty cycle = 0%), the Buzzer should sound (at 3.5KHz), and the LED indicator should blink 10 times (at the rate of 2 blinks/s). The Buzzer and the IR LED indicator should be turned off when the blinking is over. The process should restart when the START# signal is asserted again. You are to design, simulate, build, and demonstrate the operation of the system specified above using the Adapt9S12DP512 Board in the Lab and circuits constructed on your Breadboard. 19
20 Project #3 Plan New Goals Objectives: The theme of the project is to move an object that has been placed on a conveyor belt from a start position to multiple positions as specified. Operate as in an industrial environment with warnings and indicators. Use distance sensing to provide feedback control to the conveyor. Long operations and time information for post-operation checking. 20
21 Project #3 Plan New Goals Test Hardware A 2 in. wide by 9-11 in. long conveyor. A bidirectional, geared DC motor driven by an H-bridge. Maximum RPM 60, high torque gearing with possible position overshoot. PING with ADC/Temp. for position determination. H-bridge controls (PWM and direction). Information logging capability based on Real-Time Clock/Calendar and SCI0 port Indicators and warnings based on LEDs and audio output. Operational step counter based on 5x7 display. (5530 students only) Manual conveyor operation with keypad. (5530 students only) Step learning sequence based on keypad. 21
22 Project #3 Plan Dependence Progress in getting the hardware acquired and built. 22
23 Data Logging Collection of sensor information Inclusion of a time and data stamp with data Non-volatile storage Once data is collected, it should never be lost until intentionally deleted. 23
24 Useful Textual Formats A common file format is CSV comma separated values. From In practice the term "CSV" refers to any file that: 1. is plain text using a character set such as ASCII, Unicode, EBCDIC, or Shift JIS, 2. consists of records (typically one record per line), 3. with the records divided into fields separated by delimiters (typically a single reserved character such as comma, semicolon, or tab; sometimes the delimiter may include optional spaces), 4. where every record has the same sequence of fields. Within these general constraints, many variations are in use. Therefore "CSV" files are not entirely portable. Nevertheless, the variations are fairly small, and many implementations allow users to glance at the file (which is feasible because it is plain text), and then specify the delimiter character(s), quoting rules, etc. If a particular CSV file's variations fall outside what a particular receiving program supports, it is often feasible to examine and edit the file by hand or via simple programming to fix the problem. Thus CSV files are, in practice, quite portable. 24
25 CSV File Access MATLAB M = csvread(filename); csvwrite(filename,m); Excel Will both read and write spread sheet information as CSV files 25
26 Text Files as Data Logs LT C3A LT C3E LT C39 LT C3E LT C3D LT C38 LT C3D LT C3B LT C38 LT C3A LT C39 LT C3B LT C3D LT C3E LT C3C LT C3C LT C3D LT C34 LT C39 LT C33 LT C38 LT C3C LT C3B LT C3A LT C39 LT C39 LT C38 LT C36 LT C3A LT C36 LT C36 LT C3B LT C3B LT C3A LT C31 LT C39 LT C3C LT C3A AD EC098 AD F4ABA AD FE AD F9DFE AD F1EC2 AD F109A AD EC6D4 AD FDBA6C AD EC2E2 AD FCF1A AD FB10A AD F0E5C AD EC294 AD EF91A AD EC762 AD FD6922 AD FE31E AD AD E850A AD F0B24 AD F6118 AD FB552 AD E5D68 AD FD36AE AD F424 AD AD AD AD FD7FEC AD AD D1E60 AD F434 AD E846 AD E AD E1BA AD AD F3A AD CD8C AD E3A AD FD3FAE AD AD AD E30 AD F96 AD B8 AD E750 AD F0 AD FD2050 AD AF0 AD AD EEC0 AD C04 AD F18 AD A70 AD C1C11A AD FD4A7E AD AE68C AD AD E AD AD FD6AC8 AD AD D4B1C AD D4A2A ISH 00 FFF8D764 ERR 00 06E00000 ERR 01 04F00000 ERR ERR 03 04F00000 ERR ERR 05 06F00000 ERR ERR ERR ERR ERR ERR D49E6 ERR ERR ERR ERR ERR ERR ERR ERR ERR 05 06F
27 Example Translation LT AFA LT AFC LT AFA LT AFC LT AFB LT AFA LT AFB LT AFB LT AFA LT AFA LT AF LT AFC LT AFB LT AFD LT AFA LT AFC LT AFB min LT AF max LT AF diff
28 Example Translation LT AFA LT AFC LT AFA LT AFC LT AFB LT AFA LT AFB LT AFB LT AFA LT AFA LT AF LT AFC LT AFB LT AFD LT AFA LT AFC LT AFB min LT AF max LT AF diff
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 informationECE 4510/5530 Microcontroller Applications Week 11
ECE 4510/5530 Microcontroller Applications Week 11 Dr. Bradley J. Bazuin Associate Professor Department of Electrical and Computer Engineering College of Engineering and Applied Sciences Chap. 13 and Lab
More informationECE 4510 Introduction to Microprocessors. Chapter 13
ECE 4510 Introduction to Microprocessors Chapter 13 Dr. Bradley J. Bazuin Associate Professor Department of Electrical and Computer Engineering College of Engineering and Applied Sciences Chapter 13 Controller
More informationCAN 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 informationCIS-331 Exam 2 Fall 2015 Total of 105 Points Version 1
Version 1 1. (20 Points) Given the class A network address 117.0.0.0 will be divided into multiple subnets. a. (5 Points) How many bits will be necessary to address 4,000 subnets? b. (5 Points) What is
More informationMSCAN Block Guide V03.01
DOCUMENT NUMBER S12MSCANV3/D MSCAN Block Guide V03.01 Original Release Date: 19 MAY 1998 Revised: 15 JUL 2004 Motorola, Inc. Motorola reserves the right to make changes without further notice to any products
More informationCourse 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 informationUniversity of Florida EEL 4744 Fall 1998 Dr. Eric M. Schwartz
Department of Electrical & Computer Engineering 15 October 199 Professor in ECE 31-Dec-9 12:22 PM Page 1/ Instructions: Show all work on the front of the test papers. If you need more room, make a clearly
More informationCIS-331 Fall 2013 Exam 1 Name: Total of 120 Points Version 1
Version 1 1. (24 Points) Show the routing tables for routers A, B, C, and D. Make sure you account for traffic to the Internet. NOTE: Router E should only be used for Internet traffic. Router A Router
More informationCIS-331 Exam 2 Fall 2014 Total of 105 Points. Version 1
Version 1 1. (20 Points) Given the class A network address 119.0.0.0 will be divided into a maximum of 15,900 subnets. a. (5 Points) How many bits will be necessary to address the 15,900 subnets? b. (5
More informationVMBDMI. Velbus dimmer for resistive or inductive load. VMBDMI PROTOCOL edition 2
VMBDMI Velbus dimmer for resistive or inductive load 1 Binairy format: bits Description SOF Start Of Frame
More informationCIS-331 Spring 2016 Exam 1 Name: Total of 109 Points Version 1
Version 1 Instructions Write your name on the exam paper. Write your name and version number on the top of the yellow paper. Answer Question 1 on the exam paper. Answer Questions 2-4 on the yellow paper.
More informationHistory and Basic Processor Architecture
History and Basic Processor Architecture History of Computers Module 1 Section 1 What Is a Computer? An electronic machine, operating under the control of instructions stored in its own memory, that can
More informationUNH-IOL MIPI Alliance Test Program
DSI Receiver Protocol Conformance Test Report UNH-IOL 121 Technology Drive, Suite 2 Durham, NH 03824 +1-603-862-0090 mipilab@iol.unh.edu +1-603-862-0701 Engineer Name engineer@company.com Panel Company
More informationController Area Network CAN. overview
Controller Area Network CAN overview Some CAN Milestones Development on CAN starts at BOSCH Intel joins in the project CAN published First working CAN chip SAAB Training Target control CAN chips available
More informationVORAGO VA108x0 I 2 C programming application note
AN1208 VORAGO VA108x0 I 2 C programming application note MARCH 14, 2017 Version 1.1 VA10800/VA10820 Abstract There are hundreds of peripheral devices utilizing the I 2 C protocol. Most of these require
More informationECE 4510/5530 Microcontroller Applications Week 7
45/553 Microcontroller Applications Week 7 Dr. Bradley J. Bazuin Associate Professor Department of Electrical and Computer Engineering College of Engineering and Applied Sciences MISC Stuff Keypad revisited
More informationCIS-331 Fall 2014 Exam 1 Name: Total of 109 Points Version 1
Version 1 1. (24 Points) Show the routing tables for routers A, B, C, and D. Make sure you account for traffic to the Internet. Router A Router B Router C Router D Network Next Hop Next Hop Next Hop Next
More informationCIS-331 Final Exam Spring 2018 Total of 120 Points. Version 1
Version 1 Instructions 1. Write your name and version number on the top of the yellow paper and the routing tables sheet. 2. Answer Question 2 on the routing tables sheet. 3. Answer Questions 1, 3, 4,
More informationCIS-331 Exam 2 Spring 2016 Total of 110 Points Version 1
Version 1 1. (20 Points) Given the class A network address 121.0.0.0 will be divided into multiple subnets. a. (5 Points) How many bits will be necessary to address 8,100 subnets? b. (5 Points) What is
More informationHOURS SYLLABUS
8051 40 HOURS SYLUS Introduction of 8051 Pin configuration of 8051, Register structure of 8051. Hardware and software part of Embedded Systems, s in 8051 Assembly level programming, Embedded C programming
More informationChapter 1 Freescale s Scalable Controller Area Network (S12MSCANV2)
Chapter 1 Freescale s Scalable Controller Area Network (S12MSCANV2) 1.1 Introduction Freescale s scalable controller area network (S12MSCANV2) definition is based on the MSCAN12 definition, which is the
More informationBlock number: 00 Interface version: 4A Date: Checksum: 7500 Deployment Non-Deployment
CDR File Information Vehicle Identification Number Investigator Case Number Investigation Date Crash Date Filename Saved on Collected with CDR version Crash Data Retrieval Tool 2.800 Collecting program
More informationInterfacing Z8 Encore! XP MCUs with an I 2 C-Based Character LCD
Application Note Interfacing Z8 Encore! XP MCUs with an I 2 C-Based Character LCD AN014902-1207 Abstract This Application Note describes APIs for interfacing one or more I 2 C-based character LCDs with
More informationEMS CPC XTI. CAN-PC Interface. User Manual THOMAS WÜNSCHE. Documentation for CAN-Interface CPC-XTI.
Documentation for CAN-Interface. Document version 1.3. Documentation date: January 17th, 2005. No part of this document or the software described herein may be reproduced in any form without prior written
More informationRobotic Systems ECE 401RB Fall 2006
The following notes are from: Robotic Systems ECE 401RB Fall 2006 Lecture 15: Processors Part 3 Chapter 14, G. McComb, and M. Predko, Robot Builder's Bonanza, Third Edition, Mc- Graw Hill, 2006. I. Peripherals
More informationGateway Ascii Command Protocol
Gateway Ascii Command Protocol Table Of Contents Introduction....2 Ascii Commands.....3 Messages Received From The Gateway....3 Button Down Message.....3 Button Up Message....3 Button Maintain Message....4
More informationApplication Note I-Port event/error list
Application Note I-Port event/error list A list of events and errors are transmitted via I-Port -ST-...LKP 100163 Title... I-Port event/error list Version... 1.10 Document no.... 100163 Original...en Author...
More informationECE 4510/5530 Microcontroller Applications Week 10
ECE 4510/5530 Microcontroller Applications Week 10 Dr. Bradley J. Bazuin Associate Professor Department of Electrical and Computer Engineering College of Engineering and Applied Sciences ECE 4510/5530
More informationThe House Intelligent Switch Control Network based On CAN bus
The House Intelligent Switch Control Network based On CAN bus A.S.Jagadish Department Electronics and Telecommunication Engineering, Bharath University Abstract The Embedded Technology is now in its prime
More informationExample Programs for 6502 Microprocessor Kit
Example Programs for 6502 Microprocessor Kit 0001 0000 0002 0000 GPIO1.EQU $8000 0003 0000 0004 0000 0005 0200.ORG $200 0006 0200 0007 0200 A5 00 LDA $0 0008 0202 8D 00 80 STA $GPIO1 0009 0205 00 BRK 0010
More informationThe cache is 4-way set associative, with 4-byte blocks, and 16 total lines
Sample Problem 1 Assume the following memory setup: Virtual addresses are 20 bits wide Physical addresses are 15 bits wide The page size if 1KB (2 10 bytes) The TLB is 2-way set associative, with 8 total
More informationCAN In A Day 2L01I. Renesas Electronics America Inc Renesas Electronics America Inc. All rights reserved.
CAN In A Day 2L01I 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 informationC1098 JPEG Module User Manual
C1098 JPEG Module User Manual General Description C1098 is VGA camera module performs as a JPEG compressed still camera that can be attached to a wireless or PDA host. Users can send out a snapshot command
More informationEmbedded 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 informationModules For Six Months Industrial Training On WIRELESS EMBEDDED SYSTEM DESIGN
Modules For Six Months Industrial Training On WIRELESS EMBEDDED SYSTEM DESIGN 1 st Week Introduction to Embedded System a) Tool Hardware tool and Software tool b) Embedded designing, course study c) Board
More information1. TIMS-0201 STEPPER CONTROLLER MODULE HARDWARE GENERAL SOFTWARE DESCRIPTION TIMS-0201 LABVIEW INSTRUMENT DRIVERS...
USB Single Axis Stepper Motor Driver Operating Manual http://www.jovasolutions.com Model Part No. 910-0201 Published April 2005 Operating Manual Doc No: DOC-000009-02 Page 1 of 145 Table of Contents 1.
More information4. Specifications and Additional Information
4. Specifications and Additional Information AGX52004-1.0 8B/10B Code This section provides information about the data and control codes for Arria GX devices. Code Notation The 8B/10B data and control
More informationINNOVATIVE TECHNOLOGY LTD CC2. Communications Protocol Manual GA863. Issue version Page 1 of 108
INNOVATIVE TECHNOLOGY LTD CC2 Communications Protocol Manual GA863 Issue version 1.2.4 Page 1 of 108 Contents 1. CC2... 1 1. Contents... 2 2. Version History... 4 3. Introduction... 5 4. Representations...
More informationCIS-331 Final Exam Spring 2015 Total of 115 Points. Version 1
Version 1 1. (25 Points) Given that a frame is formatted as follows: And given that a datagram is formatted as follows: And given that a TCP segment is formatted as follows: Assuming no options are present
More informationLab 8 (ETH): Control Area Network
1 Lab 8 (ETH): Control Area Network 2 Lab 7: Controller Area Network For a general description of CAN, see the document posted on the course website Lab 7 has two parts: Part 1: you will write a program
More informationMTRX3700 Mechatronics
MTRX3700 Mechatronics 3 2015 PIC18F452 Software Exercises David Rye You are to work in a group of two students to write, debug and demonstrate a series of small assembly language and C programs that meet
More informationIntroduction to Controller Area Network (CAN)
Introduction to Controller Area Network (CAN) 2003 Microchip Technology Incorporated. All Rights Reserved. Introduction to Controller Area Network (CAN) 1 Topics CAN Protocol Overview What is CAN? CAN
More informationThe University of the West Indies, St. Augustine INFO 2603 Platform Technologies /2018 Semester 1 Lab 1 - Wednesday 13th September 2017
The University of the West Indies, St. Augustine INFO 2603 Platform Technologies 1 2017/2018 Semester 1 Lab 1 - Wednesday 13th September 2017 Introduction to Windows Device Manager Welcome to your first
More informationInterrupts, timers and counters
Interrupts, timers and counters Posted on May 10, 2008, by Ibrahim KAMAL, in Micro-controllers, tagged Most microcontrollers come with a set of ADD-ONs called peripherals, to enhance the functioning of
More informationCprE 288 Introduction to Embedded Systems (Timers/Input Capture) Instructors: Dr. Phillip Jones
CprE 288 Introduction to Embedded Systems (Timers/Input Capture) Instructors: Dr. Phillip Jones 1 Announcements HW 4, Due Wed 6/13 Quiz 5 (15 min): Wed 6/13, Textbook reading: Section 9.1, 9.2 (your one-side
More informationReal Time Operating Systems Application Board Details
Real Time Operating Systems Application Board Details Hardware Interface All labs involve writing a C program to generate an interface between a PC and an external Multi-Applications board. A 40-way ribbon
More informationData Sheet MEM 22. Absolute Encoder Multiturn
Absolute Encoder Multiturn Features Resolution: Singleturn: up to 16,384 (14 Bit) steps per revolution Multiturn: up to 16,777,216 (24 Bit) revolutions Interface: SSI (synchron serial interface) or BiSS
More informationUniversity of Florida EEL 4744 Spring 2011 Dr. Eric M. Schwartz Department of Electrical & Computer Engineering 31 March Apr-11 1:29 PM
University of Florida EE 4744 Spring 2011 Dr. Eric M. Schwartz Page 1/15 Exam 2 Go Gators! Instructions: Turn off cell phones beepers and other noise making devices. Show all work on the front of the test
More informationEMS CPC 104I. CAN-PC Interface. User Manual THOMAS WÜNSCHE. Documentation for plug-in board CPC-104I.
Documentation for plug-in board CPC-104I. Document version: V1.2 Documentation date: January 17th, 2005 No part of this document or the software described herein may be reproduced in any form without prior
More informationEmbedded 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 informationBuild a 5A H-bridge Motor driver! New version
Build a 5A H-bridge Motor driver! New version Posted on June 7, 2008, by Ibrahim KAMAL, in Motor Control, tagged This H-bridge is easy to build, without any critical components. It is based on the famous
More informationSolumetrix Toroidal Conductivity Sensors
Solumetrix Toroidal Conductivity Sensors Models: BKIN50, BKEX50, BEIN75, BEEX75 Conductivity: Dual range, 0-20.00 ms (Compensated), 0.1 us resolution 0-200.0 ms (Compensated), 1 us resolution Temperature
More informationCMSC 313 Lecture 03 Multiple-byte data big-endian vs little-endian sign extension Multiplication and division Floating point formats Character Codes
Multiple-byte data CMSC 313 Lecture 03 big-endian vs little-endian sign extension Multiplication and division Floating point formats Character Codes UMBC, CMSC313, Richard Chang 4-5 Chapter
More informationSA818 Programming Manual
SA818 Programming Manual Standard Uart interface is used to configure the parameter of SA818 Walkie Talkie. The format of UART is 9600, 8, N, 1, which means: Baud = 9600, data bit = 8bit, Parity = None,
More informationArduino Prof. Dr. Magdy M. Abdelhameed
Course Code: MDP 454, Course Name:, Second Semester 2014 Arduino What is Arduino? Microcontroller Platform Okay but what s a Microcontroller? Tiny, self-contained computers in an IC Often contain peripherals
More informationEverything s possible. Modbus Communication. Reference Manual. DigiFlex Performance Servo Drives. MNCMMBRF-02
Everything s possible. Modbus Communication Reference Manual DigiFlex Performance Servo Drives www.a-m-c.com MNCMMBRF-02 Preface ADVANCED Motion Controls constantly strives to improve all of its products.
More informationCommunications guide. Line Distance Protection System * F1* GE Digital Energy. Title page
Title page GE Digital Energy D90 Plus Line Distance Protection System Communications guide D90 Plus firmware revision:.9x GE publication code: 60-9070-F (GEK-3469) GE Digital Energy 650 Markland Street
More informationUnlocking the Potential of Your Microcontroller
Unlocking the Potential of Your Microcontroller Ethan Wu Storming Robots, Branchburg NJ, USA Abstract. Many useful hardware features of advanced microcontrollers are often not utilized to their fullest
More informationECE 4510/5530 Microcontroller Applications Week 9
ECE 45/553 Microcontroller Applications Week 9 Dr. Bradley J. Bazuin Associate Professor Department of Electrical and Computer Engineering College of Engineering and Applied Sciences Lab 7 & 8 Elements
More informationAdministrivia. ECE/CS 5780/6780: Embedded System Design. FIFO with Infinite Memory. Introduction to FIFOs
Administrivia ECE/CS 5780/6780: Embedded System Design Scott R. Little Lecture 9: FIFOs CodeWarrior IDE compiler optimization configuration. No labs are scheduled next week. Please contact your TA if you
More informationProcessor Register Set of M16C
Processor Register Set of M6C 2 banks of general-purpose registers 4 6-bit data registers R - R3 Upper and lower bytes of registers R and R can be used as 8-bit registers (RL, RH, RL, RH) 2 6-bit address
More informationModbus Register Map: InRow ACRD60x / ACRC60x
Modbus Map: InRow ACRD60x / ACRC60x Notes: 1. 16-bit registers (INT16, UINT16, ENUM) are transmitted MSB first (i.e., big-endian). 2. INT32 and UINT32 are most-significant word in n+0, least significant
More informationCHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY COMMUNICATION ENGINEERING REG 2008 TWO MARKS QUESTION AND ANSWERS
CHETTINAD COLLEGE OF ENGINEERING AND TECHNOLOGY B.E.,/B.TECH., ELECTRONICS EC6504 MICROPROCESSORS & MICRO CONTROLLERS COMMUNICATION ENGINEERING REG 2008 TWO MARKS QUESTION AND ANSWERS UNIT 1 AND 2 CS SUBJECT
More informationProject Final Report Internet Ready Refrigerator Inventory Control System
Project Final Report April 25, 2006 Dustin Graves, dgraves@gwu.edu Project Abstract Appliance vendors have started producing internet enabled refrigerators which allow users to keep track of refrigerator
More informationDallas Semiconductor DS1307 Real Time Clock. The DS 1307 is a real-time clock with 56 bytes of NV (nonvolatile)
Using the MC9S12 IIC Bus with DS 1307 Real Time Clock DS1307 Data Sheet Asynchronous Serial Communications The MC9S12 Serial Communications Interface (SCI) Dallas Semiconductor DS1307 Real Time Clock The
More informationUSBCAN-OBD. USB to CAN adapter. User Manual. Document version 3.01 (2015/04/22)
USB to CAN adapter User Manual Document version 3.01 (2015/04/22) Contents 1. Introduction... 3 1.1 Functional Overview... 3 1.2 Properties at a Glance...3 1.3 Typical application... 3 2. Installation...
More informationIntecom. March
Intecom Intecom Systems PDI-1000S MKO Application Manual March 1994 590-2269-002 COMPANY PROPRIETARY STATEMENT All information contained herein is considered company proprietary and is restricted solely
More informationIntegrated Device Technology, Inc Stender Way, Santa Clara, CA Phone #: (408) Fax #: (408) Errata Notification
Integrated Device Technology, Inc. 2975 Stender Way, Santa Clara, CA - 95054 Phone #: (408) 727-6116 Fax #: (408) 727-2328 Errata Notification EN #: IEN01-02 Errata Revision #: 11/5/01 Issue Date: December
More informationDeveloper Notes INSTEON Thermostat v012. Developer Notes. INSTEON Thermostat. Revision History
Developer INSTEON Thermostat v012 Developer INSTEON Thermostat Version 012 June 19, 2012 Revision History Rev Date Comments 001 10/28/11 Initial Release 002 11/4/11 Updated formatting in some sections
More informationCANCore-I/II. User Manual. Industrial grade CAN module. Ver.:V3.02 (2016/10/22)
CANCore-I/II Industrial grade CAN module User Manual Ver.:V3.02 (2016/10/22) Contents 1. Introduction... 3 1.1 Functional Overview... 3 1.2 Properties at a Glance...3 1.3 Typical application... 4 2. Installation...
More informationEmbedded Systems, Android & Robotics INTERNSHIP CONTENT
Embedded Systems, Android & Robotics INTERNSHIP CONTENT CONTACT: 0120-4565405, 91-8130513508, 91-9999086300, 91-9953109602, E-MAIL: training@tevatrontech.com Tevatron Technologies Private Limited ( www.tevatrontech.com)
More informationCombining Today s Best Technologies. For Tomorrow s Break Through Discoveries. Feedback Versions Analog Sin/Cos. Control Modes.
Feedback Versions Analog Sin/Cos Control Modes Command Interface Feedback I/O - Digital Accelnet Micro Panel Dimensions: mm [in]. Model * Vdc Ic Ip ACJ-055-09 20-55 9 ACJ-055-18 20-55 6 18 20-90 1 ACJ-090-09
More information10. RS-232C communication
10. RS-232C communication PB9200(P5XMLA) Connecting the cable (1) Turn off the projector and the computer power supplies. (2) Connect the CONTROL port of the projector with a RS-232C port of the computer
More informationDigital Input and Output
Digital Input and Output Topics: Parallel Digital I/O Simple Input (example) Parallel I/O I/O Scheduling Techniques Programmed Interrupt Driven Direct Memory Access Serial I/O Asynchronous Synchronous
More informationController Area Network
Controller Area Network 1 CAN FUNDAMENTALS...3 1.1 USER BENEFITS...3 1.1.1 CAN is low cost...3 1.1.2 CAN is reliable...3 1.1.3 CAN means real-time...3 1.1.4 CAN is flexible...3 1.1.5 CAN means Multicast
More informationTopics. Interfacing chips
8086 Interfacing ICs 2 Topics Interfacing chips Programmable Communication Interface PCI (8251) Programmable Interval Timer (8253) Programmable Peripheral Interfacing - PPI (8255) Programmable DMA controller
More informationASCII Code - The extended ASCII table
ASCII Code - The extended ASCII table ASCII, stands for American Standard Code for Information Interchange. It's a 7-bit character code where every single bit represents a unique character. On this webpage
More informationAbsolute Encoder Multiturn
Absolute Encoder Multiturn Features Resolution: Singleturn: up to 16,384 (14 Bit) steps per revolution Multiturn: up to 16,777,216 (24 Bit) revolutions Interface: SSI (synchron serial interface) or BiSS
More information17. I 2 C communication channel
17. I 2 C communication channel Sometimes sensors are distant to the microcontroller. In such case it might be impractical to send analog signal from the sensor to the ADC included in the microcontroller
More informationEMBEDDED SYSTEMS COURSE CURRICULUM
On a Mission to Transform Talent EMBEDDED SYSTEMS COURSE CURRICULUM Table of Contents Module 1: Basic Electronics and PCB Software Overview (Duration: 1 Week)...2 Module 2: Embedded C Programming (Duration:
More informationCAN Module Documentation
CAN Module Documentation Thomas Craig twc22 12/11/2009 Overview Purpose To provide a standard and robust C-language ARM7 software interface to the Controller Area Network (CAN) busses that form the main
More information1) A/D MODULE (REV D) G23V ONLY 2) LATCH-UP G23V AND G49V ONLY 3) MSCAN MODULE (REV A) G23V AND G49V ONLY 4) MSCAN MODULE (REV A) G23V AND G49V ONLY
MOTOROLA SEMICONDUCTOR TECHNICAL INFORMATION 68HC08AZ32MSE1 Rev 2.0 Mask Set Errata 1 MC68HC08AZ32 8-Bit Microcontroller Unit INTRODUCTION This document describes the errata identified on mask sets: G23V,
More informationSBPC-21-CN. Customer Instruction Manual. FifeNet To ControlNet Gateway
FIFE CORPORATION 222 W. Memorial Road, Oklahoma City, OK 73126-0508 Post Office Box 26508, Oklahoma City, OK 73114-2317 Phone: 405.755.1600 / 800.639.3433 / Fax: 405.755.8425 www.fife.com / E-mail: fife@fife.com
More informationCMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 02, FALL 2012
CMSC 33 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 2, FALL 22 TOPICS TODAY Bits of Memory Data formats for negative numbers Modulo arithmetic & two s complement Floating point formats
More informationECE251: Thursday November 8
ECE251: Thursday November 8 Universal Asynchronous Receiver & Transmitter Text Chapter 22, Sections 22.1.1-22.1.4-read carefully TM4C Data Sheet Section 14-no need to read this A key topic but not a lab
More information1.0. Presents. techathon 3.0
1.0 Presents techathon 3.0 Course Content - techathon techathon 3.0 is a Robotics and Embedded systems Workshop designed by team Robo-Minions. It is a 2 days workshop with each day divided into two sessions
More informationCDR File Information. Comments Direct PCM
IMPORTANT NOTICE: Robert Bosch LLC and the manufacturers whose vehicles are accessible using the CDR System urge end users to use the latest production release of the Crash Data Retrieval system software
More informationThe Link Layer and LANs: Ethernet and Swiches
The Link Layer and LNs: Ethernet and Swiches EECS3214 2018-03-21 Link layer, LNs: outline 6.1 introduction, services 6.2 error detection, correction 6.3 multiple access protocols 6.4 LNs addressing, RP
More informationDeviceNet Communication Manual
DeviceNet Communication Manual Frequency Inverter Series: CFW-11 Language: English Document: 10000104642 / 00 04/2008 Summary ABOUT THIS MANUAL... 5 ABBREVIATIONS AND DEFINITIONS... 5 NUMERICAL REPRESENTATION...
More informationLab 9: On-Board Time Generation and Interrupts
Lab 9: On-Board Time Generation and Interrupts Summary: Develop a program and hardware interface that will utilize externally triggered interrupts and the onboard timer functions of the 68HC12. Learning
More information6.1 Combinational Circuits. George Boole ( ) Claude Shannon ( )
6. Combinational Circuits George Boole (85 864) Claude Shannon (96 2) Signals and Wires Digital signals Binary (or logical ) values: or, on or off, high or low voltage Wires. Propagate digital signals
More informationEE 308 Spring A software delay. To enter a software delay, put in a nested loop, just like in assembly.
More on Programming the 9S12 in C Huang Sections 5.2 through 5.4 Introduction to the MC9S12 Hardware Subsystems Huang Sections 8.2-8.6 ECT_16B8C Block User Guide A summary of MC9S12 hardware subsystems
More informationWIRELESS EMBEDDED SYSTEM DESIGN
Modules For Six Weeks Industrial Training On WIRELESS EMBEDDED SYSTEM DESIGN 1 st Week 1 st Day Introduction to Embedded System a) Tool Hardware tool and Software tool Introduction b) Embedded designing,
More informationWorkshop on In Vehicle Network using CAN By
Workshop on In Vehicle Network using CAN By Modern CAR Modern CAR INTRODUCTION 1. Controller Area Network (CAN) was initially created by German automotive system supplier Robert Bosch in the mid-1980s.
More informationExperiment 4.A. Speed and Position Control. ECEN 2270 Electronics Design Laboratory 1
.A Speed and Position Control Electronics Design Laboratory 1 Procedures 4.A.0 4.A.1 4.A.2 4.A.3 4.A.4 Turn in your Pre-Lab before doing anything else Speed controller for second wheel Test Arduino Connect
More informationDebounced 8 8 Key-Scan Controller
Debounced 8 8 Key-Scan Controller Description The SN7326 is a 64 key, key-scan controller. It offloads the burden of keyboard scanning from the host processor. The SN7326 supports keypad matrix of up to
More informationEC 6504 MICROPROCESSOR AND MICROCONTROLLER
DEPARTMENTOFELECTRONICS&COMMUNICATIONENGINEERING EC 6504 MICROPROCESSOR AND MICROCONTROLLER UNIT I THE 8086 MICROPROCESSOR PARTA 1. What is microprocessor? What is the difference between a MP and CPU?
More informationLocus Engineering Inc
Locus Engineering Inc PS/2 Keyboard to ASCII Converter PS/2 Keyboard PS/2 to ACII Converter Host Microcontroller FEATURES Decodes PS/2 Scanset 2 keystrokes to a single ASCII byte on make Offload process
More informationPAK-XI PS/2 Coprocessor Data Sheet by AWC
PAK-XI PS/2 Coprocessor Data Sheet 1999-2003 by AWC AWC 310 Ivy Glen League City, TX 77573 (281) 334-4341 http://www.al-williams.com/awce.htm V1.0 30 Oct 2003 Table of Contents Overview...1 If You Need
More information