Pulse-width modulation , PWM 脈波寬度調變常見於亮度調整與機械控制,其原理是利用數位方式模擬類比訊號。本文章將介紹 STM32 的 PWM 產生機制並以 STM32CubeIDE 開發環境搭配 Hardware…
位元運算是操作微處理器的基石,本篇文章會介紹如何操作位元運算來控制IO狀態。
Rotary Encoder 旋轉編碼器,是一種將機械位移轉換成類比或數位訊號的裝置。利用此特性可以用來偵測速度與位移量。本文章將介紹增量式旋轉編碼器 KY-040 模組並透過 Arduino…
Analog to Digital Convsersion, ADC 用以測量感測器電壓,例如溫度、溼度等。ADC 量測資料可透過 Direct Memory Access, DMA 傳輸減少 CPU…
意法半導體基於 ARM 核心的 STM32 是目前市面上相當受歡迎的微處理器系列,其種類繁多與應用廣泛並且有完整的生態系,在微處理器領域獨領風騷。本文章將介紹一款入門等級的 STM32…
Watch Dog Timer, WDT 看門狗計時器是位於微處理器中一組獨立電路,用來監看晶片的運作決定是否重啟微處理器。本篇文章將會介紹 Atmega328P-PU 內的看門狗系統了解其原理與操作方式。
Timer 計時器是微處理器重要的功能之一,延遲、時間計數是常運用在專案中。本文章介紹STM32F103C8T6 內含的 Timer 種類並搭配 Hardware Abstraction Layer, HAL 函式庫做基礎的計時功能演示。