Skip to main content

New answers tagged

1 vote

What does it mean the MCU has 1 ADC and 10 ADC channels?

Check out the overview of the ADC in section 29.2 (page 412), referencing how the ADC is hooked up to a 10-channel mux, providing up to 12 voltage inputs: 29.2 Overview The Analog-to-Digital ...
user1692597's user avatar
1 vote

What does it mean the MCU has 1 ADC and 10 ADC channels?

The ATTiny204 has one 10 bit ADC fed by a 10 input multiplexer. The output of the ADC will be between 0 and 1023. It can measure up to 10 different analog inputs, but only one input at a time. (You ...
Peter Bennett's user avatar
2 votes
Accepted

What does it mean the MCU has 1 ADC and 10 ADC channels?

It means that there is a single ADC responsible for performing the conversion, but the microcontroller also has a multiplexer, able to route any one of ten individual analogue signals to that single ...
Simon Fitch's user avatar
  • 38.9k
1 vote

Switching ON/OFF an ADC line

Well, there's a couple possibilities: Don't care. If the input currents are small enough, there's no wear on the ESD clamp diodes*, and VCC lifts imperceptibly against the normal loads on it (MCU ...
Tim Williams's user avatar
  • 39.6k
0 votes

Switching ON/OFF an ADC line

which electronic component could one use to switch ON/OFF several external lines for ADC? Analog switches and multiplexers come to mind, most designs have two parallel mosfets, one pmos and one nmos ...
Voltage Spike's user avatar
  • 84.8k
0 votes

Audio Codec Input/Output Channel Stages

Input channel(s): The negative DC offset (R2/7/4) is dispensable. Use instead a DC blocking capacitor at the output of the op amp. You are attenuating twice by 5:1. The input resistive divider (R8/2) ...
Raonoke's user avatar
  • 651
1 vote

What are the VDDSD, VLXSD, and VFBSD pins?

In the datasheet, it shows what all these pins do: Source: https://www.st.com/resource/en/datasheet/stm32wb09ke.pdf
Voltage Spike's user avatar
  • 84.8k
0 votes
Accepted

What are the VDDSD, VLXSD, and VFBSD pins?

SMPS means "switch mode power supply". And in your case, the MCU integrates such functionality. That's not an overly common feature, but some microcontrollers have similar functionality with ...
Marcus Müller's user avatar
2 votes
Accepted

PIC24 memory model problem error

The error is: undefined reference to `___delay_ms' You should either include the library or source code which implements ___delay_ms. The 'memory model' related ...
Velvet's user avatar
  • 4,501
7 votes

Is my setup for a 5V motor project faulty?

You have the transistor "upside down." It should be like this: simulate this circuit – Schematic created using CircuitLab The arrow in the transistor symbol points towards ground. ...
JRE's user avatar
  • 72.5k
0 votes

AVR: Usage of Force Output Compare bits

FOC isn't something you'd need for what you're doing. There are applications where you want to force output compare from firmware. You could have a fairly low speed timer, for instance, for which you ...
Chintalagiri Shashank's user avatar
4 votes
Accepted

Remote update firmware for MCU

First, the MCU must be capable of writing to its own firmware memory. This is generally true for most modern MCUs, but not for some very early and/or low-end devices. Second, the memory must be large ...
Dave Tweed's user avatar
  • 175k
2 votes

Output mode configuration on GPIOs: When to use push/pull vs open drain?

In most cases, you want to use push-pull configuration. It's faster and normally has lower current draw over all. The push-pull (aka totem-pole) output has two transistors the work complementary. When ...
kruemi's user avatar
  • 3,539
0 votes

Common Ground Issue for the System

First off, your drawing is a bit mislabeled: you have a BMS board, not a BMS chip alone (see your previous question); and what you label "VDD" is not what VDD should be, namely the positive ...
Marcus Müller's user avatar
4 votes

What makes a MCU capable of higher temps than another?

They're probably the same except the testing limits for the higher temperature version would be tighter since they have to allow for more change in order to guarantee proper operation at the higher ...
Spehro Pefhany's user avatar
4 votes
Accepted

Output mode configuration on GPIOs: When to use push/pull vs open drain?

It's not a straightforward and solid way to have a rule for all designs. It will be design-specific. Each configuration has its own benefits and limitations. Push-pull: Can source and sink current. ...
Saadat's user avatar
  • 1,851
3 votes

What makes a MCU capable of higher temps than another?

We probably can't know for sure for any particular device, short of the manufacturer saying so*. But it is common industry practice that a given chip design is tested for different parameters (...
Tim Williams's user avatar
  • 39.6k
1 vote

Is this EEPROM write procedure on STC microcontrollers correct? Any alternative?

Please, correct me if I'm wrong in something, but, isn't wiping an entire sector, each time I need to write a single byte, reduces drastically the lifespan of the EEPROM itself? The datasheet you've ...
Velvet's user avatar
  • 4,501
2 votes
Accepted

Is this EEPROM write procedure on STC microcontrollers correct? Any alternative?

Mostly you are right, it depends on the details. And the data sheet has several minor flaws, from the few things I read (typos in the examples, strange wording, ...). In principle all flash memory is ...
the busybee's user avatar
  • 3,379
2 votes
Accepted

How to verify a crystal is damaged?

The page you link to literally says it's a ceramic resonator. It is not a crystal. Please read the data sheet. It is ceramic resonator with built-in capacitors. Which matches your schematic symbol. ...
Justme's user avatar
  • 159k
1 vote

Maximum LEDs on a pin of an AVR Microcontroller

You are correct in that the microcontroller's pin I/O current spec limits how many LEDs you can drive. In general, you should not exceed the datasheet limits given for I(oh) and I(ol) for a single pin,...
hacktastical's user avatar
2 votes

BMS-Battery System

B- is connected to the GND of the BMS BMS ground should be connected to your MCU ground, directly, in parallel to the data lines. Chances are: a ground connector is already part of the data By adding ...
Marcus Müller's user avatar
1 vote

CH32V003 MCU max USART baud rate

The English version of the reference manual can be found on their website. On page 135, it says the maximum is 3Mbps. The formula to compute the USART clock divisor is on page 136. The given example ...
kaosad's user avatar
  • 1,226
1 vote

CH32V003 MCU max USART baud rate

It looks like generic STM32 lookalike. The main thing is, it depends how much error you tolerate and how are you going to clock it (frequency and type of clock source). The MCU has 48 MHz max system ...
Justme's user avatar
  • 159k
0 votes

Strange ADC behavior - AVR32DA32

The answer "why does slowing the clock fix it", is probably pretty simple and that behavior is very revealing of what the problem was to begin with. The other clue is that the AVR32DA32 ...
DrM's user avatar
  • 131
0 votes

Why do MCU dev boards include multiple voltage regulators?

I can't comment on the first answer but if a moderator can turn this into a comment it might be useful there. The Adafruit Learn guide for the product does offer a reason for it. Low Power friendly! ...
KevinJWalters's user avatar
1 vote

MII to SGMII to connect ETH Switch is it possible?

MAC stands for Media Access Control and it is the controller that allows a device to interact with a physical layer ethernet device (PHY) STM32F4 datasheet You need to match the MII to something that ...
Voltage Spike's user avatar
  • 84.8k
1 vote

Stop Mode 2 (deep sleep) doesn't work with STM32l053R8T6 MCU

It's probably that you did not enable debugging in low power modes. In STM32IDE, it's a simple setting (put enable in Configurations->Debugger->Device Settings->Debug in low power modes For ...
bananeeg's user avatar
0 votes
Accepted

Can anone identify this IC marked `55JT`?

It's a Texas Instruments LM95245 temperature sensor. (Source: aliexpress.com)
nanash1's user avatar
  • 5,947
1 vote

LCD Entry Mode Set and AVR MCU

I used an online HD44780 display emulator website and did the following: cmd 0x0F to turn display and blinking cursor on cmd 0x87 to go to address 7 cmd 0x05 to set decreasing addresses with ...
Justme's user avatar
  • 159k
3 votes
Accepted

Why do I have to increase the current by 2V when I am using a transistor?

It is dim because the collector-emitter saturation voltage for your transistor is ~2V. Use a logic level MOSFET and a current limiting resistor. You won't be able to get full brightness with a 3V ...
vir's user avatar
  • 20.3k
1 vote

error in stlink utility

You are not supposed to use pin 19, it is not a standard to have 3.3V output. And you need to use pin 1 to MCU VDD, or the ST-Link cannot communicate with the MCU. So you have basically swapped pin 19 ...
Justme's user avatar
  • 159k
0 votes

Why we used 128 bytes internal RAM memory instead of 256 bytes in 8051?

When processing MOVX instruction, or a MOVC instruction with an address over 0FFFh, the 8051 outputs an address which an outside memory chip can process as it sees fit, allowing direct access of up to ...
supercat's user avatar
  • 47k
2 votes
Accepted

5V CAN transceiver (TJA1040) with a 3.3V uController (ESP32)

The datasheet says: Input levels compatible with 3.3 V and 5 V devices The input levels are not the same as the supply voltage level. On page 5, the operating range is specified as from 4.75 V to 5....
CL.'s user avatar
  • 19.6k
0 votes

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

first add a diode to your transistor Q2 to discharge the relay when it goes off, then try to use a optocoupler after mcu and separate ground of muc and power part best regards
jack roberto's user avatar
0 votes
Accepted

Efficient Padding for UART to Minimize Power Consumption

Generic logic pins today are CMOS type. The MCU output will drive very close to GND/VCC, with a Thevenin equivalent resistance in the 30-70Ω range -- what range exactly depends on state (typically, ...
Tim Williams's user avatar
  • 39.6k
1 vote

Efficient Padding for UART to Minimize Power Consumption

It is likely that there is no detectable difference regarding what you transmit from the UART point of view. Sending 0xFF or 0x00 has equal amount of data transitions anyway. Unless you know that your ...
Justme's user avatar
  • 159k
1 vote
Accepted

ULx200x V.S. SN7546x

SN7546x is a higher voltage version of the ULN200x (100 V vs. 50 V), otherwise they're pretty much the same. They are neither TTL nor CMOS, they are bipolar Darlington arrays. Note that both the ...
GodJihyo's user avatar
  • 25.1k
0 votes
Accepted

Voltage stabilization

Sounds like you have at least one of two possible issues or both. The first possibility is that your 5-volt DC power supply is undersized or cannot supply the current demand. The output of the 5-volt ...
Dereck's user avatar
  • 652
0 votes

Outputting correct data on shift register with clocks tied from microcontroller

You can connect SCK (SRCLK in TI's data sheet) and RCK (RCLK) together. You need to take this statement in section 8.1 of the data sheet into account: If both clocks are connected together, the shift ...
the busybee's user avatar
  • 3,379
1 vote

Detecting 12V using MCU

a voltage supervisor like TL7712 or an adjustable reference like TL7431
Jasen  Слава Україні's user avatar
1 vote

Detecting 12V using MCU

Use a zener diode to drop the first 9V of input and then derive the input from the remainder. I can not give you exact numbers for the voltage divider because I dont know your microcontroller ...
RoyC's user avatar
  • 10.1k
1 vote

Detecting 12V using MCU

you could use an optocoupler if you want to detect the signal and also it is bad for mcu pin to give it direct 12v . just use out from opto coupler and detect it with mcu with pullup .
Allen Shaw's user avatar
1 vote
Accepted

Detecting 12V using MCU

You could improve your interface circuit to solve the problem at source. Might want a bit of experimenting, but for instance: simulate this circuit – Schematic created using CircuitLab Assuming ...
danmcb's user avatar
  • 7,298
3 votes

LED without resistor?

While it’s technically possible to connect the LED directly to the STM32 output pin without a current-limiting resistor, I recommend using a resistor for safety and reliability. LEDs are current-...
MJerjawi's user avatar
3 votes
Accepted

Does this board already have pull up resistors for I2C?

It is unlikely that an MCU board would have fixed I2C pullup resistors because (a) it makes the pins more difficult to use for other purposes, (b) because I2C would probably anway attempt to use ...
6v6gt's user avatar
  • 273
0 votes
Accepted

Impedance for a guitar pedal into an Electrosmith Daisy Seed ADC

Here is a quick summary - all you need to know (from someone who has designed and marketed guitar pedals). in general at audio frequency, we feed a low impedance into a high impedance. A ratio of 1:...
danmcb's user avatar
  • 7,298
0 votes
Accepted

Is it normal to get garbage output through UART when resetting the microcontroller?

My solution in the end was to implement a delay before the reset. The code now delays until the UART has finished sending the last character, and only then the chip resets. It is likely the garbage ...
spyduck's user avatar
0 votes

Sample and Hold IC specification

A sample and hold holds one value stable while you acquire it. To use your scheme, you would need to use many sample and holds, and control them with your microcontroller. The only way you're going ...
Scott Seidman's user avatar
2 votes
Accepted

Sample and Hold IC specification

Unfortunately you have a far more serious problem than a S&H circuit. If you need 2Msps (samples per second) then you need an ADC that can encode the signal at that rate. 15Ksps is far too slow by ...
Peter Jennings's user avatar

Top 50 recent answers are included