Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 2.96 KB

File metadata and controls

36 lines (27 loc) · 2.96 KB

Chapter 4: Input, Output, and Timers

This is a companion repository for Making Embedded Systems, 2nd Ed. by Elecia White.

Following Along in the Book

Some example processor documents, obtained from their vendors:

Timer Calculations

Showing my math for the timer calculation section:

See also STM32 Delay Microsecond Millisecond Utility: a blog post about different ways to set up timer delays

Debouncing

A Guide to Debouncing by Jack Ganssle. Hackaday has code for multiple different implementations

Hex and Bits

For understanding and practicing hex and bitwise operations:

Code For This Chapter

  • PWM on Raspberry Pi Pico, example on Wokwi

  • More complex PWM on Raspberry Pi Pico example on Wokwi

  • FIXME: Button interface with debouncing

  • FIXME: Dependency injection example

Final Note

If you like what's here, please consider buying the book: Making Embedded Systems, 2nd Ed. by Elecia White