How To Write A Driver (Audio CODEC & I2C) - Phils Lab #142 @PhilsLab
How To Write A Driver (Audio CODEC & I2C) - Phils Lab #142  @PhilsLab
Uploaded August 2024 | Updated November 2026, 3 hours ago
Audio CODEC basics and configuration via I2C in C using an STM32 microcontroller. PCBs by PCBWay pcbway.com (AD: This video includes a paid promotion for PCBWay.)

[SUPPORT]
Hardware design courses: https://phils-lab-shop.fedevel.education
Course content: phils-lab.net/courses
Patreon: patreon.com/phils94

[GIT]
github.com/pms67

[SOCIAL]
instagram.com/philslabyt

[LINKS]
STM32 + I2S Video: youtube.com/watch?v=zlGSxZGwj-E
CS4270 Datasheet: statics.cirrus.com/pubs/proDatasheet/CS4270_DS686F2.pdf
Linux CS4270 Driver: github.com/torvalds/linux/blob/master/sound/soc/codecs/cs4270.c
DSP Playlist: youtube.com/watch?v=MrbffdimDts&list=PLXSyc11qLa1ZCn0JCnaaXOWN6Z46rK9jd

[TIMESTAMPS]
00:00 Intro & Hardware Overview

02:46 PCBWay (Ad)

03:17 I2S Signals
05:47 Master/Slave Mode
06:34 Clock Ratios
06:55 CODEC Config Basics
08:56 Hardware Connections
09:24 Typical Config Steps

11:53 Datasheet Walkthrough

16:34 MCU I2S/I2C Config

17:23 Driver Header
19:07 Driver Source (Reset, Register Read/Write)
19:59 Driver Source (Power Settings, Device ID)
24:02 Driver Source (CODEC Config)

29:21 Outro
How To Write A Driver (Audio CODEC & I2C) - Phils Lab #142ESP32 + PCB Antenna Hardware Design Tutorial - Phils Lab #90PID Controller Implementation in Software - Phils Lab #6PCB Design Rules 101 - Phils Lab #170(Sponsored) STM32 I2S ADC DMA & Double Buffering - DSP with STM32 #4 - Phils Lab #55
Phil’s Lab |

How To Write A Driver (Audio CODEC & I2C) - Phil's Lab #142

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER