Intro to Bare Metal Programming - Episode 13: SPI | Videos
Intro to Bare Metal Programming - Episode 13: SPI
Intro to Bare Metal Playlist: https://www.youtube.com/playlist?list=PLtQdQmNK_0DQ8KGcZ1BOPv-3RDPvtqJ1H
In this AVR-DD bare metal video, we will create an SPI driver for both host and client devices. This is the last bare metal driver before we start building our final project, using all of the drivers we have written.
Relevant Links:
Overview of SPI: https://mchp.us/3vJFr3F
Tech Brief TB3215 - Getting Started with SPI: https://mchp.us/3TLEm3g
SPI Peripheral Page: https://mchp.us/4aBo4Rw
AVR-DD Family Page: https://mchp.us/3POFZfz
Timestamps:
00:00 - In the previous video
00:39 - In this video
01:16 - What is SPI?
01:57 - Create new project for SPI and import previously created libraries
02:15 - Set up main clock and USART
03:01 - Test Main Clock and USART
03:25 - TB3215 - Sending Data as Host Device
03:43 - Configure location of SPI pins
04:40 - Create SPI Host Driver Initialization function
05:08 - How to initialize the peripheral
06:06 - Configure direction of pins
06:50 - SPI Buffer Mode
08:20 - Write functions to select and deselect client devices
09:20 - Write functions to write, read and exchange a byte
14:02 - Write main function to test SPI Host driver
15:20 - Using Loopback to test Host driver
15:46 - SPI Client Driver - Create project and import libraries
16:31 - SPI Client Initialization function
17:04 - ISR (Interrupt Service Routine) for SPI Client
19:16 - Write main function to test SPI Client driver
19:35 - Modify SPI Host driver to work with SPI Client driver
20:21 - Connect SPI bus
20:46 - Test both Host and Client drivers together
21:25 - In the next videos
To view this video, please click manage cookies below and accept functional cookies.
{"SalesForceSecurePath":"https://microchip.my.salesforce-scrt.com","EmbeddedServiceName":"Messaging_For_Microchip","SalesForcePath":"https://microchip.my.site.com/ESWMessagingForMicrochi1755319480924","AgentAvailableHeader":"No problem. Chat with our engineering experts or schedule a call that's convenient for you.","ScheduleCallUrl":"https://microchip.my.site.com/schedulemeetingportal/s/","SalesforceOrgId":"00Do0000000KAkK","JsUrl":"https://microchip.my.site.com/ESWMessagingForMicrochi1755319480924/assets/js/bootstrap.min.js"}