KEG-012 A.K.A. EMMA AND DAVE’S GROUPS Design Projects.

Slides:



Advertisements
Similar presentations
8086 [2] Ahad. Internal! External? 8086 vs _bit Data Bus 20_bit Address 8_bit Data Bus 20_bit Address Only external bus of 8088 is.
Advertisements

Lab 1 I/O, timers, interrupts on the eZ430-RF2500 Thomas Watteyne EE290Q – Spring 2010
Microprocessors Typical microprocessor controlled devices: Camera, mobile phone, stereo, mp3 player, electronic toys… High-level microprocessor controlled.
Interrupts, Low Power Modes and Timer A (Chapters 6 & 8)
Chung-Ta King National Tsing Hua University
Base Conversion COP Practice Problem  Print a String in reverse order:  For example, if we want to print “HELLO” backwards,  we first print:
Chung-Ta King National Tsing Hua University
Programmable Interval Timer
8253/54 Timer Section /54 Timer Description and Initialization
Bits and Bytes + Controlling 8 LED with 3 Pins Binary Counting and Shift Registers.
9/20/6Lecture 3 - Instruction Set - Al1 The Hardware Interface.
ECE 447 Fall 2009 Lecture 9: TI MSP430 Interrupts & Low Power Modes.
Binary & Decimal numbers = 3* * *10 + 5*1 = 3* * * *10 0 Decimal system: Ten digits: 0,1,2,3,…,9 Example:
Getting the O in I/O to work on a typical microcontroller Activating a FLASH memory “output line” Part 1 Main part of Laboratory 1 Also needed for “voice.
ECE 382 Lesson 2 Readings Lesson Outline Admin Assembler Linker
Embedded Systems UNIT 3. Pin Details of 8051 Pins 1-8: Port 1 Each of these pins can be configured as an input or an output. Pin 9: The positive voltage.
Number Systems and Codes In PLC
The 8051 Microcontroller architecture
Revision Introductory Lesson
LAB 7: WDT+ and Low-Power Optimization
ECE Lecture 1 1 Binary number system Department of Electrical and Computer Engineering The Ohio State University ECE 2560.
Number Systems.
Development. Development Environment Editor Assembler or compiler Embedded emulator/debugger IAR Embedded Workbench Kickstart Code Composer Essentials.
CS231: Computer Architecture I Laxmikant Kale Fall 2004.
ENGR 1181 First-Year Engineering Program College of Engineering Engineering Education Innovation Center First-Year Engineering Program Solar Energy Meter.
ENEE 440 Chapter Timer 8254 Register Select The 8254 timer is actually 3 timers in one. It is an upgraded version of the 8253 timer which was.
1 Chapter 4 Timer Operation (I. Scott MacKenzie).
PIT: Programmable Interval Timer
A Simple Tour of the MSP430. Light LEDs in C LEDs can be connected in two standard ways. Active high circuit, the LED illuminates if the pin is driven.
Computer Sensing and Control How is binary related to what we are trying to accomplish in electronics? The PC GadgetMaster II uses binary to communicate.
8254 SOFTWARE PROGRAMMABLE TIMER/COUNTER
The 8253 Programmable Interval Timer
MOBILE OPERATING ROBOT ON EMBEDDED SYSTEM
Lecture 11: TI MSP430 Timers Compare Modes
Lecturers: Professor John Devlin Mr Robert Ross
8279 KEYBOARD AND DISPLAY INTERFACING
 Counters are sequential circuits which "count" through a specific state sequence. They can count up, count down, or count through other fixed sequences.
Engineering 1040: Mechanisms & Electric Circuits Winter 2015 Introduction to C Programming.
IO Subsystem IV Ports and peripherals. IO Subsystem (1) All devices connected to the system buses, other than memory and CPU – Input and output ports.
1 Interrupts, Resets Today: First Hour: Interrupts –Section 5.2 of Huang’s Textbook –In-class Activity #1 Second Hour: More Interrupts Section 5.2 of Huang’s.
Automatic accident avoiding system PROJECT MEMBERS MUTHUKUMAR.K (05ME33) SAKTHIDHASAN.S (05ME39) SAKTHIVEL.N (05ME40) VINOTH.S (05ME56) PROJECT GUIDE:
8254 Timer.
Sequential logic circuits
1 - Remove LED from 13 and GND - Bring out your breadboard from HW#4 Arduino Overview:
8279 KEYBOARD AND DISPLAY INTERFACING
Chapter 1_0 Registers & Register Transfer. Chapter 1- Registers & Register Transfer  Chapter 7 in textbook.
8085 INTERNAL ARCHITECTURE.  Upon completing this topic, you should be able to: State all the register available in the 8085 microprocessor and explain.
HJD Institute of Technical Education & Research- Kera(Kutch) The 8051 Microcontroller architecture PREPARED BY: RAYMA SOHIL( )
Programming in Arduino Materials:Arduino Board Casperelectronics Pre Pres. Notes Photos from workshop?
Programming PIC 16F84A in Assembly. PIC16F84 pin-out and required external components.
More on Digital Logic Devices and Circuits Trac D. Tran ECE Department The Johns Hopkins University Baltimore, MD
ECE 382 Lesson 32 Lesson Outline Lab 6 Introduction Pulse Width Modulation Capture / Compare Example Lab 6 Tips Admin Lab#6 “prelab” due BOC lesson 33.
Application Case Study Christmas Lights Controller
Binary & Decimal numbers
CS4101 嵌入式系統概論 General Purpose IO
Lecture 8: TI MSP430 Interrupts, ISRs
CS4101 Introduction to Embedded Systems Lab 1: MSP430 LaunchPad IDE
Chapter 6 General Purpose Input/Output
CS4101 Introduction to Embedded Systems Lab 1: General Purpose IO
CS4101 嵌入式系統概論 General Purpose IO
Hardware Source: ttp:// under
Chapter 2 Push button and Potentiometer
Logic Gates Practical Objective: to develop an understanding of logic circuits and truth tables.
Digital Concepts for PLCs
X1 & X2 These are also called Crystal Input Pins.
Lecture 9: TI MSP430 Interrupts & Low Power Modes
Hardware Source: ttp:// under
8051 Micro Controller.
CS4101 Introduction to Embedded Systems Lab 2: Basic IO and Timer
A modular robot for use in the RoboSumo lab
Presentation transcript:

KEG-012 A.K.A. EMMA AND DAVE’S GROUPS Design Projects

Week 1 Recap What (we hope) you learned last week…  The Task  First Challenge  Documenting your journey (wordpress.com)

The Task Race to the wall  Week 6: 23/02/2015  Basic kit provided  Start on black, hit wall, return to black (AND STOP!) RoboSumo  Week 12: 20/04/2015  Good idea to supplement kit provided (max. budget €70)  Competition to find and force your opponent off the table, or to avoid being forced off yourself (table is black with a white edge). Last semester’s tournament details can be found below: robosumo-tournament-information/ robosumo-tournament-information/

First Challenge LED Key challenge  Basic circuit components  MSP430 and LaunchPad MSP430 and LaunchPad  C programming C programming  Binary Binary Images sourced from and

MSP430 and LaunchPad Device Pinout Connections for programming  Power MUST be going to the chip (Vcc)  Connect LaunchPad to chip:  GND  TEST  RST Important pins to note:  Vcc: ~3.3 V  GND (DVss)  TEST & RST Inputs/Outputs  Port 1: P1.0-P1.7  Port 2: P2.0-P2.7 Image from the datasheet for the MSP430G2452 available at:

C programming Documentation  At the start of your code always include something similar to: // // Description of code for MSP430G2553 or MSP430G2452 // Written by NAME last modifed DATE // See //  Throughout your code include comments! Include the library for the MSP430 #include Main program int main( void ) { } Disable watchdog timer  WDTCTL = WDTPW + WDTHOLD; The watchdog timer is a safety mechanism which will carry out a controlled system restart should a software problem arise. It will reset the system if a specified time interval elapses. We disable this within our program as it is not necessary. Specify pin directions i.e. inputs vs. outputs (P1DIR/P2DIR)  Inputs = 0  Outputs = 1  Each bit or pin must be specified. The default is 0 i.e. input. Outputs(P1OUT/P2OUT)  It is not possible to just write one single bit/pin. Thus you must specify the full byte e.g. to turn on P1.2 and leave all other pins of port 1 low, you would type P1OUT = 0b ; Delay intervals  __delay_cycles(X) Where X is the number of cycles to pause for. For the MSP430G4252 this equates to approximately X microseconds.

Binary Binary is a numbering system just like decimal or hexadecimal. Binarydecimal hexadecimal Instead of counting to the base 10 (decimal) or 16 (hexadecimal), it counts to the base 2. In C programming a binary number is written as:  0bXXXXXXXX  Each X refers to an individual bit of the byte of memory for the specific number. Least significant (LSB) vs. most significant (MSB) bit  LSB = bit with lowest weighting or value (furthest right)  MSB = bit with highest weighting or value (furthest left)

Documenting your journey ALL students MUST maintain a blog of their experiences (wordpress.com) This accounts for part of your grade and should be taken seriously from the start. See more details here: on/ on/ Technical content IS required! Some issues encountered by students last semester have been addressed in the following post: entriesthe-basics/ entriesthe-basics/