SlideShare a Scribd company logo
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

Arduino and Circuits.docx
Arduino and Circuits.docxArduino and Circuits.docx
Arduino and Circuits.docx
Ajay578679
 
Rdl esp32 development board trainer kit
Rdl esp32 development board trainer kitRdl esp32 development board trainer kit
Rdl esp32 development board trainer kit
Research 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 Logic
Robocraze
 
Fundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.pptFundamentals of programming Arduino-Wk2.ppt
Fundamentals of programming Arduino-Wk2.ppt
ansariparveen06
 
Arduino wk2
Arduino wk2Arduino wk2
Arduino wk2
Meriem Jaoued
 
Arduino: Arduino starter kit
Arduino: Arduino starter kitArduino: Arduino starter kit
Arduino: Arduino starter kit
SANTIAGO PABLO ALBERTO
 
ANALYSIS & DESIGN OF COMBINATIONAL LOGIC
ANALYSIS & DESIGN OF COMBINATIONAL LOGICANALYSIS & DESIGN OF COMBINATIONAL LOGIC
ANALYSIS & DESIGN OF COMBINATIONAL LOGIC
Supanna Shirguppe
 
Weather monitoring System Using STM32
Weather monitoring System Using STM32Weather monitoring System Using STM32
Weather monitoring System Using STM32
Hitesh 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 R3
Abhishekvb
 
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 Foundations
John Breslin
 
Arduino
ArduinoArduino
Arduino
Jerin John
 
arduino-esp32-projects.pdf
arduino-esp32-projects.pdfarduino-esp32-projects.pdf
arduino-esp32-projects.pdf
Daniel Donatelli
 
Ardui no
Ardui no Ardui no
Ardui no
Amol Sakhalkar
 
arduinoworkshop-160204051621.pdf
arduinoworkshop-160204051621.pdfarduinoworkshop-160204051621.pdf
arduinoworkshop-160204051621.pdf
AbdErrezakChahoub
 
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 lcd
mukhammadimam
 
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
MR 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.
 

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

Arduino and Circuits.docx
Arduino and Circuits.docxArduino and Circuits.docx
Arduino and Circuits.docx
 
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
 
Ardui no
Ardui no Ardui no
Ardui no
 
arduinoworkshop-160204051621.pdf
arduinoworkshop-160204051621.pdfarduinoworkshop-160204051621.pdf
arduinoworkshop-160204051621.pdf
 
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)
 

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.pdf
ableelectronics
 
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
ableelectronics
 
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
ableelectronics
 
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
ableelectronics
 
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
ableelectronics
 
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
ableelectronics
 
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
ableelectronics
 
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
ableelectronics
 
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
ableelectronics
 
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
ableelectronics
 
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
ableelectronics
 
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
ableelectronics
 
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
ableelectronics
 
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
ableelectronics
 
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
ableelectronics
 
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
ableelectronics
 
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
ableelectronics
 
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
ableelectronics
 
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
ableelectronics
 
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
ableelectronics
 

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

Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 

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