AVR32 GPIO CS-423 Dick Steflik. What is a GPIO GPIO – General Purpose Input/Output  Flexible software control digital signal  Each GPIO represents a.

Slides:



Advertisements
Similar presentations
Read Digital input Turn on sensor board Convert to Temperature & Humidity Wake Up CC430 Sleep CC430 Timing diagram ① P.2.4
Advertisements

Microprocessor or Microcontroller Not just a case of “you say tomarto and I say tomayto” M. Smith, ECE University of Calgary, Canada.
ELCT 201 week 13 Analog ON/OFF control system conversion to Digital ON/OFF control system.
Microprocessor or Microcontroller Not just a case of “you say tomarto and I say tomayto” M. Smith, ECE University of Calgary, Canada.
Intro to AVR ATtiny2313 CS423 Dick Steflik. AVR ATtiny2313.
HT46 A/D Type MCU Series Data Memory (Byte) Program Memory HT46R22 (OTP) HT46C22 (Mask) 2Kx Kx16 4Kx HT46R23 (OTP) HT46C23 (Mask) HT46R24.
Microprocessor or Microcontroller Not just a case of “you say tomarto and I say tomayto” M. Smith, ECE University of Calgary, Canada.
1 Introduction Chapter What is an operating system 1.2 History of operating systems 1.3 The operating system zoo 1.4 Computer hardware review 1.5.
Getting the O in I/O to work on a typical microcontroller Ideas of how to send output signals to the radio controlled car. The theory behind the LED controller.
AVR Programming CS-212 Dick Steflik. ATmega328P I/O for our labs To get data into and out of our Arduino its a little trickier than using printf and.
Chapter 7 Input/Output. Input/Output Problems Wide variety of peripherals —Delivering different amounts of data —At different speeds —In different formats.
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.
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
Professor: Dr Kepuska Presented by Kyle Farnum. Audio Manipulation through utilizing three types of filters: Low-pass filters Band- pass filters High-
Microprocessor or Microcontroller Not just a case of “you say tomarto and I say tomayto” M. Smith, ECE University of Calgary, Canada.
Khaled A. Al-Utaibi  8086 Pinout & Pin Functions  Minimum & Maximum Mode Operations  Microcomputer System Design  Minimum Mode.
3-1 System peripherals & Bus Structure Memory map of the LPC2300 device is one contiguous 32-bit address range. However, the device itself is made up of.
How Hardware and Software Work Together
There are different types of translator. An Interpreter Interpreters translate one instruction at a time from a high level language into machine code every.
Input/Output Ports and Interfacing
CS 1308 Computer Literacy and the Internet. Introduction  Von Neumann computer  “Naked machine”  Hardware without any helpful user-oriented features.
Clock Options and Sleep Modes. Clock Sources Flash Fuse bits can be programmed to choose one of the following Clock sources: 1. External RC Osc. f = 1/(3RC).
3-1 Digital I/O A group of I/O pins is called a PORT  A port is where data enters/leaves the system. Digital I/O pins are usually grouped into 8,16 or.
MICROPROCESSOR INPUT/OUTPUT
1 ARM University Program Copyright © ARM Ltd 2013 General Purpose I/O.
Teachers Name : Suman Sarker Telecommunication Technology Subject Name : Microcontroller & Embedded System Subject Code : 6871 Semester : 7th Department.
Introduction to PIC-C. Required Software PIC-C Compiler Firmware Downloader Driver for the USB->Serial Adapter.
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
1 ARM University Program Copyright © ARM Ltd 2013 General Purpose I/O.
Beagle Board Fast Boot Hui Chen Keji Ren Dec 10 th, 2009 EE382N-4 Project.
CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Hybrid I/O – Pulses.
ECS642U Embedded Systems Digital I/O William Marsh.
Lecturers: Professor John Devlin Mr Robert Ross
1 General Purpose and Alternate Function I/O (GPIO and AFIO)
ECS642U Embedded Systems Cyclic Execution and Polling William Marsh.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
Embedded Network Interface (ENI). What is ENI? Embedded Network Interface Originally called DPO (Digital Product Option) card Printer without network.
Automatic accident avoiding system PROJECT MEMBERS MUTHUKUMAR.K (05ME33) SAKTHIDHASAN.S (05ME39) SAKTHIVEL.N (05ME40) VINOTH.S (05ME56) PROJECT GUIDE:
Microcontroller Programming
12/16/  List the elements of 8255A Programmable Peripheral Interface (PPI)  Explain its various operating modes  Develop a simple program to.
User-Space-to-Kernel Interface
STRUCTURE OPERATING SYSTEMS. I. PROCESS MANAGEMENT Process a program in execution More than one process can be associated with a single program Each is.
KyungHee Univ. 1-0 Parallel Input/Output Controller (PIO)
Lecture 4 General-Purpose Input/Output NCHUEE 720A Lab Prof. Jichiang Tsai.
Lesson 2 Component Overview Core Hardware Fundamentals.
SGDRS Software System Design Justin A. King WWU EET Senior project 2013.
Embedded Systems February 10, Serial Interface - SPI  Serial Peripheral Interface  Synchronous communications  Clock supplied by the Master.
NAM S.B MDLAB. Electronic Engineering, Kangwon National University 1.
Application Case Study Christmas Lights Controller
Chapter Objectives In this chapter, you will learn:
AT Commands Supports AT commands
Microcontrollers & GPIO
Fri. Sept 29 Announcements
Refer to Chapter 5 in the reference book
CS 286 Computer Organization and Architecture
Key Terms By: Kelly, Jackson, & Merle
The PCI bus (Peripheral Component Interconnect ) is the most commonly used peripheral bus on desktops and bigger computers. higher-level bus architectures.
The Arduino Microcontroller: Atmel AVR Atmega 328
AT91 Memory Interface This training module describes the External Bus Interface (EBI), which generatesthe signals that control the access to the external.
ChipScope Pro Software
CSCI1600: Embedded and Real Time Software
BIOS Chapter 6.
There are different types of translator.
CSCI1600: Embedded and Real Time Software
ChipScope Pro Software
Wireless Embedded Systems
The Programmable Peripheral Interface (8255A)
Reverse Shell.
Presentation transcript:

AVR32 GPIO CS-423 Dick Steflik

What is a GPIO GPIO – General Purpose Input/Output  Flexible software control digital signal  Each GPIO represents a bit connected to a MCU pin or ball (on the BGA)‏ AVR32 GPIO Processor features  An input change interrupt - Enables level detection on any I/O line  Glitch filtering – reject pulses of < ½ clock cycle  Control of the internal pull-ups on I/O lines  Inout visability and output control

Use of GPIOs Configuration should be done in the board setup code, once setup can be used from:  User-space Slow Mainly used for turning something on/off Can be used from scripts or C  Kernel-space Device drivers Fast

/dev GPIO Interface Uses the configfs ram based virtual file system  Mounts at /config (already done on NGW100)‏ mount -t configfs config /config  Exists only for the current boot session Could be made to be created by running a script at system startup, script would have to create each object  Manipulated by mkdir and rmdir to create and remove objects

/config NGW100 already has three predefined GPIOs  bootled – GPIO0  leda – GPIO1 bit 19  ledb – GPIO2 bit 19 each GPIO directory has 4 files gpio_id – which GPIO (0-4)‏ pin-mask – which pin(s) oe_mask – output enable mask enabled – enable the GPIO (0-disable, 1-enable)‏

/dev GPIO0 GPIO1- bit 19 LED A GPIO2 – bit 19 LED B

Using Define devices in the shell Use them from C using C I/O functions read/write/poll define a file descriptor for the file in /dev  for output write to that file descriptor  for input read from the file descriptor  for waiting on a condition poll the filedescriptor

GPIOs in a module GPIOs can be done faster and easier by doing from a kernel module (this is similar to what we did with the 2313s)‏

LED Interface