Skip to main content

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.

1,245 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
1 answer
1k 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 ...
kolibri's user avatar
  • 171
4 votes
1 answer
145 views

Security issue for landing doors and cabin doors in an elevator control board (PIC16F877)

I am working on a control board for an elevator as part of my final year project. I am currently working on the safety aspect for the landing doors and cabin doors, and I am using Proteus to simulate ...
Nader Noomen's user avatar
4 votes
0 answers
147 views

Can chips be sensitive to mechanical stress after an electrical incident?

Is it possible to electrically damage a microcontroller (or any chip) in such a way that it becomes very sensitive to mechanical stress? Some background: We are developing a board with 7 identical ...
Rocketmagnet's user avatar
  • 27.6k
4 votes
0 answers
53 views

Switching load with changing polarity

From a bespoke board I'm receiving 18vdc that I need to switch. This 18vdc will usually be +18vdc but at times can be -18vdc. The load is .35A. The polarity is being changed via a H-Bridge and ...
chip's user avatar
  • 143
4 votes
0 answers
701 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 ...
Allure's user avatar
  • 41
4 votes
0 answers
3k 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 ...
user3797758's user avatar
4 votes
0 answers
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 ...
Balázs Bagi's user avatar
4 votes
0 answers
520 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 ...
Srishti's user avatar
  • 41
4 votes
0 answers
535 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 ...
user25093's user avatar
  • 251
4 votes
1 answer
352 views

UART stop bit baud timing error

On PIC micro controller UART, Baud rate was set to 38400 (No parity,, 8 data bits), ...
Bharav's user avatar
  • 782
3 votes
0 answers
251 views

Regenerative braking on BLDC motor

I am trying to design regen Braking for BLDC motor controller I used three switch topologies for regenerative braking. In three switch method, high-side MOSFET S1, S3, and S5 are kept OFF and low-...
Surendran 's user avatar
3 votes
0 answers
81 views

DAC not recognized by I2C and creates strange side-effect

Let me preface by saying that I am new here, and I can't seem to solve this problem for the life of me. Problem: I am using the LTC2655BIGN-H16 DAC and attempting to interface with it via I2C with an ...
BlueOyster's user avatar
3 votes
0 answers
73 views

Minimum circuitry for robust operation of the "new" ATtinys (1614) with Optiboot

I have spent hours now trying to catch up on the replacements for the old ATtiny's, there does not seem to be a robust (meaning, with protections that we could find in an UNO or Mega for example) ...
user325962's user avatar
3 votes
0 answers
60 views

ESP8266 only responds to first AT command

While interfacing the ESP8266 module to PIC18F4550, I noticed that the ESP8266 only responds to the first AT command that is transmitted by the PIC MCU. It will not respond for the rest of the ...
Chris Aung's user avatar
3 votes
0 answers
932 views

How to timer-triggered multi-channel ADC conversion run in STMH7

I've managed to get the timer-triggered ADC to run for single-channel conversions where an interrupt routine is called upon completion of the conversion. However, I need three channels to be converted ...
Hansel's user avatar
  • 333
3 votes
0 answers
3k views

What Is the Best Way to Debug an AVR Microcontroller Using the Command Line?

My AVR programming method is usually as follows: compile the source code with avr-gcc: ...
Kalcifer's user avatar
  • 255
3 votes
0 answers
242 views

Bit Timing Issues With a Software UART

(EDIT a big portion of the original question has been somewhat answered so it is out of date. For a more up to date version of what I am looking for now, please skip to EDIT 2, and use the following ...
Kalcifer's user avatar
  • 255
3 votes
1 answer
2k views

Can I connect DTR Pin to CTS Pin?

I want to connect a Pixhawk 4 (It's a flight controller) to a Raspberry Pi 3. Therefor I purchased this FTDI USB adapter. Its pinout is the following: ...
Max's user avatar
  • 131
3 votes
0 answers
423 views

ISR won't modify a global variable (IAR)?

First, some background on what I'm working on. I have a custom board with ATmega324A that I designed as part of a project I'm working on. Originally, software for the uC was written for GCC in Atmel ...
0xd4v3's user avatar
  • 109
3 votes
0 answers
364 views

How can I setup a shared library between a bootloader and an application?

I am in the process of implementing over-the-air updates on a CC2652 microcontroller using the OpenThread stack. As far as I know a bootloader has to be able to operate independently from the ...
Vincent Kenbeek's user avatar
3 votes
1 answer
784 views

STM32 TIM2 PWM and TIM 5 basic mode simultaneous output issues

Using an stm32f411re I want to generate a PWM of 20% Duty Cycle with a period of 200uS and simultaneously I want a basic timer to be ticking in the background that sends an interrupt every 70uS (that ...
ChrisD91's user avatar
  • 707
3 votes
0 answers
772 views

Increasing system clock frequency on STM32F303 drops I2C clock proportionately - why?

I'm trying to figure out a weird little issue I've discovered while debugging another element of my code. I've got a STM32F303K8 reading and writing to an I2C peripheral. The I2C clock speed is ...
pileunderflow's user avatar
3 votes
0 answers
507 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 ...
Dogus Ural's user avatar
3 votes
1 answer
111 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 ...
ThreePhaseEel's user avatar
3 votes
3 answers
644 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 ...
Steve Butler's user avatar
3 votes
0 answers
249 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 ...
Paul Uszak's user avatar
  • 7,601
3 votes
0 answers
148 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 ...
Mahmoud Hosseinipour's user avatar
3 votes
0 answers
762 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 ...
RoadRunner's user avatar
3 votes
0 answers
333 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 ...
supercat's user avatar
  • 47.1k
3 votes
0 answers
122 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 ...
user18469's user avatar
3 votes
1 answer
882 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 ...
Xiagua's user avatar
  • 506
2 votes
2 answers
52 views

SCPI commands to instrument work from PC, not from microcontroller through UART-to-USB bridge

TLDR: Sending commands to a piece of lab equipment through USB works from a PC, but not from a microcontroller. Is this a driver issue? What else could cause this problem? I've been working on a ...
TualatinLab's user avatar
2 votes
0 answers
128 views

Powering a microcontroller with an Li-ion Battery --> How to choose a protection?

The introduction I'm currently working on a low power project that is using the ESP32-S3 microcontroller variant from Seeed Studio, the XIAO Series ESP32-S3 (Official wiki: https://wiki.seeedstudio....
Benjamin's user avatar
2 votes
0 answers
40 views

Flashing STM32h562ZI (on NUCLEO-H563ZI board) using μVision5

I am trying to make a project with NUCLEO-H563ZI in μVision5, starting simple with opening the embedded LED on the board. main.c: ...
George P.'s user avatar
  • 163
2 votes
0 answers
82 views

STM32f030 Inconsistent clock

I am trying to write my own microsecond delay function for an STM32f030R8t6 by using the counter function on Timer 3. The first time I power the microcontroller up after flashing the delay works ...
Eric14003's user avatar
2 votes
0 answers
70 views

Can anyone identify this IC marked AFGMG?

I am reverse engineering a PCB. It has an unknown IC marked AFGMG. IC details: Name on IC = AFGMG 8 pin IC size = 1.6x3 mm It looks like this phone cannot send a better picture. PCB: Schematic: If ...
Monesh Rathod's user avatar
2 votes
0 answers
33 views

For the MSP432, does it matter what counting mode is used to generate a particular frequency PWM?

I know there are 3 counting modes, up, continuous and up/down. Let’s say if I intend to generate a 5Hz, 50% duty cycle PWM as output in the compare mode, As long as I choose the appropriate output ...
User95797654974's user avatar
2 votes
1 answer
42 views

Does SPI Configuration Persist After DRV8873 Power-Off?

I am designing board to drive BDC motors using a DRV8908-Q1. Here is the data sheet. DataSheet I would like to inquire if SPI config persists (not go back to DEFAULT) after the driver is powered-off.
DAVID LOW JUNYI HCI's user avatar
2 votes
0 answers
101 views

High power boost converter circuit issue

simulate this circuit – Schematic created using CircuitLab I made a dc-dc booster converter circuit. With a 3 mF capacitor, 48V can be boosted to 200V in 0.5 seconds. But for some reason, ...
heyri's user avatar
  • 21
2 votes
0 answers
58 views

Decode chirping frequency with uC at center frequency of around 100kHz

Context For my MSc project I'm building a chirping signal (a bit like LoRa) with a center frequency of 100 kHz. For now, the bandwidth is 10 kHz such that I have around 10 periods per chip. For ease, ...
Mart's user avatar
  • 376
2 votes
0 answers
630 views

ESP32 GPIO State at reset/after reset

Im trying to understand in what state the gpio pins of the microcontroller will be when it will power up or when I flash new code. The mcu on both cases I assume will be at reset? The datasheet at ...
arisk4's user avatar
  • 85
2 votes
0 answers
468 views

Programming with OpenOCD config file - how do I know my layout_init signal?

we designed a custom board that contains wifi module: EWB-STERLING,(453-00014R ) with STM32F412 chip. I succeed in programming the module, but I noticed that it does not send a reset after each ...
Knowledge's user avatar
  • 443
2 votes
0 answers
384 views

ST7789 LCD Driver Row Address Set Bug

I'm using a 320x240 LCD with a ST7789 driver in 8 bit parallel mode. I'm just getting things set up and am trying to draw a small square in the middle of the screen to make sure everything is working ...
Alex Jegers's user avatar
2 votes
0 answers
112 views

USB detection with MCU

I have USB on a circuit board that I'm working on and it powers up a part of the circuit. I also have my main MCU, SAMD21G, which is not connected to the USB. I want the MCU to know when the USB is ...
Mostafa Ibrahim's user avatar
2 votes
0 answers
342 views

Not able to flash MCU because of external watchdog

I am using the TPS3813K33MDBVREP watchdog on a PCB with a STM32 MCU. It is connected like the example in the datasheet. I can't program the MCU with a debug cable because the MCU gets reset from the ...
itchy's user avatar
  • 131
2 votes
0 answers
103 views

Bodyheat powered microcontroller

Old Post and even older Post I came across before posting this question. The answers by McMahon and Alexeev are pretty much what I was thinking: human energy source: ~100 W skin surface: ~1.75 m2 ⇒ ~...
Xenox's user avatar
  • 165
2 votes
0 answers
216 views

FLASH memory corruption

I have a stm32f030c8t6 which I wish to save some data in its FLASH memory. I use Address Page30 which is 0x08007800 in memory map. it is in 7th Sector. I've developed my code and easily saved some ...
Ala Shafighnia's user avatar
2 votes
1 answer
271 views

nRF24L01+ Doesn't Receive Packets

I am trying to send data from one MSP430 to another MSP430 using Nordic Semiconductor nRF24L01+ radios, but I am unable to receive transmitted packets. I am able to read from and write to the radio ...
dman's user avatar
  • 31
2 votes
1 answer
126 views

What's the purpose of these copper tracks on the bottom of BGA package?

These are STM32F746NGH6 microcontroller chips in .8 mm pitch BGA package. I noticed that there are copper tracks on the bottom of this chip, some of which lead to the edge of the chip and are left ...
crossroad's user avatar
  • 1,440
2 votes
0 answers
157 views

Reading system power noise level using microcontroller

I am developing an application containing a GNSS module where the noise level in the power supply is a critical factor for the performance of the application. So much so that the GNSS module has a ...
Cristian Pastro's user avatar

1
2 3 4 5
25