Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [microcontroller]

A device which includes a central processing unit (CPU), memory, and (generally) an assortment of I/O peripherals (UART, ADC, DAC, general-purpose I/O, I2C, etc.) in a tightly-coupled standalone package.

585 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
2answers
214 views

How to write or generate test cases(or vectors) for automated production testing of embedded electronics?

My question is following: Assuming I have developed some embedded controller(board) which has some tens of digital inputs and outputs. It has embedded firmware, which performs some logical functions. ...
5
votes
1answer
433 views

GPS Power consumption MTK3339 vs SirfIII for periodic logging application

I am currently working on redesigning a SirfIII based battery operated GPS logger. A MTK3339 based GPS module has been selected due to overall (advertised) performance. The GPS logger uses a ...
4
votes
1answer
404 views

Interfacing TDC sensor (inductive pickup) to a microcontroller

I'm trying to do some diagnostics on a classic car (aircooled VW). In particular, I'd like to monitor a signal that flags the TDC (Top Dead Center) on every engine revolution. The signal is available ...
4
votes
1answer
4k views

How can I log information from code in IAR Embedded Workbench to a log file?

I'm trying to develop an application for the NXP LPC1788 microcontroller and I would like to be able to log formatted strings at arbitrary points within the source code to a log file in a way that has ...
3
votes
0answers
104 views

Running Application on SIM808 GNSS module beside it's internal firmware

I'm trying to load my written program to SIM808 and the module will be responsible for running my program and also its internal firmware. SIMCOM has a document about doing this in SIM800 module but ...
3
votes
1answer
359 views

MCU HIB pin only pulls Buck/Boost EN pin every-other Hibernation

MCU: TM4C1294NCPDT Buck/Boost Converter: TPS63051 Hib dedicated LDO: MIC5504-3.3YM5-TR I have a LiPo battery coming into the board, feeding both the TPS63051 and the MIC5504. Tiva's HIB pin is ...
3
votes
0answers
411 views

OLED display using dspic33f i2c

I am trying to use OLED display in a dspic33f microchip. I've successfully initialized and sent data using I2C to OLED. I managed to display a small font(8pt) on the OLED. However, when I tried a ...
3
votes
0answers
506 views

clocking MSP430 UART from DCO

I'm designing a simple remote-controlled sensor. It's going to be connected with others and a master device using RS485. All it's going to be doing is transmitting the status of a few digital lines ...
3
votes
1answer
555 views

Proper way of designing a battery backup system with 12V/5V dual output AC power supply?

I have a project (doorlock) with MCU / LCD / Keypad and solenoid (lock) connected together. MCU, LCD and Keypad runs at 5V while solenoid runs at 9V to 12V. I'm currently powering the system with an ...
2
votes
1answer
42 views

SAMD21 1μs timer handler taking longer than the timer period?

Before I begin I'd like to mention that I'm relatively new to working with microcontrollers at this low level, so please bear with me. I am trying to use an Adafruit Trinket M0 to process and ...
2
votes
1answer
107 views

Extending PCB switches and LEDs

I have a project where for the prototype, I'm using some off-the-shelf components, namely drone cameras and DVR boards installed in a car. The DVR board has a status LED and a momentary switch which ...
2
votes
0answers
64 views

STM32F103 timer behaves differently after hardware reset instead of st-flash reset

I'm learning to program the STM32F103C8 Cortex-M3 (on a BluePill board) and was playing around with the general purpose timers (TIM2 to TIM5) because I wanted to time some routines. In my simple ...
2
votes
0answers
68 views

AD7730 calibration failure

EDIT: The exact issue is this, the ADC has a gain register (set during internal FS calibration and again at System FS calibration) and an offset register set during system zero calibration. The ...
2
votes
2answers
127 views

Oscillator capacitors to VCC

I recently came across this circuit in which the oscillator capacitors are connected to VCC and not to GND. Researching I've read many comments stating that VCC and GND are at the same AC potential. ...
2
votes
1answer
41 views

Reading signal from 190v magnetic pickup

I am using a magnetic pickup to detect the phase and RPM of a rotating assembly. The magnetic pickup produces a pulse once per rotation when a ferrous interrupter passes the pickup. Dependent on the ...
2
votes
0answers
61 views

Address Sent bit is not set on STM32F4 Disco

I am trying to interface my STM32F4 Discovery board with a sensor that works over i2c, since the sensor required a specialized i2c protocol, I decided to implement my functions using registers. But ...
2
votes
0answers
96 views

Embedded design with USB 3.1

I am trying to design a system that will transfer data between two storage devices on a PCB, preferably using USB 3.1 as speed is a major concern in this design. However, my understanding is that I ...
2
votes
1answer
81 views

Why does writing to a read-only register increase current consumption?

Looking at the datasheet of the MSP430, it says writing to read-only registers results in increased current consumption. Why is that? What is happening when trying to write to a read-only section of ...
2
votes
1answer
520 views

Confused about the XIP (eXecute In Place) function of QSPI FLASH

There are lots of NOR QSPI FLASH chips that support XIP (eXecute In Place). In this mode the embedded cpu (or MCU) can directly execute the codes stored in the flash. But as we know, the qspi flash ...
2
votes
1answer
57 views

Preventing inadvertent feeding of an external watchdog

Most internal watchdog timers found on microcontrollers contain mechanisms to prevent an inadvertent feed, usually requiring the write of a specific key-value to the feed register, although some ...
2
votes
0answers
244 views

BDM (Background Debug Mode) with Arduino

I'm trying to talk to a 68HC(9)12D60 (Motorola/Freescale/NXP) via BDM protocol. This chip is a 112-pin TQFP. On the PCB, there is a 6-pin header (which is not the standard BDM 2*3 pins header). The 6 ...
2
votes
1answer
269 views

Programmable Electronic Load Design

I am trying to design a programmable electronic load for testing the PWM outputs of PLC controllers. The outputs operate between 5-36 V and 10-2000 Hz frequency. The output is supposed to tested for ...
2
votes
2answers
142 views

Timing a circuit's 'on-cycle' after a push button switch is pressed

First off, thank you for reading all of this - you are the part of the internet that gives me hope for mankind. I’m looking for a circuit that I would think is relatively straightforward, but has a ...
2
votes
0answers
137 views

Write to File in Computer running IAR Workbench

I am currently writing and testing an embedded system in which I need to collect data from an accelerometer over a period of time. I already have functions that can read the data at a point in time ...
2
votes
0answers
113 views

Can a PC motherboard be used as an uber microcontroller?

I'm aware of the differences between a common microcontroller and a full blown motherboard from a computer server. But consider what happens when the PC memory testing tool memtest86 is run:- Here ...
2
votes
2answers
921 views

STM32F0 ADC reads wrong values

I am using STM32F030F4P6 MCU for a project. This MCU has no Vref+ pin and using VDDA pin for A/D conversions, PLL etc. While prototyping the circuit that I am going to use on my project, I shorted ...
2
votes
0answers
59 views

Audio Sampling for Reactive Lighting

I'm trying to work on a reactive lighting project and I'm confused about a couple topics when it comes to sampling audio. I want to be able to have RGB reactive lighting controlled by a ...
2
votes
0answers
436 views

My First Circuit Diagram - How to improve it

I started taking more of an interest in micro-controllers and electronics last year, I started to design a circuit (which I hoped to have created as a custom PCB - Though I don't know how to go about ...
2
votes
0answers
133 views

DC motor speed control

I am trying to control the speed of motor using ADC value received using ATMega16, the system works well with 12V. But when I go for 24V the motor runs continuously, even when ADC value is 0. I have ...
2
votes
2answers
244 views

Momentary switch for power?

The only switches I have every worked with are basic switches with on/off state, but I want to be able to add a power button to my project that is just like the power button on a cell phone. (hold for ...
2
votes
0answers
137 views

How to create a Program Log in Readable format

Im looking for a way in which the program can log specific errors/conditions(user-defined) as and when such conditions occur, and while the code is running I can give command to read it and interpret ...
2
votes
1answer
177 views

How to reduce the effect of electric lighter noise on Micro controller?

I am using a kind of electric lighter in my circuit in order to turn the fire on. And also i have used some sensors that alert in danger by sending a signal to the MCU (ATmega 32) interrupt. The ...
2
votes
1answer
228 views

PIC16F1783 Inclinometer Project using Accelerometer 12-bit ADC issue

I am working on an inclinometer project using an accelerometer, MMA1220KEG and a PIC16F1783, it is designed to switch a relay when the angle of inclination is below 15 degrees and illuminates a series ...
2
votes
0answers
300 views

Microcontroller identification, 44-pin

I am desperately seeking the real type of this branded 44-pin microcontroller. Does anybody know this pinout? I already checked many thousands of 44-pinners on Digikey and Mouser. A 16MHz crystal is ...
2
votes
1answer
636 views

Interfacing SIM900A GSM Modem with TM4C123G TI microcontroller

I was hoping you guys could help me on connecting SIM900A GSM Modem with this TM4C123 micro controller. I connected the RS232 ports of TX, RX, GND and power ports to GND and +12V. should I connect ...
2
votes
0answers
107 views

PIC32MX350F256 Errata , IO open Drain Issue

In one of our Product we used Microchip micro controller “ PIC32MX350F256L”. Attached image is small part of circuit showing uC interfacing with a SPI device. We are using bit banging communication ...
2
votes
0answers
296 views

Strange behaviour using PWM on CortexM3

I have a board with the ATSAM3S2BA-AU, which is a Cortex M3 uC. I need to use 2 PWM channel , here how I've done it : ...
2
votes
0answers
476 views

Is there an online resource for finding microcontroller with specific requirements?

When looking at digikey with the advanced search chrome extension (Link) on I noticed that some features of the microcontrollers are not recorded (such as MIPI, PCIe, UBC, etc). Is there a website ...
2
votes
0answers
5k views

How to get an ENC28J60 to work?

For starters: Yes I know I'm about to reinvent the wheel with the following task ahead. I want to create my own library for the ENC28J60 for an AVR (ATMEGA1284P). So I've been browsing the net for ...
2
votes
0answers
718 views

AVR: Usage of Force Output Compare bits

Currently I'm dealing with Tiny2313 for my project. Timer runs in CTC (WGM12) mode so OCR1A is used to set TOP of the timer. I want to use OCR1B to generate output signal. In documentation is ...
2
votes
0answers
304 views

Float calculations hangs on Kinetis K20 (arm-m4-no-fpu) when PWM interrupt is on

I will use this ARM to control Induction Motor with three-phase inverter. When the program encounters any float operations, like simple plus operation, the system hangs but the pause of debug works ...
2
votes
0answers
3k views

Constructing Excess 3 BCD to 7 segment decoder - circuit hints needed

I am currently trying to construct a circut for an Excess 3 BCD to 7 Segment decoder. Therefore the input range ranges from 0011 to 1100 in binary inclusive with the rest of the inputs being don't ...
2
votes
0answers
804 views

LIS302DL Accelerometer WHO_AM_I command

I've setup the behaviour of LIS302DL accelerometer IC using following code: ...
2
votes
0answers
492 views

Data logger using ARM 9 (Friendly ARM Mini 2440 kit)

I have been working on this kit for the past month and have simulated some basic programs using Keil (non os using just C). I was assigned a project of making a data logger which stores the data in ...
2
votes
0answers
263 views

Are there any metastability issues with microcontroller SPI slave ports that can operate during sleep?

If one is using SPI to interface two microcontrollers that may spend much of their time sleeping, and if the SPI slave port is supposed to wake up its controller when data is received, that would ...
2
votes
0answers
116 views

Generate audio driver hi current from MCU & DAC

I am very very new to microcontroller use. I am looking for a way to generate 2 different VLF frequencies that alternate for set time periods that will be pushed into an audio amplifier device to ...
2
votes
1answer
122 views

UART stop bit baud timing error

On PIC micro controller UART, Baud rate was set to 38400 (No parity,, 8 data bits), ...
2
votes
1answer
257 views

How to connect four different ground planes in the same PCB?

I am working on a project which uses the LTC4020 multi-chemistry battery charger from Linear Technology. The design includes a microcontroller ( NXP KL25Z) to provide additional outputs and ...
2
votes
1answer
551 views

Shut down circuit sections

I am currently devising ways to shut off different circuit sections in an embedded circuit. Here is a breakdown of what I am doing and my initial idea. Currently I have a micro controller which is ...
2
votes
1answer
571 views

PIC32MX can't get 80 MHz Clock from Internal RC OSC

I am using PIC32MX795F512L with the internal RC oscillator. By changing the settings of the config, I can get to 60 MHz max. But I can't get to 80 MHz. When I change the config for 80&#...