SlideShare a Scribd company logo
1 of 1
Download to read offline
Computer Programming and MCUs:
- Assembly Language
- STM32CubeIDE
- STM32F3DISCOVERY Board MCU
Objectives:
1. Create a function that can chase an LED around the LED circle. This means that only one LED
should be on, and the currently on LED will move either clockwise, or anti-clockwise around the
circle of LEDs. Provide a value to the function in R1 which selects whether the LED goes
clockwise or anti-clockwise. Provide a value to the function in R2 which selects how many LEDs
should be on at the same time (1 LED chasing, 2 LEDs chasing, etc).
2. Make a map between an ASCII character and a pattern of LEDs being on/off. Demonstrate this
with a function that uses an ASCII value stored in R1 to turn the LEDs on/off to show the pattern.
3. Use the discovery board user input button to step through the characters in an ASCII string and
show the LED patterns one at a time.
General Assumptions/hints:
- User Button located in GPIO port A (base address: 0x48000000)
- LEDs located in GPIO port E (base address: 0x48001000)
- LED circle located in GPIO port E, bits 8-15
- Use STM32F3-Reference-Manual-Large.pdf for register addresses/offsets
Basic steps:
1. Enable the clock for each I/O port we want to use
2. Setup GPIO Registers (Button = input, LEDs = output)
3. Read from input or write from output
STM32F3DISCOVERY Board MCU:
STM32CubeIDE:
P. Project Explorer x Thern arn no projects in ynur workspaca. To add a project: Create a mew
Makefile project in a directory centaining revisting cade Create a new C or Ct+ prodect Crate a
Naw STM37 prolact Craata a Naw StM37 Proinct fram an Fristing Create a project... timpert
projects... D itams selected

More Related Content

Similar to Computer Programming and MCUs Assembly Language STM32Cu.pdf

Rdl esp32 development board trainer kit
Rdl esp32 development board trainer kitRdl esp32 development board trainer kit
Rdl esp32 development board trainer kitResearch Design Lab
 
Industrial Applications of Arduino using Ladder Logic
Industrial Applications of Arduino using Ladder LogicIndustrial Applications of Arduino using Ladder Logic
Industrial Applications of Arduino using Ladder LogicRobocraze
 
Fundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.pptFundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.pptansariparveen06
 
ANALYSIS & DESIGN OF COMBINATIONAL LOGIC
ANALYSIS & DESIGN OF COMBINATIONAL LOGICANALYSIS & DESIGN OF COMBINATIONAL LOGIC
ANALYSIS & DESIGN OF COMBINATIONAL LOGICSupanna Shirguppe
 
Weather monitoring System Using STM32
Weather monitoring System Using STM32Weather monitoring System Using STM32
Weather monitoring System Using STM32Hitesh Kumar Nath
 
A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3Abhishekvb
 
Contactless digital tachometer using microcontroller
Contactless digital tachometer using microcontroller Contactless digital tachometer using microcontroller
Contactless digital tachometer using microcontroller IJECEIAES
 
Arduino Foundations
Arduino FoundationsArduino Foundations
Arduino FoundationsJohn Breslin
 
arduino-esp32-projects.pdf
arduino-esp32-projects.pdfarduino-esp32-projects.pdf
arduino-esp32-projects.pdfDaniel Donatelli
 
arduinoworkshop-160204051621.pdf
arduinoworkshop-160204051621.pdfarduinoworkshop-160204051621.pdf
arduinoworkshop-160204051621.pdfAbdErrezakChahoub
 
Boimetric using 8051
Boimetric  using 8051 Boimetric  using 8051
Boimetric using 8051 Shilpa Nayak
 
Monitoring temperature ruangan dengan display lcd
Monitoring temperature ruangan dengan display lcdMonitoring temperature ruangan dengan display lcd
Monitoring temperature ruangan dengan display lcdmukhammadimam
 
Monitoring Temperature Room With Display LCD and Data Recording
Monitoring Temperature Room With Display LCD and Data RecordingMonitoring Temperature Room With Display LCD and Data Recording
Monitoring Temperature Room With Display LCD and Data RecordingMR Selamet
 
Physical prototyping lab1-input_output (2)
Physical prototyping lab1-input_output (2)Physical prototyping lab1-input_output (2)
Physical prototyping lab1-input_output (2)Tony Olsson.
 
Embedded system design using arduino
Embedded system design using arduinoEmbedded system design using arduino
Embedded system design using arduinoSantosh Verma
 

Similar to Computer Programming and MCUs Assembly Language STM32Cu.pdf (20)

Rdl esp32 development board trainer kit
Rdl esp32 development board trainer kitRdl esp32 development board trainer kit
Rdl esp32 development board trainer kit
 
Industrial Applications of Arduino using Ladder Logic
Industrial Applications of Arduino using Ladder LogicIndustrial Applications of Arduino using Ladder Logic
Industrial Applications of Arduino using Ladder Logic
 
Fundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.pptFundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.ppt
 
Arduino wk2
Arduino wk2Arduino wk2
Arduino wk2
 
Arduino: Arduino starter kit
Arduino: Arduino starter kitArduino: Arduino starter kit
Arduino: Arduino starter kit
 
ANALYSIS & DESIGN OF COMBINATIONAL LOGIC
ANALYSIS & DESIGN OF COMBINATIONAL LOGICANALYSIS & DESIGN OF COMBINATIONAL LOGIC
ANALYSIS & DESIGN OF COMBINATIONAL LOGIC
 
Weather monitoring System Using STM32
Weather monitoring System Using STM32Weather monitoring System Using STM32
Weather monitoring System Using STM32
 
A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
 
Contactless digital tachometer using microcontroller
Contactless digital tachometer using microcontroller Contactless digital tachometer using microcontroller
Contactless digital tachometer using microcontroller
 
Arduino Foundations
Arduino FoundationsArduino Foundations
Arduino Foundations
 
Arduino
ArduinoArduino
Arduino
 
arduino-esp32-projects.pdf
arduino-esp32-projects.pdfarduino-esp32-projects.pdf
arduino-esp32-projects.pdf
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
arduinoworkshop-160204051621.pdf
arduinoworkshop-160204051621.pdfarduinoworkshop-160204051621.pdf
arduinoworkshop-160204051621.pdf
 
Ardui no
Ardui no Ardui no
Ardui no
 
Boimetric using 8051
Boimetric  using 8051 Boimetric  using 8051
Boimetric using 8051
 
Monitoring temperature ruangan dengan display lcd
Monitoring temperature ruangan dengan display lcdMonitoring temperature ruangan dengan display lcd
Monitoring temperature ruangan dengan display lcd
 
Monitoring Temperature Room With Display LCD and Data Recording
Monitoring Temperature Room With Display LCD and Data RecordingMonitoring Temperature Room With Display LCD and Data Recording
Monitoring Temperature Room With Display LCD and Data Recording
 
Physical prototyping lab1-input_output (2)
Physical prototyping lab1-input_output (2)Physical prototyping lab1-input_output (2)
Physical prototyping lab1-input_output (2)
 
Embedded system design using arduino
Embedded system design using arduinoEmbedded system design using arduino
Embedded system design using arduino
 

More from ableelectronics

Background InfoDichotomous keys can be used to help identify.pdf
Background InfoDichotomous keys can be used to help identify.pdfBackground InfoDichotomous keys can be used to help identify.pdf
Background InfoDichotomous keys can be used to help identify.pdfableelectronics
 
At the beginning of the video Lead like the great conductors.pdf
At the beginning of the video Lead like the great conductors.pdfAt the beginning of the video Lead like the great conductors.pdf
At the beginning of the video Lead like the great conductors.pdfableelectronics
 
7 TF The longer the password the tougher it is to crack.pdf
7  TF The longer the password the tougher it is to crack.pdf7  TF The longer the password the tougher it is to crack.pdf
7 TF The longer the password the tougher it is to crack.pdfableelectronics
 
A researcher for the EPA measured the amount of arsenic in t.pdf
A researcher for the EPA measured the amount of arsenic in t.pdfA researcher for the EPA measured the amount of arsenic in t.pdf
A researcher for the EPA measured the amount of arsenic in t.pdfableelectronics
 
Earthquake Epicenter Locations and Depths The letters on th.pdf
Earthquake Epicenter Locations and Depths The letters on th.pdfEarthquake Epicenter Locations and Depths The letters on th.pdf
Earthquake Epicenter Locations and Depths The letters on th.pdfableelectronics
 
6 Consider a random sample X1Xn of size n from a Gamma.pdf
6 Consider a random sample X1Xn of size n from a Gamma.pdf6 Consider a random sample X1Xn of size n from a Gamma.pdf
6 Consider a random sample X1Xn of size n from a Gamma.pdfableelectronics
 
11 Jacobs Co sat grevlileri ve yneticileri tarafndan i .pdf
11 Jacobs Co sat grevlileri ve yneticileri tarafndan i .pdf11 Jacobs Co sat grevlileri ve yneticileri tarafndan i .pdf
11 Jacobs Co sat grevlileri ve yneticileri tarafndan i .pdfableelectronics
 
Chief Complaint 23yearold man with immunce deficiency His.pdf
Chief Complaint 23yearold man with immunce deficiency His.pdfChief Complaint 23yearold man with immunce deficiency His.pdf
Chief Complaint 23yearold man with immunce deficiency His.pdfableelectronics
 
Why did we choose to process BMP image files rather than ot.pdf
Why did we choose to process BMP image files rather than ot.pdfWhy did we choose to process BMP image files rather than ot.pdf
Why did we choose to process BMP image files rather than ot.pdfableelectronics
 
Using the data in the table what is Walmarts NYSE WMT b.pdf
Using the data in the table what is Walmarts NYSE WMT b.pdfUsing the data in the table what is Walmarts NYSE WMT b.pdf
Using the data in the table what is Walmarts NYSE WMT b.pdfableelectronics
 
void f int x The above code is a c++ function In ter.pdf
void f  int x  The above code is a c++ function In ter.pdfvoid f  int x  The above code is a c++ function In ter.pdf
void f int x The above code is a c++ function In ter.pdfableelectronics
 
This project is broken up into Windows and Mac versions lis.pdf
This project is broken up into Windows and Mac versions lis.pdfThis project is broken up into Windows and Mac versions lis.pdf
This project is broken up into Windows and Mac versions lis.pdfableelectronics
 
The as of Ct+11 allows what benefit It can be shared by .pdf
The as of Ct+11  allows what benefit It can be shared by .pdfThe as of Ct+11  allows what benefit It can be shared by .pdf
The as of Ct+11 allows what benefit It can be shared by .pdfableelectronics
 
Tartma stemi Yantlamak iin aadaki sorulardan birini sein.pdf
Tartma stemi  Yantlamak iin aadaki sorulardan birini sein.pdfTartma stemi  Yantlamak iin aadaki sorulardan birini sein.pdf
Tartma stemi Yantlamak iin aadaki sorulardan birini sein.pdfableelectronics
 
Supportive leadership is the same as which of the following .pdf
Supportive leadership is the same as which of the following .pdfSupportive leadership is the same as which of the following .pdf
Supportive leadership is the same as which of the following .pdfableelectronics
 
System Analysis Assignment 4 Due date See LEARN Max Marks.pdf
System Analysis Assignment 4 Due date See LEARN Max Marks.pdfSystem Analysis Assignment 4 Due date See LEARN Max Marks.pdf
System Analysis Assignment 4 Due date See LEARN Max Marks.pdfableelectronics
 
Sarah tiene 30 aos y es madre de dos nios pequeos de 3 y.pdf
Sarah tiene 30 aos y es madre de dos nios pequeos de 3 y.pdfSarah tiene 30 aos y es madre de dos nios pequeos de 3 y.pdf
Sarah tiene 30 aos y es madre de dos nios pequeos de 3 y.pdfableelectronics
 
Real GDP per capita in the country of Arcadia grew from abou.pdf
Real GDP per capita in the country of Arcadia grew from abou.pdfReal GDP per capita in the country of Arcadia grew from abou.pdf
Real GDP per capita in the country of Arcadia grew from abou.pdfableelectronics
 
Rex y Felix son los nicos accionistas de Dogs and Cats Corp.pdf
Rex y Felix son los nicos accionistas de Dogs and Cats Corp.pdfRex y Felix son los nicos accionistas de Dogs and Cats Corp.pdf
Rex y Felix son los nicos accionistas de Dogs and Cats Corp.pdfableelectronics
 
please use only these Part 1 Organize the code 85 Fo.pdf
please use only these   Part 1 Organize the code 85  Fo.pdfplease use only these   Part 1 Organize the code 85  Fo.pdf
please use only these Part 1 Organize the code 85 Fo.pdfableelectronics
 

More from ableelectronics (20)

Background InfoDichotomous keys can be used to help identify.pdf
Background InfoDichotomous keys can be used to help identify.pdfBackground InfoDichotomous keys can be used to help identify.pdf
Background InfoDichotomous keys can be used to help identify.pdf
 
At the beginning of the video Lead like the great conductors.pdf
At the beginning of the video Lead like the great conductors.pdfAt the beginning of the video Lead like the great conductors.pdf
At the beginning of the video Lead like the great conductors.pdf
 
7 TF The longer the password the tougher it is to crack.pdf
7  TF The longer the password the tougher it is to crack.pdf7  TF The longer the password the tougher it is to crack.pdf
7 TF The longer the password the tougher it is to crack.pdf
 
A researcher for the EPA measured the amount of arsenic in t.pdf
A researcher for the EPA measured the amount of arsenic in t.pdfA researcher for the EPA measured the amount of arsenic in t.pdf
A researcher for the EPA measured the amount of arsenic in t.pdf
 
Earthquake Epicenter Locations and Depths The letters on th.pdf
Earthquake Epicenter Locations and Depths The letters on th.pdfEarthquake Epicenter Locations and Depths The letters on th.pdf
Earthquake Epicenter Locations and Depths The letters on th.pdf
 
6 Consider a random sample X1Xn of size n from a Gamma.pdf
6 Consider a random sample X1Xn of size n from a Gamma.pdf6 Consider a random sample X1Xn of size n from a Gamma.pdf
6 Consider a random sample X1Xn of size n from a Gamma.pdf
 
11 Jacobs Co sat grevlileri ve yneticileri tarafndan i .pdf
11 Jacobs Co sat grevlileri ve yneticileri tarafndan i .pdf11 Jacobs Co sat grevlileri ve yneticileri tarafndan i .pdf
11 Jacobs Co sat grevlileri ve yneticileri tarafndan i .pdf
 
Chief Complaint 23yearold man with immunce deficiency His.pdf
Chief Complaint 23yearold man with immunce deficiency His.pdfChief Complaint 23yearold man with immunce deficiency His.pdf
Chief Complaint 23yearold man with immunce deficiency His.pdf
 
Why did we choose to process BMP image files rather than ot.pdf
Why did we choose to process BMP image files rather than ot.pdfWhy did we choose to process BMP image files rather than ot.pdf
Why did we choose to process BMP image files rather than ot.pdf
 
Using the data in the table what is Walmarts NYSE WMT b.pdf
Using the data in the table what is Walmarts NYSE WMT b.pdfUsing the data in the table what is Walmarts NYSE WMT b.pdf
Using the data in the table what is Walmarts NYSE WMT b.pdf
 
void f int x The above code is a c++ function In ter.pdf
void f  int x  The above code is a c++ function In ter.pdfvoid f  int x  The above code is a c++ function In ter.pdf
void f int x The above code is a c++ function In ter.pdf
 
This project is broken up into Windows and Mac versions lis.pdf
This project is broken up into Windows and Mac versions lis.pdfThis project is broken up into Windows and Mac versions lis.pdf
This project is broken up into Windows and Mac versions lis.pdf
 
The as of Ct+11 allows what benefit It can be shared by .pdf
The as of Ct+11  allows what benefit It can be shared by .pdfThe as of Ct+11  allows what benefit It can be shared by .pdf
The as of Ct+11 allows what benefit It can be shared by .pdf
 
Tartma stemi Yantlamak iin aadaki sorulardan birini sein.pdf
Tartma stemi  Yantlamak iin aadaki sorulardan birini sein.pdfTartma stemi  Yantlamak iin aadaki sorulardan birini sein.pdf
Tartma stemi Yantlamak iin aadaki sorulardan birini sein.pdf
 
Supportive leadership is the same as which of the following .pdf
Supportive leadership is the same as which of the following .pdfSupportive leadership is the same as which of the following .pdf
Supportive leadership is the same as which of the following .pdf
 
System Analysis Assignment 4 Due date See LEARN Max Marks.pdf
System Analysis Assignment 4 Due date See LEARN Max Marks.pdfSystem Analysis Assignment 4 Due date See LEARN Max Marks.pdf
System Analysis Assignment 4 Due date See LEARN Max Marks.pdf
 
Sarah tiene 30 aos y es madre de dos nios pequeos de 3 y.pdf
Sarah tiene 30 aos y es madre de dos nios pequeos de 3 y.pdfSarah tiene 30 aos y es madre de dos nios pequeos de 3 y.pdf
Sarah tiene 30 aos y es madre de dos nios pequeos de 3 y.pdf
 
Real GDP per capita in the country of Arcadia grew from abou.pdf
Real GDP per capita in the country of Arcadia grew from abou.pdfReal GDP per capita in the country of Arcadia grew from abou.pdf
Real GDP per capita in the country of Arcadia grew from abou.pdf
 
Rex y Felix son los nicos accionistas de Dogs and Cats Corp.pdf
Rex y Felix son los nicos accionistas de Dogs and Cats Corp.pdfRex y Felix son los nicos accionistas de Dogs and Cats Corp.pdf
Rex y Felix son los nicos accionistas de Dogs and Cats Corp.pdf
 
please use only these Part 1 Organize the code 85 Fo.pdf
please use only these   Part 1 Organize the code 85  Fo.pdfplease use only these   Part 1 Organize the code 85  Fo.pdf
please use only these Part 1 Organize the code 85 Fo.pdf
 

Recently uploaded

Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxAdelaideRefugio
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17Celine George
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital ManagementMBA Assignment Experts
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppCeline George
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMELOISARIVERA8
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfcupulin
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....Ritu480198
 
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdfRich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdfJerry Chew
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code ExamplesPeter Brusilovsky
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxMarlene Maheu
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...Nguyen Thanh Tu Collection
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024Borja Sotomayor
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...Nguyen Thanh Tu Collection
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project researchCaitlinCummins3
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportDenish Jangid
 

Recently uploaded (20)

VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdfRich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
 

Computer Programming and MCUs Assembly Language STM32Cu.pdf

  • 1. Computer Programming and MCUs: - Assembly Language - STM32CubeIDE - STM32F3DISCOVERY Board MCU Objectives: 1. Create a function that can chase an LED around the LED circle. This means that only one LED should be on, and the currently on LED will move either clockwise, or anti-clockwise around the circle of LEDs. Provide a value to the function in R1 which selects whether the LED goes clockwise or anti-clockwise. Provide a value to the function in R2 which selects how many LEDs should be on at the same time (1 LED chasing, 2 LEDs chasing, etc). 2. Make a map between an ASCII character and a pattern of LEDs being on/off. Demonstrate this with a function that uses an ASCII value stored in R1 to turn the LEDs on/off to show the pattern. 3. Use the discovery board user input button to step through the characters in an ASCII string and show the LED patterns one at a time. General Assumptions/hints: - User Button located in GPIO port A (base address: 0x48000000) - LEDs located in GPIO port E (base address: 0x48001000) - LED circle located in GPIO port E, bits 8-15 - Use STM32F3-Reference-Manual-Large.pdf for register addresses/offsets Basic steps: 1. Enable the clock for each I/O port we want to use 2. Setup GPIO Registers (Button = input, LEDs = output) 3. Read from input or write from output STM32F3DISCOVERY Board MCU: STM32CubeIDE: P. Project Explorer x Thern arn no projects in ynur workspaca. To add a project: Create a mew Makefile project in a directory centaining revisting cade Create a new C or Ct+ prodect Crate a Naw STM37 prolact Craata a Naw StM37 Proinct fram an Fristing Create a project... timpert projects... D itams selected