1-3 GPIO_Output(LuminaryLibrary) 1.Alter the output current to 4mA 2.Let LED0 turn on but LED 1 turn off. Modify your program in E:\yourname\arm.

Slides:



Advertisements
Similar presentations
Khaled A. Al-Utaibi Interfacing an LED The Light Emitting Diode (LED) Applications DC Characteristics & Operation Interfacing to.
Advertisements

JED Microprocessors Pty Ltd Presenting the JED T430 low-cost Projector Controllers Nov 22nd, 2009.
3-1 Peripherals & I/O lines All the on-chip peripherals are configured and controlled through Special Function Registers (SFR) Many of the SFR’s are bit.
OUTPUT INTERFACE – Microprocessor Asst. Prof. Dr. Choopan Rattanapoka and Asst. Prof. Dr. Suphot Chunwiphat.
Chung-Ta King National Tsing Hua University
Blackfin BF533 EZ-KIT Control The O in I/O Activating a FLASH memory “output line” Part 2.
 | bit OR & bit AND ~ bit NOT ^ bit EXLUSIVE OR (XOR) > bit RIGHT SHIFT.
Refer to Chapter 6, 9 in the reference book
Many students find it difficult understanding the concept of Object Oriented Programming (OOP) Lack of exciting labs leads to a loss of interest Created.
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.
Blackfin BF533 EZ-KIT Control The O in I/O Activating a FLASH memory “output line” Part 2.
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.
Raul Cabrera Khaldon Batnij Isaac Zavala
1-1 NET+OS Software Group Serial EEPROM API Supported Serial EEPROM parts Serial EEPROM API introduction Detailed Serial EEPROM API Function presentation.
Part 1 Using the ARM board And start working with C Tutorial 5 and 6
Network and Systems Laboratory nslab.ee.ntu.edu.tw.
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.
F.F. - 18/07/ User Guide of the Input Trigger Multiplexer unit with input signal rate counters.
1 ARM University Program Copyright © ARM Ltd 2013 General Purpose I/O.
Khaled A. Al-Utaibi  The Push Button  Interfacing Push Buttons to Arduino  Programming Digital Inputs  Working with “Bouncy”
1 LHO 13 The 8051CF020 and the University Daughter Card.
Lecturers: Professor John Devlin Mr Robert Ross
Default_Routine(); - PWM Mapping /******************************************************************** * FUNCTION NAME: Default_Routine * PURPOSE: Performs.
LAB 12: Timer and Interrupt Chung-Ta King National Tsing Hua University CS 4101 Introduction to Embedded Systems.
AVR Programming: Digital I/O September 10, What is Digital I/O? Digital – A 1 or 0 Input – Data (a voltage) that the microcontroller is reading.
Embedded Network Interface (ENI). What is ENI? Embedded Network Interface Originally called DPO (Digital Product Option) card Printer without network.
Conclusion Speech. Content Organization Pronunciation Handwriting.
Input Interface – Microprocessor
ARDUINO 1. Basics  Comments  /* * Blink * * The basic Arduino example. Turns on an LED on for one second, * then off for one second, and so on... We.
User Interface – Switch Panel 6 Gang Switch Panel Configuration guide RS485 Terminal Fixing hole Bayonet Front ViewBack View.
LHO 22 C and the  The Silicon Labs ISE uses the Keil C51 compiler.  The code size is limiter to 2K  C has replaced PL/M (the original Intel high.
KEYBOARD INTERFACING Keyboards are organized in a matrix of rows and columns The CPU accesses both rows and columns through ports. ƒTherefore, with two.
Embedded Programming and Robotics Lesson 11 Arduino Interrupts 1.
Introduction to the DE0 Board Prof. Taeweon Suh Computer Science & Engineering Korea University COSE221, COMP211 Computer Logic Design.
Embedded Systems Lecture 4 January 20, 2016.
Microcontrollers JULES CALELLA. Microcontrollers vs Microprocessors  Microprocessors – do not contain RAM, ROM, I/O  Microcontrollers – The whole package.
Programming in Arduino Materials:Arduino Board Casperelectronics Pre Pres. Notes Photos from workshop?
Arduino DC Motor Motion Control Instructor: Dr Matthew Khin Yi Kyaw.
Aaron Worob.  Create a program using the Blackfin BF533 that allows the user to “move” the source of input sound.
STM32F107VC Datablad Reference manual Schematics.pdf.
8255 Programmable Peripheral Interface
CS4101 嵌入式系統概論 General Purpose IO
More on LED’s with Arduino
TI ARM I/O Programming Chapter 2
Dimmer 6fold 10V Actuator M/DA
connect a DC-Motor with an arduino
CS4101 Introduction to Embedded Systems Lab 1: General Purpose IO
Microcontroller Based Digital Code Lock
Lesson Outline Peripherals Memory-Mapped IO Ports GPIO Multiplexing
PRJ2UC: Microcontrollers
GPIO General Purpose Input/output Tiva C TM4C123GH6PM
Refer to Chapter 10 in the reference book
COMP211 Computer Logic Design Introduction to the DE2 Board
CS4101 嵌入式系統概論 General Purpose IO
Embedded Systems Software Training Center
Blinking an LED Using MSP430ware to Control GPIO
Chapter 2 Push button and Potentiometer
McCrometer Nano Board Test Procedure
Create a paper craft for any object that makes a sound
Interfacing of Traffic light controller
Logic Gates Practical Objective: to develop an understanding of logic circuits and truth tables.
Embedded C for 8051: Primer for CompEng 3150
Programmable Peripheral Interface
Questions Andrew Baek October 16, 2017.
Lab 1. Introduction to the DE2 Board
Lecture 4. Introduction to the DE2 Board
ECE 3567 Microcontrollers Lab
Presentation transcript:

1-3 GPIO_Output(LuminaryLibrary) 1.Alter the output current to 4mA 2.Let LED0 turn on but LED 1 turn off. Modify your program in E:\yourname\arm

Find function in SW-DRL-UG-6075.pdf Stellaris® Peripheral Driver Library user’s guide which is in TIUserGuide.rar

Page GPIODirModeSet Sets the direction and mode of the specified pin(s). Prototype: Void GPIODirModeSet( unsigned long ulPort, unsigned char ucPins, unsigned long ulPinIO) Parameters: ulPort is the base address of the GPIO port ucPins is the bit-packed representation of the pin(s). ulPinIO is the pin direction and/or mode. Description: This function configures the specified pin(s) on the selected GPIO port as either input or output under software control, or it configures the pin to be under hardware control. The parameter ulPinIO is an enumerated data type that can be one of the following values: GPIO_DIR_MODE_IN GPIO_DIR_MODE_OUT GPIO_DIR_MODE_HW where GPIO_DIR_MODE_IN specifies that the pin is programmed as a software controlled input, GPIO_DIR_MODE_OUT specifies that the pin is programmed as a software controlled output, and GPIO_DIR_MODE_HW specifies that the pin is placed under hardware control. The pin(s) are specified using a bit-packed byte, where each bit that is set identifies the pin to be accessed, and where bit 0 of the byte represents GPIO port pin 0, bit 1 represents GPIO port pin 1, and so on.

GPIODirModeSet(GPIO_PORTF_BASE, GPIO_PIN_2 | GPIO_PIN_3, GPIO_DIR_MODE_OUT); Find GPIO_PIN_2 = ? GPIO_PIN_3 =? GPIO_PIN_2 | GPIO_PIN_3= ?

1-4 GPIO_InputOutput

6 SW_1 PB6 right SW_2 PE5 press SW_3PE4 up SW_4 PF1 down SW_5PB4 left

connectJP3PF2 disconnctJP35 JP2PF3JP39 JP43PB6JP20,JP28 JP41PE5JP24 JP42PE4JP25 JP44PF1JP30 JP45PB4JP48 Result: push button Left or Right , Only turn on (LED0) yellow one ; push button Up or Down , Only turn on (LED1) green one ; push button press , turn on (LED1) and (LED0) both ;

while(1) { if (((GPIOPinRead(GPIO_PORTB_BASE,GPIO_PIN_6)>>2) & GPIOPinRead(GPIO_PORTB_BASE,GPIO_PIN_4))==0) Why will we know whether PB6 or PB4 is pushed down by this sentence ?

Modify 1-4 to 1. After pushing button Up or Down and green LED being turned on, Key press is locked, which means even pushing button press , (LED1) and (LED0) are still off. 2.After pushing button Right or Left and yellow LED being turned on, Key press is unlocked, which means pushing button press , (LED1) and (LED0) are turned on both.