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.

Filter by
Sorted by
Tagged with
0
votes
0answers
16 views

SIM800l Replies with a delay. Http Get

I trying to use http get method on SIM800l (mcu for controling SIM800 is STM32F407VGT6). I can send SMS message or read all/specific SMS message but with http methods I'm in trouble(power supply is ...
2
votes
1answer
62 views

Routing strategy - 24-bit RGB display on a 4 layer PCB

I'm routing traces between a microcontroller and a TFT display (24-bit RGB, clock frequency at 18 MHz).The stackup is: L1 - Signal L2 - GND (solid layer) L3 - PWR (solid 3.3V in the region of ...
2
votes
2answers
34 views

MSP430 multiple slaves in SPI communication

I want to make an MSP430G2553 communicate using SPI with a 7-segment display and with another microcontroller MSP430G2452. So the MSP430G2553 would be the master and both the 7-segment display and ...
0
votes
6answers
87 views

Is a floating pin equivalent to a very weak pull down?

I know that if a MCU pin is configured as "input" and it is not connected to any pull up/ pull down resistor, it is said to be floating. In this situation, we could say that the pin is in series with ...
8
votes
7answers
592 views

Why can a MCU input floating pin easily change state?

I would like a technical ("engineering") explanation of why a MCU input floating pin can easily change its state depending on the outside electromagnetic interference. Is it related to the fact that ...
0
votes
5answers
134 views

Which is faster for an MCU? Calculating Steinhart-Hart or search in Look-up Table?

Let say we are to measure 0-100 degree Celsius in 0.1 degree resolution by using an NTC. For a particular MCU which is faster (takes less time to reach the result) : a) Reading NTC value via ADC and ...
0
votes
1answer
48 views

Wear leveling and supply of voltage

Does anyone know if a NAND flash device (e.g. microSD) has to be continuously supplied with energy for its wear leveling algorithms work as designed? Or, if it doesn't matter if the device is (safely) ...
0
votes
3answers
57 views

Trying to understand schematics of a microcontroller (TM4C123GXL)

I have a TM4C123GXL microcontroller with a hwllo-world app. that makes some LEDs to blink. I have done this 'hello-world' by following a tutorial, but now I want ...
1
vote
0answers
35 views

MCU wake-up for low power consumption system

I´m checking the possibility of designing a MCU system with low power consumption, thus I´m looking for a energy efficient wake-up method. The MCU will be woken up by another device in the same room. ...
0
votes
0answers
40 views

IC power consumption under 50% vs 100% busload

Is the dynamic power consumption difference significant for a uC, if it has to raise its activity on the chosen bus protocol from, lets say 50% to 100%? I look in overall to the uC+CommController+...
0
votes
4answers
82 views

Change state hardware interrupt handled by micro-controllers

How are external interrupts handled by microcontrollers? My question is general to micro-controllers, but if it is architecture specific, leans to ARM- based micro-controllers. Assuming we have 2 ...
0
votes
0answers
10 views

In protus8 avr unable to open hex file [closed]

Im using atmel studio in coding and when run protus there are problem in hex file
1
vote
0answers
21 views

UART communication with a Thorlabs chip

I am trying to configure a Thorlabs temperature driver (MTD415TE), using a UART-USB connection. For this, I am using a Foca v2.2 with a FT232R USB-UART cable. I am using serial terminals such as ...
1
vote
2answers
23 views

Is a Synchronous Step-Down Converter powered from industrial 24v a good choice to power a 3.3 volt MCU and sensor ic?

I am building a sensor that will be powered from a 24v industrial power supply. The board will contain a 3.3 Volt MCU and sensor IC. Is it a good idea to use a synchronous step-down converter and just ...
0
votes
1answer
82 views

STM32 standby mode power consumption is too high

I'm experimenting with standby mode on STM32F407VGT6. I know how to put MCU into standby mode(or I think to know that). I'm doing that with this init function: ...
0
votes
0answers
43 views

Fluid intake selection device? [closed]

I'm planning to make a colored water desk fountain and need to get colored water from different tanks/bottles one at a time. I'd like to control the selection device using a micro-controller, so it ...
-1
votes
0answers
51 views

Which are the technical parameters most required for finding an alternative to a microcontroller and why [closed]

Especially on the parameters mentioned below: On Chip Data RAM and ROM Width Available Interface Type Supply Voltage-Max and Min Supply Voltage-Nominal Type of Peripherals that can be connected ...
-2
votes
0answers
37 views

How can i calculate minimum ISR interval for nuvoton -8051(8bit)?

From below sample code for nuvoton 8051 timer0 mode 0, the isr interval is calculated is 1ms, its work. but how can I calculate the minimum isr timer interval for 16mhZ frequency.? ...
1
vote
0answers
49 views

Alternatives to a hardware configuration of an input pin for uC

I'm trying to figure out how to read-in a configuration to the small ATtiny10 microcontroller. I want to find out 5 or 6 different configurations, adjustable by hardware into one IO using the same ...
8
votes
3answers
1k views

Why do MCU crystal oscillators not fry the crystals?

I am trying to better understand crystal oscillators. I have been reading ST's AN2867, where they explain that, depending on the crystal, a series resistor (R2 in the diagram below) on the output side ...
0
votes
1answer
31 views

Unvalid output voltage of LM35 temperature sensor

I have connected once the Vss and Ground of my LM35 sensor reversely wrong. After correction of this, the output voltage is 0.5 V which seems to be invalid in room temperature. I'm not sure if the ...
0
votes
2answers
59 views

Working principle of a MOSFET Transistor

I was just reading a blog entry regarding the power conflict of the Arduino and trying to understand everything, when I came to a point where I could not understand the working principle of the ...
0
votes
0answers
90 views

Identify unknown Microchip IC from Opel LCD dashboard - markings 25072478 REV D 9119 CCA

I already asked this question in Reverse Engineering StackExchange more than one year ago. Since then I got no answer and I have tried to search again in google and so with no success. I have seen ...
0
votes
1answer
89 views

I want to make a photo-trap for wildlife

I want to make a photo-trap with extra features. I tried using a Raspberry Pi for this, but I could not start the system in under 4 seconds. When other photo-traps detect motion, they start ...
-1
votes
0answers
33 views

Is there any way to perform a clarke transform on a signal without using digital signal processors

I am trying to implement a active shunt power filter for a 3 phase network.Is there any IC or microcontroller availiable that can perform a clarke transform on the signals from the network.
0
votes
0answers
38 views

ADC of TM4C123GH6PM( 1 Msps as given in datasheet ) is not reading any data if sampling frequency is increased beyond 250Khz

I need to sense a signal at 500kHz. According to the datasheet of the TM4C123GH6PM it is able to sample up to 1000Khz. The code is already written with sampling frequency at 90Khz. Whenever I ...
0
votes
0answers
37 views

SIM800 Doesn't Give GSM Location

I have problem to get exact GSM location using SIM800L. I have followed instruction in manual. But my module just give me latitude = 0 and longitude = 0. This is what i do with my Serial Terminal. <...
1
vote
1answer
37 views

mcu input pin 24V protection

I've been looking at input protection circuits and I came across to some circuits that look like this one. Which is just based on the series resistor R1 to limit the current that flows through the MCU ...
1
vote
2answers
88 views

LC filter before analog pin of microcontroller

I am measuring analog DC voltage at the analog pin of dspic33 series microcontroller. The source of the signal is AC. So, I rectified it with diodes and amplify it with op-amps. In order to reduce the ...
0
votes
3answers
84 views

Implementing ADD instruction for RiSC-16 processor

I'm trying to implement the RiSC-16 (not RISC) processor documented here using Verilog. The processor is really simple, however there is a problem when you try to perform ADD instructions ...
0
votes
1answer
32 views

Task of the Driver on Mach Zehnder Modulator

What is the task of the Driver of the MZM modulator? I'm trying to get RF input for the MZM, does the driver convert optical input to RF? We have a driver, what's the purpose of it? How can I design ...
1
vote
1answer
37 views

What type of MUX to most effectively connect both sets of resistors at once?

The following circuit is used PER CHANNEL, and I have 4 channels, to according scale the gain for our input signals on each channel. However, each channel, has to be able to switch between 4 ...
0
votes
2answers
66 views

How to reduce EMI susceptibility for board to board connectors?

I am planing to design an MCU based board. Although I don't need all the GPIO's, SPI's, PWM pins, etc. I like many of them to be connected a card edge connector or board-to-board connector. So, I can ...
2
votes
1answer
187 views

Remote reset circuit does not work

I have a custom board based on an Atmega168A which I would like to reset when the power switch to the on-board LEDs is switched off. Resetting the uC by shorting RST and GND works on the ICSP ...
0
votes
1answer
42 views

Microcontroller PIC32MX

If we are powering our PIC32 with a USB, why do we also need Vcc from an external power supply to provide to PIN8. In my circuit I am powering the PIC32 with a USB, but when I check the value of ...
0
votes
1answer
49 views

pic18f4550 header file error

I am working on eeprom, i am getting the error as follow In file included from spi.c:65: C:\Program Files (x86)\Microchip\xc8\v2.10\pic\include\pic18f4550.h:1726:3: error: typedef redefinition with ...
0
votes
0answers
35 views

When trying to flash new data, I am getting an error that I can't write to addresses below 0x4000 on ST8M105x6. How to fix this?

For context, I am not very well versed into MCUs and the STM8 chip. I have an ebike with a TSDZ2 motor, and I am trying to flash a new firmware on it to support my higher capacity battery. The chip ...
0
votes
0answers
36 views

GSM Antenna - SIM800L

I want a 90 degree rotate antenna for my SIM800L module.I couldn't find one so I hooked up a wifi antenna & it worked nicely.Does it matter for reliability? Does it match with my sim800L module? ...
0
votes
3answers
36 views

Detecting different heat element power

I have a range of heating elements with different power ratings (i.e. different resistances). Is there a way for my microcontroller to detect what power they are so I can use the microcontroller and a ...
2
votes
2answers
134 views

Do chained I2C address translators also act as buffers?

I'm working on a data collection/testing setup for multiple pogo pin test PCBs (~10 max per master) connected over I2C, daisy chained together. The design is based around the AD5593R ADC/DAC/GPIO chip,...
0
votes
1answer
66 views

Writing a (signal level) micro-controller simulator

Last year, I created a circuit simulator in C# based on Quics. I split the project into front-end (written in C# WPF) visual editor to create and edit the circuit elements, and back-end (written in C++...
0
votes
1answer
87 views

Using a micro-controller to drive an ignition coil

I am building an Arduino/Speeduino based ignition controller and want to drive a 12V coil from a digital output of the ATMEGA2560. Below is my design for a coil driver using an IGBT (NGD8205ANT4G) ...
0
votes
1answer
52 views

sinusoidal bldc LUT synchronization

i trying to control 3 phase BLDC motor. I already done 6 step commutation which works fine. Now i going for sinusoidal control. Have studied more about sinusoidal control in bldc and got some idea. I ...
0
votes
1answer
44 views

STM32F411 - Timer interrupt not firing

I setup TIM3 on my STM32F411 using the following code: ...
0
votes
1answer
36 views

How is power generation computed in a circuit?

I have made a simple circuit of by attaching a 10 ohm resistor in series with an LED and then attaching it to the solar panel. I use an AVR Microcontroller to measure voltage across the resistor ...
5
votes
2answers
71 views

Microcontroller working voltage + brownout circuit

I'm working with LPC1769, but this applies to any MCU. The datasheet states that the power supply range is from 2.4V to 3.6V. The included brownout detection circuit triggers a warning interrupt ...
1
vote
1answer
54 views

Uninterruptible Power Supply - Reset the load when power is restored

My system is powered by a redundant supply (UPS). When the input power supply is removed, the system detects this event and it performs a safe shutdown (actually it is a microcontroller that enters a ...
1
vote
2answers
50 views

Selection criteria for microcontroller to read data from a car's CAN bus (from OBD2 to microcontroller)

I want to read data from a car's CAN bus using a micro-controller. The micro-controller is used outside the car (via OBD to micro-controller). A few micro-controllers i found with CAN interfaces are ...
0
votes
1answer
55 views

How these timer values are derived?

I have a 8051 micro controller ,it has timer0,1,2,3 with different modes. in timer0,mode0, i got a sample code (as shown below). datasheet 8051 from that code ...
0
votes
0answers
10 views

Problem in configuration of Tiva TM4C1294NCPDT on Code Composer Studio

I am using code composer studio and using the microcontroller below, I used Energia software to run a simple program and it runs, but when I use CCS and try to flash an example program for this MCU ...

1 2 3 4 5 133