I have an I2C multiplexer connected to my ESP8266 and attached five SH1106 OLED displays to it (bus 2 to 6). I tested everything with simple example c ...
I have an I2C multiplexer connected to my ESP8266 and attached five SH1106 OLED displays to it (bus 2 to 6). I tested everything with simple example c ...
I was trying baremetal programming for STM32L412T6 controller. I got stuck at RTC wakeup interrupt. My code is jumping to while(1) loop without going ...
Given a 24bit string included in three 8bit registers, say: array[0], array[1], array[2] where the first bit of array[0] is the MSB and the last bit o ...
I'm trying to understand how to implement audio playback from scratch on attiny85. The goal is to play a short sound (cat meows, so i want it to remai ...
I have STM32 which is gathering data from different sensors and reporting that data to Raspberry PI over Serial connection. On Raspberry PI is a servi ...
I have a simple function that performs mathematical stuff on some data. It works perfectly fine. However, if TIM2 interrupts are enabled, the function ...
I am trying to stimulate one of the AIO pins on a PIC18F458 using a SCL file via the MPLAB X V5.05 Stimulus window. Although, the file is successfull ...
This C code, Atmel Studio, is supposed to check pins 2 and 3 on PORTD which is connected to a 4 direction tilt sensor (Up, down, left, right) then lig ...
I'm writing a program where I need to control many output pins on my Atmega4809. How can I work with these without having to write duplicate code (usi ...
I'm wondering what could be the formula to calculate (TIMER0 in this case) timer so that the overflow happens ~1 time per millisecond. currently the ...
I need to add two 9 bit numbers using the instructions ADD and ADC. The numbers are stored in R21:R20 and R23:R22 (MSB: LSB) pairs of registers. The r ...
Why sleeping or blocking not allowed in interrupt handler. Assume i have following setup. Single core system. Developing a bare-metal applicati ...
Context: I am following a Embedded Systems course that uses the TM4C321GHP6M microcontroller. The IDE being used is the uvision ide by keil. The purpo ...
I am trying to implement a PI controller in C that outputs / controls a PWM's duty cycle on a microcontroller. The duty cycle that I can write to the ...
I have decided to program Atmega32A in Arduino to enjoy its numerous I/O pins. To achieve that, I specified the board definition in the boards.txt fil ...
I am using a PIC microcontroller, exactly the PIC24FJ128GL305 and I want to save important data in flash memory using MPLAB X IDE V6, one of the data ...
I'm trying to locate the .c files that are related to the #include header files in avr. I want to have a look at some of the standard libraries that ...
with the given example from here: What is the use of __IO & static keywords in C?, I am working on converting some C files that are using micro ...
I want to count milliseconds on my Pico to make nonblocking code in C++. Arduino has the millis() function, but after looking though all the example p ...
i'm using code composer studio and data signals(D0-7) are obtained from tms320f28335 i have incremented and decremented specific led on 7-segment usin ...