filmov
tv
How I program GPIOs in C | Embedded System Project Series #12

Показать описание
I program the I/O-pins on my robot (and development board) according to the pin assignment in my schematic. Writing to registers is cumbersome, so to make things easier, I implement a code abstraction in C that lets me configure and initialize all pins in a single place.
The git repository:
0:00 Recap
0:44 Introduction
1:57 Why start here?
3:18 Setup
4:00 Pin Mapping
5:40 How are IO pins configured?
7:25 Memory-mapped registers
8:56 Blinky example
9:42 Defining the interface (io.h)
10:15 Select register
11:32 Direction register
11:59 Resistor register (pullup/pulldown)
13:22 Input register
13:57 First commit
14:39 How to implement?
15:39 Bitwise operation (code trick!)
17:29 Array indexing (code trick!)
18:52 Implementation (io.c)
19:53 Testing the code
22:38 Second commit
22:55 Initialize all pins
28:27 Third commit
28:44 Last words
#embeddedsystems #gpio #cprogramming
⌨️ My development environment
🌍 Links
👨💻 About me
Hi and welcome. I'm Niklas, an embedded systems engineer from Sweden. On this channel, I make practical videos about embedded systems or, in general terms, about building and programming hardware.
The git repository:
0:00 Recap
0:44 Introduction
1:57 Why start here?
3:18 Setup
4:00 Pin Mapping
5:40 How are IO pins configured?
7:25 Memory-mapped registers
8:56 Blinky example
9:42 Defining the interface (io.h)
10:15 Select register
11:32 Direction register
11:59 Resistor register (pullup/pulldown)
13:22 Input register
13:57 First commit
14:39 How to implement?
15:39 Bitwise operation (code trick!)
17:29 Array indexing (code trick!)
18:52 Implementation (io.c)
19:53 Testing the code
22:38 Second commit
22:55 Initialize all pins
28:27 Third commit
28:44 Last words
#embeddedsystems #gpio #cprogramming
⌨️ My development environment
🌍 Links
👨💻 About me
Hi and welcome. I'm Niklas, an embedded systems engineer from Sweden. On this channel, I make practical videos about embedded systems or, in general terms, about building and programming hardware.
How I program GPIOs in C | Embedded System Project Series #12
GPIO : Programming Structure of a GPIO
Raspberry Pi GPIO Tutorial: The Basics Explained
Tutorial: Control GPIOs in Linux with a C application
How GPIO works | General Purpose Input Output | GPIO Behind The Scene
GPIO for any PC or Laptop: Adafruit FT232H
Raspberry Pi GPIO - Getting Started with gpiozero
Windows On Devices: GPIO in One Minute
GPIO Working Explained Inside a Microcontroller
Raspberry Pi GPIO Programming with Python - Part 1: Introduction & Controlling LEDs
HOW TO control the GPIO Pins
Can a Raspberry Pi be used as an Arduino? || RPi GPIO Programming Guide 101
Lesson E --- programming general purpose input/output (GPIO) using C
Raspberry Pi Unit 7: Programming the GPIO
STM32 GPIO Programming #2 - Alternate Function
STM32 Programming for Beginners | Introduction to GPIO Pins
Bare metal GPIO driver for ESP32 | Toggling an LED
ChatGPT creates Flipper Zero apps: BadUSB, Sub-GHz, GPIO and more! #chatgpt #flipperzero #hacker
Raspberry Qt QML and GPIO - Inputs Outputs and PWM with WiringPi
Tutorial: Arduino GPIO | How to use Arduino Pins
Raspberry Pi Kernel Development | Writing a Raspberry Pi ARM GPIO Driver in C | Embedded Concepts
Raspberry Pi GPIO control without libraries (Using the filesystem/BASH)
💡Microcontroller GPIO from scratch🚀
'Unlocking Endless Possibilities: Exploring Microcontrollers and GPIO Pins!'
Комментарии