Robocon 2007 Electronics Quickstart!

Slides:



Advertisements
Similar presentations
Components of a computer system
Advertisements

Introduction to Micro-controllers Anurag Dwivedi.
C Examples 1.
EXTERNAL COMMUNICATIONS DESIGNING AN EXTERNAL 3 BYTE INTERFACE Mark Neil - Microprocessor Course 1 External Memory & I/O.
Computer Hardware Storyboard
Logic Design Outline –Logic Design –Schematic Capture –Logic Simulation –Logic Synthesis –Technology Mapping –Logic Verification Goal –Understand logic.
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.
BA 471 Management Information Systems Hardware Basics.
Railway Foundation Electronic, Electrical and Processor Engineering.
The “555 Timer” A quick Intro. What is a Timer? a small chip which generates a constant electrical pulse. Used extensively in electronics The CPU has.
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
EE 1106: Introduction to EE Freshman Practicum
Footswitch Controller – Hardware System View – Level 0.
Arduino Josh Villbrandt February 4, Digital Circuits Analog versus digital – What’s the difference? – How to represent an analog signal in a computer?
Hardware Lesson 1. Hardware is all of the electronic equipment that a computer includes. If you can touch it, pick it up, or move it around, it is hardware.
Microcontroller Presented by Hasnain Heickal (07), Sabbir Ahmed(08) and Zakia Afroze Abedin(19)
Robocon 2007, Hong Kong University of Science & Technology Robocon 2007 Electronics Quickstart! Session 2 Prelude Logic Prepared by KI Chi Keung [chikeung.
1 CS/COE0447 Computer Organization & Assembly Language Chapter 5 part 4 Exceptions.
ECS642U Embedded Systems Cyclic Execution and Polling William Marsh.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
Timers and Interrupts Anurag Dwivedi. Let Us Revise.
Assessment Covering… Von Neuman architecture Registers – purpose and use, the fetch execute cycle.
Identifying Hardware Components in a Computer (continued) Clock Speed (continued) The computer has a system clock that generates a regular electronic beat.
Not So Deep Blue The original Deep Blue. LED chess board Track movements of all pieces Show possible moves Track game time Detect piece movement Magnets/Reed.
Robocon 2007, Hong Kong University of Science & Technology Robocon 2007 Electronics Quickstart! Session 4 Communication Prepared by KI Chi Keung [chikeung.
Additional Hardware Optimization m Yumiko Kimezawa October 25, 20121RPS.
Robocon 2007, Hong Kong University of Science & Technology Robocon 2007 Electronics Quickstart! Session 1 Hello! Microcontroller. Prepared by KI Chi Keung.
System Hardware FPU – Floating Point Unit –Handles floating point and extended integer calculations 8284/82C284 Clock Generator (clock) –Synchronizes the.
Microprocessors A practical approach Lesson 2 Hardware description and Delays.
Data Representation Automated data Processing Binary Data representation Mathematical operations Boolean Algebra Hexadecimal Notation.
Microcontrollers JULES CALELLA. Microcontrollers vs Microprocessors  Microprocessors – do not contain RAM, ROM, I/O  Microcontrollers – The whole package.
Microcontrollers BME 201. Overview Microcontrollers Notation Registers Timer Concepts Equations.
Computer systems Quiz. The CPU What does CPU stand for?(1) Which 3 step cycle does the CPU follow?(1) In order to run, name 3 things that the CPU needs?(3)
Lecture 2. A Computer System for Labs
EDUSAFE FINAL CONFERENCE June, 2016
Cypress Roadmap: Platform PSoC®
By Byron Gorsuch & Dane Gentry
team toykO drift Team Members: RYAN WILSON: LEADER
Code review: GPIO, timer, and ISR
Microcontrollers & GPIO
Slides developed in part by Mark Brehob & Prabal Dutta
Microprocessor Systems Design I
8051 Timers Timers are the peripherals of the 8051 Microcontroller.
Microprocessor Systems Design I
Building Raspberry Pi Controllers with Python
Course Overview and The 8051 Architecture
Project Title EVM IN PIC Under the Guidance of Submitted by.
Communication Protocol
IB Computer Science Topic 2.1.1
The Arduino Microcontroller: Atmel AVR Atmega 328
Teaching Computing to GCSE
Introduction to Microprocessors and Microcontrollers
Lab 3 Finite State Machine On Xilinx
Journey: Introduction to Embedded Systems
Power Steering Test Stand
(c) McGraw Hill Ryerson 2007
Interrupt Source: under
Decoding and Using a 4x4 Keyboard
Robocon 2007 Electronics Quickstart!
Overheads for Computers as Components 2nd ed.
Digital Signal Processors-1
Welcome to: CSC225 Introduction to Computer Organization
Wireless Embedded Systems
Robocon 2007 Electronics Quickstart!
Digital Circuits and Logic
Decoding and Using a 4x4 Keyboard
I/O Experiments Assignment 1.
Computer Science. The CPU The CPU is made up of 3 main parts : Cache ALU Control Unit.
ECE 3567 Microcontrollers Lab
Presentation transcript:

Robocon 2007 Electronics Quickstart! Session 2 First Program - GPIO Prepared by KI Chi Keung [chikeung@ust.hk] WONG Long Sing (Sam) [sam@hellosam.net]

Today’s Timeline Driving the Debug LED Reading a button Schematic Reading Special Function Register ATMega128 Specification Reading Hexadecimal / Bitwise Operation Deterministic Speed Reading a button Debouncing State

Schematic Reading Identify the Component Identify the Wire / Net Label Identify the Hardware pin

Special Function Register Identify the hardware module to be used GPIO? Timer? UART? I2C? Identify the SFR involved

ATMega128 Specification Reading It’s silly to read all 3xx pages in a single pass. Don’t try to do that. Only refer to what you need. Usually SFR description is what you needed.

Hexadecimal / Bitwise Operation 0x21  0b00100001 0x43  0b01000011 0xCD  0b11001101 0xFE  0b11111110 _BV(0)  0b00000001 _BV(1)  0b00000010 _BV(7)  0b10000000

Deterministic Speed Each assembly instruction takes defined CPU cycles to run, no more, no less. Period of CPU cycles depends on your clock While the clock is fixed now, so each instruction take exactly deterministic speed. This is true if and only if your program solely occupies the CPU.