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.

learn more… | top users | synonyms (1)

0
votes
1answer
40 views

Compensation of forward voltage drop of a diode - software

In my case I would like to compensate with software a voltage drop over the diode. I have diode RS2J which supplies DC/DC (50mA - 200 mA) converter at this point with resistor divider I would like to ...
0
votes
0answers
21 views

STM32L1 Bootloading from USART

I am trying to move an application from the STM32L1 discovery board (which has the STM32L152 chip) onto a PCB containing the STM32L151RC. On the discovery board, I was able to follow the application ...
0
votes
2answers
132 views

Can we observe addresses, data and other signals on the microcomputer buses by an oscilloscope, a LED or even an ordinary voltmeter?

Microcomputers are dynamic devices that are synchronized by a clock oscillator. So the signals (E, R/W, CS, A15-A0, D7-D0...) appear on their buses only for parts of a microsecond and, as the buses ...
0
votes
2answers
50 views

Serial Servo Control using PIC

I am trying to make a serial servo controller using pic18f4550 microcontroller. following if the complete code that i've tried.. please note that i'm currently sending 8bit hex to control only one ...
0
votes
1answer
54 views

Understanding motor controllers and example application

I'm rather new to the world of motors and motor control circuits - about all I know is that you need one. My intended application is to take a DC motor and create a "servo", which I understand to ...
1
vote
1answer
38 views

Low Pass Filter With Hall Effect and ADC Help

Background: I am using the Allegro ACS758KCB-150U hall effect based current sensor, here is the datasheet, I am using it to measure current drawn by 24V motors, between about 20A - 130A. The reason ...
0
votes
0answers
41 views

AVR - Simple(st) serial port programmer

As I'm just getting started with learning anything about microcontrollers, I started from making a very, very simple LPT port programmer (...I think it was just about 4 resistors). It worked well with ...
1
vote
1answer
61 views

H Bridge Control using Raspberry PI / Micro controller

I am looking for input on this circuit that I have designed. I am currently working on a project called the Net-EEL RC Car. It is an RC car that will be controllable using Network Socket Servers / ...
1
vote
3answers
124 views

Send integer values through serial communication in PIC to PIC?

I need to pass integer values from one PIC to another through serial port for char I can use the following code ...
0
votes
0answers
39 views

How to choose a low power Microcontroller? SPÌ capable [on hold]

I'm looking for a microcontroller capable of SPI with low consumption: SPI to communicate with a radio module (nRF24L01+); Low power because it will be powered by a battery (probably a coin ...
-4
votes
0answers
51 views

Serial Port Capture and Email Alert [on hold]

I'm designing a system that will email me when the microcontroller detects sth and inform the PC through a TTL - USB converter serially. I've succesfully completed the communication part of the PC - ...
2
votes
2answers
185 views

Programmable current sink

I need a current sink that I can control from a micro-controller. Should handle 5V up to 4mA or so in at least 256 steps (more is better). I'm looking for a design, not so much a complete product, due ...
0
votes
0answers
6 views

Creating arduino library linking question [migrated]

I know how to create my own arduino library and use it. I am using Xcode to create a c++ project. I have the arduino library files(Servo, Wire, Keypad, etc). If I want to include the Servo.h library ...
0
votes
0answers
34 views

Small low power microcontroller to use with ESP8266 [on hold]

I'm a programer and don't really have any experience with this. But for my project I will need a sensor that would send signal over wifi when 2 surfaces are connected. For this I believe I'd need a ...
11
votes
4answers
665 views

How does the controller know when to jump to the ISR?

I am talking about things at the core level. As far as I understand, the controller core just executes instructions which are fetched from the memory (Fetch - Decode - Execute). When an Interrupt ...
-4
votes
0answers
27 views

WiFi chip or module with schematics advice [on hold]

I'm looking for a product advice. There's a lot of products and i need to choose one and i want to ask an advice from who know different brands. I need a wifi chip with minimal connection schematics ...
0
votes
1answer
96 views

Two different MCU , different output but none was right?

I write this simple code to check my new burner : #include<avr/io.h> void main(void) { DDRC = 0xFF; //high pins PORTC=0x00; while(1) { PORTC=0xFF; } } ...
5
votes
6answers
431 views

WLCSP MCU's - what hardware is needed for programming these tiny chips?

I just received my DigiKey order of some Atmel ATTiny4 MCU's from DigiKey. I wanted to tinker with one of the smallest MCU's I could find, and this was one of them. It is, in fact, so small because ...
1
vote
0answers
63 views

PIC18 weird variable assignment bug

I'm debugging a code for the Microchip PIC18F4520 using the PROTEUS ISIS. The code was compiled with the C18 compiler. There is a very crazy bug in the code that I don't know whether it is my fault or ...
1
vote
1answer
70 views

PIC to PIC serial communication

I need to send all port info from one pic to another using serial port.. currently using 9600bps baud rate. on pic18f4550 running at 20mhz clock. i have used this code to send and receive data of a ...
0
votes
1answer
59 views

PWM-stimulated N-channel MOSFET unexpectedly always on

Electronics! I would appreciate help with the following problem: Goal: Get 12V PWM-modulated from a microcontroller-generated 5V PWM. Elements: • IRLML2502, n-channel FET - Datasheet ...
0
votes
1answer
33 views

Control multiple servos using pic18f microcontroller?

I want multiple servos to be controlled through pic18f4550 microcontroller. I know for a single servo I can use the following code. ...
0
votes
2answers
60 views

Changing control values for PIC remotely?

I'm using a PIC to take information from a sensor and transmit it via xbee to control a relay, as well as through a gateway to an online program. Forgive the noobie question here (I've searched and ...
0
votes
2answers
118 views

Landline listening

I still have a good old landline at home. But I miss the easiness of cell phones where you can just see a list of missed calls. I'm a MSP430 Launchpad hobbyist and I'm alway looking for some little ...
0
votes
0answers
36 views

ATmega PWM frequency resolution

I am using an ATmega328 for generating a PWM signal. But I need a specific frequency. So I tried to use "PWM Phase Correct" mode (mode 10) for Timer 1. It says, the TOP value should be ICR1. It ...
0
votes
0answers
22 views

LPC ADC Freezing on manual conversion

I'm using MDK-ARM V5.10 with an ARM Cortex-M0+ LPC1114 from NXP. I have this code below to read the ADC module: ...
3
votes
7answers
282 views

MCUs which can trigger an interrupt on a port mask

(Hobby and learning, not a professional question.) I'm designing a circuit which uses a CPLD to turn a half-dozen inputs into a single output which triggers an interrupt in a microcontroller. Are ...
0
votes
1answer
52 views

How to run Small Brushed Motors for Quadcopter with bare Atmega328 microcontroller?

I am trying to make a Nano Quadcopter using my Atmega328 microcontroller powered by a 3.7v 600mAh Lipo battery. I am using very Small Brushed Motors. If I directly connect motors to PWM pin of ...
0
votes
0answers
68 views

Which µC is best suited for my application? [closed]

I want to create a Cape for a BeagleBone Black. Its purpose is that it waits on one input for a high-signal, and afterwards gets the data from a 16-bit-input, converts it from binary to decimal and ...
0
votes
0answers
29 views

Read multiple channels of adc & display on 7 segment

I am building a voltmeter which can read voltage from multiple adc channel & display the channel number and voltage on a multiplexed seven segment display .I am currently able to read from a ...
0
votes
0answers
24 views

IAR ARM Workbench vs Atmel Studio?

I'm developing firmware for ARM Cortex M4. I've used Atmel Studio extensively as it is free but have never used IAR ARM Workbench. Can someone with experience on both IDEs tell me some of the ...
9
votes
2answers
480 views

Can the microcontroller program flash memory be used for storing user configuration?

Many microcontrollers, e.g. PIC18F, have flash program memory: "The Flash program memory is readable and writable during normal operation". Does this mean I can store some user configurations in the ...
2
votes
1answer
82 views

Documentation generator for embedded C projects

I'm looking for the equivalent of what Javadoc is to Java and from that, a way to standardize code documentation. Is doxygen more common in this context. Are there built-in, IDE-dependent options? ...
2
votes
1answer
430 views

Memory allocation in Microcontrollers

I know I'm asking a basic Question. But it will be very useful for me to continue my Micro-controller Experience. Consider I am using a controller with 256 KB Flash and 8 KB Ram. My Questions are I ...
0
votes
0answers
32 views

Finding an equivalent of BS108 and NDP6020 transistors

I want to implement the below circuit for automatic power off of a microcontroller that will be battery powered: I took this from the following forum: ...
0
votes
1answer
56 views

I/O pin as I2C wire

In my application,I need 2 I2C interfaces as I need to interface EEPROM and smartcard. Can we use I/O pin as I2C wire? How? Is it feasible?
0
votes
1answer
34 views

Controlling external appliances with a microcontroller by replacing switch with relay

I am working on a custom school project where I want to control a coffee machine's power using a micro-controller. I have never worked with interfacing to external appliances like this before so ...
5
votes
3answers
370 views

Use Cases for an External ADC

Most Microcontrollers (uC) have an Analog to Digital Converter (ADC) as part of their peripheral set, which is phenomenal as this integrates two components into a single package. These ADCs are ...
0
votes
1answer
48 views

Bluetooth - NFC communcation

I want to build a device that would recieve a NFC TAG and send it via Bluetooth to the Mobile Phone, that has Bluetooth enabled. I am searching for some basic articles or some starting points on how ...
0
votes
2answers
94 views

Do microcontrollers have cache?

I wonder if microcontrollers normally have cache or not. What is the common case? If not, what could be the benefit behind this?
3
votes
2answers
118 views

Circuit to disconnect USB

I have a microcontroller with USB Host, and I need to be able to programmatically power-down the USB peripheral. The reason is that I need to power cycle the USB peripheral to reset it (a necessary ...
1
vote
1answer
40 views

implementing direct addressing mode for a load instruction on a mips archtitecture

Given a Mips machine with 26 bit addresses and 32 bits data-paths, where the load instruction is as follows |OPT code|rs|rd|immediate| |6 bits |5 bits|5 bits|16 bits| The OPT code is the ...
0
votes
3answers
68 views

Joystick interface

I need some advice for my project. I would like to create a joystick interface for my old Amiga computer. I have an analog joy with HID USB interface, I can read the position datas in digital format. ...
0
votes
1answer
59 views

Hacking a ball mouse with Arduino

You can view the image in greater detail on the following link: http://i.imgur.com/z18qD56.jpg I have been trying to hack a ball mouse (mechancial mouse) with my arduino. The objective is to cut ...
2
votes
2answers
116 views

Can someone explain to me programming logic behind multiplexing a LED segment display?

I am new to programming embedded systems, so any help is appreciated with my question. My task is to program (in C) a timer that counts up on a 7 segment common cathode display such that it will read ...
-5
votes
0answers
29 views

PIC16F877A Microcontroller Comparator [on hold]

I am new to PIC micro controller programming. I am confused about CMCON register. i want to ask that How many comparoters does a PIC16F877A micro controller has?
0
votes
1answer
22 views

display multiple data

I want to display 4 different data on a multiplexed seven segment display .I am able to display 2 data for a certain interval ,now i want to expand this to 4.How to do this . ...
-1
votes
1answer
75 views

PWM with MOSFet- make it linear

there maybe wrong assumption in my question , so forgive me, i am here to learn . So controlling a light(LED) with MCU that outputs PWM, into a MOSFET N-CHANNEL, as described in this little image: ...
0
votes
1answer
73 views

CAN installation running at 1 Mbit/s need to transfer 1024 bytes

What is the total number of data frames needed to transfer an entire 1024 bytes block? Also, what is the minimum amount of time needed to complete this method?
2
votes
1answer
222 views

What is the maximum number of nested functions in PIC16F628A?

What is the maximum number of nested functions in PIC16F628A? ex. [NEW CODE, should be more explanatory] ...