Nordic April 23, 2025

nRF52 as I2C Master using TWI/TWIM modules

The nRF52 series from Nordic Semiconductor offers robust support for I2C communication through its TWI (Two Wire Interface) and TWIM (TWI Master with EasyDMA) peripherals. In this post, we’ll break down the differences between TWI and TWIM, and show you how to use the nrf_drv_twi driver from the nRF5 SDK to set up the nRF52 as an I2C master. From initializing the bus to sending and receiving data, you’ll learn the essential steps needed to get your devices talking. We'll also walk through a hands-on example project to bring theory into practice — perfect for beginners and experienced developers alike.

Read More
Nordic April 23, 2025

nRF52 Pulse Width Modulation

If you're working with Nordic's nRF52 series and need precise control over LEDs, motors, or other peripherals, Pulse Width Modulation (PWM) is a key technique you'll want to master. In this post, we explore the powerful PWM peripheral built into the nRF52 microcontroller family. We'll walk through how to leverage the nrf_drv_pwm driver from the nRF5 SDK to generate high-resolution PWM signals, customize duty cycles, and build smooth, hardware-controlled waveforms — all with minimal CPU overhead. Whether you're dimming an LED or driving a servo motor, this guide will give you the tools to get started fast and clean.

Read More