Over-view of Lab. 1 For more details – see the Lab. 1 web-site There will be a 20 min prelab quiz (based on Assignment 1 and 2) at the start of the lab.

Slides:



Advertisements
Similar presentations
Tutorial Essentially all the Blackfin instruction you need for all of ENCM511. The instructions are easy. Its knowing when to use them that is the difficult.
Advertisements

Over-view of Lab. 1 For more details – see the Lab. 1 web-site There will be a 20 min prelab quiz (based on Assignment 1 and 2) at the start of the lab.
Blackfin BF533 EZ-KIT Control The O in I/O Activating a FLASH memory “output line” Part 2.
Blackfin BF533 EZ-KIT Control The O in I/O Activating a FLASH memory “output line” Part 3 – New instruction recap Tutorial.
Lab 3 Details. Lab 3 Develop a bio-feedback system based on a PWM (pulse width modulated) thermal sensor Use temperature setting to control the delays.
Assignment Overview Thermal oscillator One of the ENCM415 Laboratory 2 items Oscillator out GND +5V.
Boot Issues Processor comparison TigerSHARC multi-processor system Blackfin single-core.
Blackfin BF533 EZ-KIT Control The O in I/O Activating a FLASH memory “output line” Part 2.
Lab. 1 – Earlier Tasks. Needed by both application and demonstration lab. streams For more details – see the Lab. 1 web-site There will be a 20 min prelab-quiz.
6/2/2015 Labs in ENCM415. Laboratory 2 PF control, Copyright M. Smith, ECE, University of Calgary, Canada 1 Temperature Sensor Laboratory 2 Part 2 – Developing.
Thermal arm-wrestling Design of a video game using two programmable flags (PF) interrupts Tutorial on handling 2 Hardware interrupts from an external device.
Over-view of Lab. 1 For more details – see the Lab. 1 web-site There will be a 20 min prelab quiz (based on Assignment 1 and 2) at the start of the lab.
Lab. 1 – Task 1 to 4 details For more details – see the Lab. 1 web-site There will be a 20 min prelab-quiz (based on Assignment 1 and 2) at the start of.
Lab. 2 – More details – Tasks 4 to 6 1. What concepts are you expected to understand after the Lab. 2 is finished? 2. How do you demonstrate that you have.
TigerSHARC Laboratory Setting up the HPP-ICE environment ICT 318 / 320 Running versions of the Audio-talk-through program.
Lab. 2 Overview 1. What concepts are you expected to understand after the Lab. 2 is finished? 2. How do you demonstrate that you have that knowledge?
Laboratory 5: Introduction to LabVIEW. Overview Objectives Background Materials Procedure Report / Presentation Closing.
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.
Laboratory 1 – ENCM415 Familiarization with the Analog Devices’ VisualDSP++ Integrated Development Environment.
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.
Just enough information to program a Blackfin Familiarization assignment for the Analog Devices’ VisualDSP++ Integrated Development Environment.
Blackfin BF533 EZ-KIT Control The O in I/O
Later tasks of Lab. 1 For more details – see the Lab. 1 web-site There will be a 20 min prelab quiz (based on Assignment 1 and 2) at the start of the lab.
EG1003: Introduction to Engineering and Design Introduction to LabVIEW.
Microprocessor or Microcontroller Not just a case of “you say tomarto and I say tomayto” M. Smith, ECE University of Calgary, Canada.
Tutorial Essentially all the Blackfin instruction you need for all of ENCM511. The instructions are easy. Its knowing when to use them that is the difficult.
Part 1 Using the ARM board And start working with C Tutorial 5 and 6
Developing a bicycle speed-o-meter Midterm Review.
Lab 1 – Assembly Language and Interfacing Start date: Week 3 Due date: Week 4 1.
Peripherals and their Control An overview of industrially available “peripheral devices” that use “pulse-width modulation” for information passing. Review.
Input Laboratory: GPIO Pin control needed to have the Blackfin accept your commands Re-uses information from ENEL353 and ENCM369 courses and text books.
Over-view of Lab. 1 See the Lab. 1 web-site and later lecture notes for more details.
1 ITI 1120 Lab # 1 An Introduction to the Lab Environment Contributors: G. Arbez, M. Eid, D. Inkpen, A. Williams, D. Amyot.
An Introduction to Designing and Executing Workflows with Taverna Aleksandra Pawlik materials by: Katy Wolstencroft University of Manchester.
TigerSHARC Laboratory Setting up the HPP-ICE environment ICT 318 / 320 Running versions of the Audio-talk-through program.
Digitalized Surround Sound Effects Using ADSP BF 533 Kunal Gupta ECE 3551, 03 Fall, 2006.
Lab. 1 – Required Tasks. For more details – see the Lab. 1 web-site.
July 7, 2003 Slide 1 of 6 Automation, Robotics and Mechatronics Lab, SUNY at Buffalo Introduction To Programming Chetan Jadhav Talib Bhabharawala Seung-Kook.
Over-view of Lab. 1 See the Lab. 1 web-site and the lecture notes for more details.
Microcomputer Systems Final Project “Speaker and Sound Modulation”
Handling multiple input signals Version #2 – co-operative scheduler Version #3 – pre-emptive scheduler.
Teaching Digital Logic courses with Altera Technology
Lab. 1 – GPIO Pin control Using information ENEL353 and ENCM369 text books combined with Blackfin DATA manual.
Laboratory 5: Introduction to LabVIEW
Introduction to LabVIEW
Over-view of Lab. 1 See the Lab. 1 web-site and latter lecture notes for more details.
1 TM 1 Embedded Systems Lab./Honam University ARM Microprocessor Programming Model.
Developing Tasks to use with a co-operative scheduler Ideas for Assignment 2 Lab. 2, 3 and 4 Review for Midterm on Lab. 2 Ideas of defects, errors and.
Copyright © 2007 by Pearson Education 1 UNIT 6A COMBINATIONAL CIRCUIT DESIGN WITH VHDL by Gregory L. Moss Click hyperlink below to select: Tutorial for.
EG1003: Introduction to Engineering and Design Introduction to LabVIEW.
Introduction to the FPGA and Labs
Tutorial Essentially all the Blackfin instruction you need for all of ENCM511. The instructions are easy. Its knowing when to use them that is the difficult.
See the Lab. 1 web-site and later lecture notes for more details
Developing a bicycle speed-o-meter
Lab. 2 Overview – Earlier Tasks Prelaboratory T1, T3, T4 and T5
Thermal arm-wrestling
Handling Arrays Completion of ideas needed for a general and complete program Final concepts needed for Final.
TigerSHARC processor and evaluation board
Lab. 4 – Part 1 Demonstrating and understanding multi-processor boot
See the Lab. 1 web-site and later lecture notes for more details
HD44780 LCD programming From the Hardware Side
Tutorial Essentially all the Blackfin instruction you need for all of ENCM511. The instructions are easy. Its knowing when to use them that is the difficult.
Lab. 1 – GPIO Pin control Using information ENEL353 and ENCM369 text books combined with Blackfin DATA manual.
Input Laboratory: GPIO Pin control needed to have the Blackfin accept your commands Re-uses information from ENEL353 and ENCM369 courses and text books.
Handling Arrays Completion of ideas needed for a general and complete program Final concepts needed for Final.
Developing a bicycle speed-o-meter
Blackfin BF533 EZ-KIT Control The O in I/O
Developing a bicycle speed-o-meter
Building a simple loop using Blackfin assembly code
Presentation transcript:

Over-view of Lab. 1 For more details – see the Lab. 1 web-site There will be a 20 min prelab quiz (based on Assignment 1 and 2) at the start of the lab. session

2 /17 Print out the Lab. 1 web-pages for use as reference during the lab. period There will be a short 15-minute in-class quiz at the start of the lab. period – don’t be late Quiz will be based on knowledge demonstrated during assignments 1 and 2

3 /17 Tasks to be tackled Test the provided C++ program to move audio signals in and out of the processor 10% -- Convert the ProcessDataCPP( )code into assembly code 15% -- Initialize the programmable flag interface 10% -- Get the mute sound operation to work (SW1) 15% -- Get the gargle sound operation to work (SW2) 15% -- Get the dancing lights function to work (C++ and provided code) 15% -- Get the volume control to work (Hard -- you might want to leave out -- still get A- on lab) 20% -- Documented code hand in Bonus marks available

4 /17 Task 1 Download audio-talk-through program If you have not already done so, download and expand ENCM415Directory.zip file so that you have the correct directory. structure and test driven development environment needed for Laboratory 1. ENCM415Directory.zip Download and expand the files in CPP_Talkthrough.zip into your Lab1 directory.CPP_Talkthrough.zip Add the CPP_Talkthrough project in your Lab. 1 directory to the VisualDSP environment -- compile and link. Download the executable (.dxe) file onto the BF533 processor. Hook up your CD or IPOD output to the CJ2 stereo input. Hook up your ear-phones to the CJ3 stereo output. Run the CPP_Talkthrough.dxe executable and check that the talk through program is working.

5 /17 Task 2 -- Convert ProcessDataCPP( ) to ProcessDataASM () – Assign. 2 Q3 In talkthrough.h. add a prototype for your assembly code function Process_DataASM; In ISR.cpp change to // call function that contains user code #if 0 Process_DataCPP(); // Use the C++ version #else Process_DataASM(); // C assembly code routines especially developed for Lab. 1 #endif Right-click on ProcessDataCPP.cpp entry. Use "FILE OPTIONS“ to exclude linking Use PROJECT | clean project Add your ProcessDataASM.asm file to the project, recompile and link. Check that your code works More details on the Lab. 1 web pages

6 /17 Task 3 – Initialize the Programmable flag interface – 16 I/O lines on the Blackfin Warning – could burn out the Blackfin processor if done incorrectly You need to set (store a known value to) a number of Blackfin internal registers Most important ones FIO_DIR – Data DIRection – 0 for input **** FIO_INEN – INterface ENable FIO_FLAG_D – Programmable FLAG Data register

7 /17 Why do you need to know how to do read (load) and write (store) on internal registers? Flag Direction register (FIO_DIR)  Used to determine if the PF bit is to be used for input or output -- WARNING SMOKE POSSIBLE ISSUE  Need to set pins PF11 to PF8 for input, leave all other pins unchanged

8 /17 Registers used to control PF pins Flag Input Enable Register  Only activate the pins you want to use (saves power in telecommunications situation)  Need to activate pins PF11 to PF8 for input, leave all other pins unchanged

9 /17 Registers used to control PF pins Flag Data register (FIO_FLAG_D)  Used to read the PF bits (1 or 0)  Need to read pins PF11 to PF8, ignore all other pins values

10 /17 Task 3 – Setting up the programmable flag interface Follow the instructions carefully FIO_DIR – direction register – write 0’s to all bits FIO_INEN – input enable register – write 1’s to bits 8, 9, 10, 11 Other registers set to 0 There is a test program (Weds lecture) that will enable you to check your code – provide a screen dump of test result.

11 /17 Task 4 – Read the switches on the front pannel Final laboratory requirements SW1 connected to PF8 -- Mute button (This task) SW2 connected to PF9 -- Gargle button (Task 5) SW3 connected to PF10 -- Volume up (Task 7) SW4 connected to PF11 -- Volume down (Task 7) Build Initialize_ProgrammableFlagsASM ( ) Modify main( ) and ProcessDataASM( ) so that MUTE-operation works MUST HAVE 50 pin cable connected between logic board and Blackfin Logic board power supply must be turned on

12 /17 #include.global _ReadProgrammableFlags__Fv; _ReadProgrammableFlags__Fv LINK 16; P1.L = lo (FIO_FLAG_D); // could be P0 P1.H = hi (FIO_FLAG_D); R0 = W[P1] (Z); P0 = [FP + 4]; UNLINK; _ReadProgrammableFlags__Fv; JUMP (P0); Must use W [ ] since the manual shows that FIO_FLAG_D register is 16-bits Must use W[P1] (Z) zero-extend as this adds 16 zeros to the 16 bits from FIO_FLAG_D register to make 32-bits to place into R0 int ReadProgrammableFlags( )

13 /17 Task 5 – Gargling operation Need to add a simple counter that increments by 1 every 1/44000 s Code is essentially Assignment 2 Q2 Use the counter to turn the sound off and on every ½ s Gargling sound is produced. You need to have a signed demo sheet from a 2 nd or 4 th year student. Bonus if not from department

14 /17 Task 6 – LED interface and Dancing Lights LED interface setup code provided Check that you can read switches and make the values appear on the LED Then – writing in “C++” code (interfaced to your assembly code) – display the amplitude (absolute value) of the sound

15 /17 Task 7 – Volume control Writing in C++, develop the final volume control Note there are test codes available to test out your equipment This code can be used to test the switches and the LED interface on your board. SwitchToLED.dxe SwitchToLED.dxe This is the final version of my code for Lab. 1. DrSmithLab1Final.dxeDrSmithLab1Final.dxe

16 /17 Information of the marks and what needs to be handed in Hand in at the start of the Thursday tutorial  Sec. 1 – 6 th October  Sec. 2 – 13 th October (Same day as planned prelab. 2 quiz) Note Lab.1  Section 1 is first session – Sept 26th  Section 2 is second session – Oct. 3rd THERE ARE NO LABS ON THE MONDAY OF THANKSGIVING Note Lab. 2  Section 2 is first session – Oct. 17 th  Section 1 is second session – Oct 24 th

17 /17 What is currently planned for Lab. 2? Develop a digital thermometer using LED and print out to display the temperature Use the digital thermometer as remote control sensor to control the volume of sound (from Lab. 1)