Presentation is loading. Please wait.

Presentation is loading. Please wait.

All of Lab. 4 using Services Audio, LED, GPIO, LightSensor, Thermal Sensors, LCD Code by A. Tran / M. Smith Talk by M. Smith with slides from D. Lannigan.

Similar presentations


Presentation on theme: "All of Lab. 4 using Services Audio, LED, GPIO, LightSensor, Thermal Sensors, LCD Code by A. Tran / M. Smith Talk by M. Smith with slides from D. Lannigan."— Presentation transcript:

1 All of Lab. 4 using Services Audio, LED, GPIO, LightSensor, Thermal Sensors, LCD Code by A. Tran / M. Smith Talk by M. Smith with slides from D. Lannigan Analog Devices BOLD product

2 Complete Lab. 4 zThere is already enough information available to code the SPI (see last week of October Lectures) zHowever, we are going to compare the effort to get SPI going via services zEverything has to get changed to services 6/12/20142 / 28

3 6/12/20143 / 28

4 6/12/20144 / 28 All true, the third time you try using it However, thats what you do in an industrial environment

5 6/12/20145 / 28 All the non-hardware stuff from Lab. 1, 2 and 3 stays the same VDK All the hardware stuff from Lab. 1, 2 and 3 – better?

6 6/12/20146 / 28 ????? Also need to add the drivers

7 Step 1 – Look at main( ) 6/12/20147 / 28 Lots of concepts to understand

8 Look at Power Services Init 6/12/20148 / 28 We need to learn what new names to call registers Look up the required information in the Hardware Manual Place register names and values into a null terminate array Call a function (Power Equivalent of GPIO) that parses the array Essentially P0 = first thing, R0 = second thing, [P0] = R0; ssync;

9 No real difference from before – still need to know manual details AND more about services 6/12/20149 / 28

10 What needs to be done with SPI zWe need to set up LCD hardware to SPI interface – see previous lecture notes 6/12/ / 28

11 6/12/2014 SPI and LCD, Copyright M. Smith, ECE, University of Calgary, Canada 11 / 30 LCD Connection information z13 key connections

12 6/12/2014 SPI and LCD, Copyright M. Smith, ECE, University of Calgary, Canada 12 / 30 Data Bus Connections for LCD screen From CJ7 connector on Blackfin interface BQ0 BQ1 BQ2 BQ3 BQ4 BQ5 BQ6 BQ7

13 What needs to be done with SPI zWe need to set up LCD hardware to SPI interface – see previous lecture notes zThen we need to set up an array of commands and data to control LCD hardware – see previous lecture notes 6/12/ / 28

14 6/12/ / 28

15 What needs to be done with SPI zWe need to set up LCD hardware to SPI interface – see previous lecture notes zThen we need to set up an array of commands and data to control LCD hardware – see previous lecture notes zThen we need to set up the SPI services array with the required SPI settings – see previous lecture notes zThen we need to set up a DMA channel between the array and SPI registers – EH? zNow customize SPI service for LCD speed – EH? zWrite all code to translate array into LCD commands – EH? 6/12/ / 28

16 6/12/ / 28

17 SPI – DMA set up 6/12/ / 28 Already covered in October Lecture Notes OPEN DEVICE SET DEVICE MMR

18 6/12/ / 28

19 6/12/ / 28

20 6/12/ / 28

21 6/12/ / 28

22 6/12/ / 28

23 Describing a data buffer 6/12/ / 28

24 Code to init LCD 6/12/ / 28

25 Code for other commands Same as previous lectures, except function name 6/12/ / 28

26 Code to display temperature 6/12/ / 28

27 Code to cause Array DMA 6/12/ / 28

28 Proposed Lab. 4 – Demo-based zDemonstrate in class using services to do Labs. 1 and 2 z50% -- Connect LCD screen to logic lab and switches. Place commands in an array. Manually (using switches) send commands to LCD screen to show Happy 415 Christmas z30% -- Demonstrate Lab. 4 Temperature and Light sensor using – You will need to add a modified CalculateTemperature( ) from Lab. 3 and the PF9 service z20% -- Add a SPI SERVICE to transfer the commands from the Blackfin to the LCD 6/12/ / 28

29 Lab. 4 with SPI zYou can download the services code, change the array and then go with it. zDesign time – around a month across several years z60 hours of coding (LCD functionality) zAlberts time – 30 hours of straight coding (Services) – Albert had Texas Instruments services and drivers experience during 16 month internship zIt was easier the old way this time, but easier this way next time zLast year we had product tests, this year we dont. Debugging the services and drivers code – no idea 6/12/ / 28


Download ppt "All of Lab. 4 using Services Audio, LED, GPIO, LightSensor, Thermal Sensors, LCD Code by A. Tran / M. Smith Talk by M. Smith with slides from D. Lannigan."

Similar presentations


Ads by Google