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.

Microcontrollers are software-controlled devices which provide a convenient way to perform complex tasks like data collection, reporting and control in a compact, tightly integrated package.

There are a few general differences between microcontrollers and microprocessors:

  • Microcontrollers generally use internal flash/ROM/RAM and lack external address and data buses. Microprocessors rely on external memory, and have limited internal memory (usually only cache).

  • Microcontrollers generally have a large variety of input/output peripherals built-in, like general-purpose I/O lines, analog-to-digital converters, dedicated UART hardware, etc. Microprocessors generally do not, since most of its I/O functionality is used for addressing external memory (or memory-mapped peripherals.)

  • Microcontrollers are generally optimized for very low power consumption, and have computational trade-offs because of this (many have no floating-point capabilities, no pipelining, etc.). Modern microprocessors perform faster than microcontrollers, and require much higher power budgets.

Major manufacturers of microcontrollers include Microchip, Atmel (acquired by Microchip in 2016), NXP, Texas Instruments and Cypress Semiconductor.

related tags:

9543 questions
47
votes
8 answers

How to choose a MCU platform?

There are numerous MCU platforms and once somebody has gotten used to one, they are generally reluctant to switch to another platform. My question is: If one started using a MCU for general purpose tasks today, how would one go about choosing one?…
ARF
  • 5,199
  • 9
  • 43
  • 71
41
votes
13 answers

Have microcontrollers replaced simpler ICs?

Is it still worthwhile to learn, for example, how to tune a 555 timer with resistors and capacitors, when you can write a timer program for a microcontroller in a human-readable programming language? Or, to put it another way, are there problems…
user955
  • 190
  • 2
  • 5
30
votes
15 answers

Intel HEX (.hex) viewer/readers

Lately I've been doing a lot of work with Intel HEX files. I want a program that can import an Intel HEX file and allow me to view the byte contents at each address. There are a handful of programs I've seen that do this, but are there any that are…
Seidleroni
  • 1,684
  • 2
  • 14
  • 19
29
votes
2 answers

What are the RAM-only microcontrollers intended for?

While looking for some detailing on part number construction for Texas Instruments's MSP430 series, I came across this wiki page: TI MSP430 There is a statement, "L" as in the MSP430L09x series, which indicates a RAM-only part; it must remain…
WedaPashi
  • 1,670
  • 17
  • 29
26
votes
3 answers

How does a microcontroller boot and startup, step by step?

When C code is written, compiled and uploaded to a microcontroller, the microcontroller starts running. But if we take this uploading and startup process step by step in slow motion, I have some confusions about what is actually happening inside the…
user16307
  • 12,049
  • 52
  • 184
  • 320
21
votes
7 answers

What are the smallest microcontrollers?

I am looking for a microcontroller to use in a project which is very space-limited. What microcontrollers have some of the smallest packages? This does not need to be high performance, most microcontrollers are more powerful than is necessary in…
Alex I
  • 3,431
  • 3
  • 36
  • 62
21
votes
8 answers

How to deal with long chip lead times in small company

I am the chief engineer at a small company. Our product popularity is growing rapidly, and now we are learning about painful lead times for microcontrollers. The owner is demanding product overhauls to avoid distributor lead times. My question…
19
votes
10 answers

What are the cheapest microcontrollers?

What are the cheapest microcontrollers available? This would be in volumes over 1000, though hobbyist availability would be nice. I'm looking for the cheapest of all microcontrollers - my requirements are minimal, 1 IO pin, any supply voltage,…
Toby Jaffey
  • 28,836
  • 19
  • 98
  • 150
17
votes
17 answers

What do you wish you had known before you started with Microcontrollers?

When working with AVR microcontrollers or Arduinos, what is something that if you had known sooner would have saved you a lot of time or frustration?
NeedTungsten
  • 708
  • 4
  • 9
15
votes
3 answers

Microcontroller RAM life expectancy

A variable in microcontroller RAM changes 50 times/second. Does that degrade the memory location of the MCU in long run? If so, how long is the memory location expected to be active?
John
  • 245
  • 3
  • 8
13
votes
6 answers

Are high speed crystals better at something compared to 32768 Hz crystals?

Let's look at STM32L4 microcontrollers, for example. I can use Low Speed External oscillator (LSE), or High Speed External oscillator (HSE). LSE can run all the time consuming very little power. It can run not only the RTC, but, thanks to PLLs, also…
Manx
  • 143
  • 1
  • 6
13
votes
1 answer

How do I select long-lived microcontrollers for designs so we do not have to revamp our product if they stop making the chip?

I'm working for a small toy company who has all of their engineering/programming in China. They have had a few of their electronics product needing revamping because the microcontroller that the design was based on is no longer being manufactured. I…
milesmeow
  • 1,161
  • 1
  • 13
  • 27
10
votes
4 answers

Making shared bus act as OR

For the impatient, you can skip the background. Background I'm programming a set of microcontrollers that communicate with SPI. There's one master and n slaves that share the bus. There's no chip select. (It's not a bad design, but n is large and…
Shahbaz
  • 297
  • 2
  • 10
10
votes
7 answers

Is Parallax Propeller a good product?

How does the Parallax Propeller stack up against other multi core solutions? I just saw an article about the open stomp project that won their design contest. I wanted to see what other people thought of the chip. Any similar, but better…
Scott Murphy
  • 923
  • 6
  • 10
10
votes
8 answers

What microcontroller should I use?

I'm trying to find the best micro controller package for my computer programs to communicate with the real world. I am hoping for a large number of I/O pins (so far 64 digital is all i need, nothing fancy like analog and PWM) which an I can read and…
Faken
  • 165
  • 1
  • 2
  • 9
1
2 3
24 25