Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 3707

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.

2 votes
Accepted

Power dissipation in MCU

The maximum power dissipation is a rating of how much power the package can physically dissipate. How the MCU ends up drawing that much power is another matter; for instance, it could be simply a lot …
Nick Johnson's user avatar
  • 7,749
1 vote

What value determines the current flowing between two interconnected ICs?

The current is limited by the output impedance of the driver, and the input impedance of the receiver. A GPIO pin generally has very low output impedance in output mode (at most tens of ohms, likely l …
Nick Johnson's user avatar
  • 7,749
2 votes

Transparent microprocessor. Ports set as imput or output

Simply programming the MCU with an empty main() will do the job. All GPIOs will default to high impedance inputs, so they won't disturb the rest of the circuit beyond a little parasitic capacitance. T …
Nick Johnson's user avatar
  • 7,749
3 votes

Of what use can a logic gate be to a circuit that contains a micro-controller

To add to the list of applications, they're also useful when dealing with input signals faster than you could process directly in the microcontroller. …
Nick Johnson's user avatar
  • 7,749
1 vote
Accepted

ADC pin in MCU how to connect

If you want to protect the microcontroller against signals outside the rails, a series resistor like R2 in the second schematic is useful, though it will limit its frequency response. …
Nick Johnson's user avatar
  • 7,749
0 votes

Voltmeter scaling resistor front-end and ADC calibration coefficients

18k/2k will give you exactly 10%, which is what you say you need, though the total resistance to ground of 20k is a bit on the low side, depending on your ADC and whether or not you're using a buffer …
Nick Johnson's user avatar
  • 7,749
5 votes

Programmable current sink

Building a constant current load with an opamp is a fairly straightforward way to do this. Take a look at the first diagram in this post, for instance: An opamp adjusts its output to make the volta …
Nick Johnson's user avatar
  • 7,749
2 votes
Accepted

Contiki: Serial Line IP via SPI

SLIP is a protocol for conveying IP traffic over a serial line; it sits one layer above UART, SPI, etc, in the OSI network stack. SLIP over SPI should be largely the same as SLIP over UART, except fo …
Nick Johnson's user avatar
  • 7,749
0 votes
Accepted

Cutting power to IC using MOSFET fails

More likely than not, your device is finding a ground connection via its internal protection diodes and another pin that's connected to ground. Without a ground reference of its own, that pin appears …
Nick Johnson's user avatar
  • 7,749
5 votes
Accepted

Measuring 32V using ADC of Atmega8

Your calculation for the battery voltage is wrong. Assuming adcReading varies from 0 to 1023, it should look like this: batteryVoltage = (adcReading * 30) / 1023 Note though that denoting voltage l …
Nick Johnson's user avatar
  • 7,749
3 votes
2 answers
2k views

Finding an affordable integrated USB MCU [closed]

I'm in the early stages of designing a development board around Cypress Semiconductor's PSoC 3 and 5 range of chips. Much like the Arduino, I'd like the programming experience to be very easy, and tha …
Nick Johnson's user avatar
  • 7,749
39 votes

Why do Microcontrollers need a Clock

An illustrative example or two may help here. Take a look at the following hypothetical circuit: simulate this circuit – Schematic created using CircuitLab Suppose to start both A and B are hi …
Nick Johnson's user avatar
  • 7,749
0 votes

Determine input frequency of square wave w/ ICR in Atmega328p

In the ISR, you do a couple of checks that depend on the value of flag, then unconditionally increment it. In your normal case, what happens is this: Main routine sets flag to 0 ISR runs, sees flag …
Nick Johnson's user avatar
  • 7,749
5 votes
Accepted

Breaking a 16-bit long int to write into eeprom?

In C, you can use bit-shift and masking to extract each byte of a longer number: lower_8bits = value & 0xff; upper_8bits = (value >> 8) & 0xff; And you can 'reassemble' the number from bytes by doi …
Nick Johnson's user avatar
  • 7,749
1 vote
Accepted

Controlling pull-up pins from external circuit

Pullups on input pins like this exist as a convenience - for instance, so they can be connected to buttons as you suggest in your question - but they don't prevent you from being able to drive them hi …
Nick Johnson's user avatar
  • 7,749

15 30 50 per page