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)

3
votes
0answers
123 views

What happens to AVR registers during multi-cycle instructions?

This is more of a theoretical question... (Also my first on Stack Overflow) I am wondering what happens to Atmel AVR microcontroller (i.e. ATTINY85) registers during a multi-cycle instruction. i.e. ...
2
votes
0answers
30 views

PIC32MZ bootloader without development board

I would like to put a bootloader in a PIC32MZ2048ECG064. I found AN1388B, but in table 9 (available bootloader workspaces) it lists only PIC32MX devices as compatible. The datasheet doesn't mention ...
2
votes
0answers
548 views

How can I log information from code in IAR Embedded Workbench to a log file?

I'm trying to develop an application for the NXP LPC1788 microcontroller and I would like to be able to log formatted strings at arbitrary points within the source code to a log file in a way that has ...
2
votes
0answers
329 views

STM32 - Multiple channel PWM input

I am using an STM32F405 based board , (OpenPilot revo ) to receive PWM signals from a joystick receiver . i have to xapture 5 PWM signals using only two timers , the timer 8 and the timer 12 . I've ...
2
votes
0answers
1k views

How to get an ENC28J60 to work?

For starters: Yes I know I'm about to reinvent the wheel with the following task ahead. I want to create my own library for the ENC28J60 for an AVR (ATMEGA1284P). So I've been browsing the net for ...
2
votes
0answers
1k views

Constructing Excess 3 BCD to 7 segment decoder - circuit hints needed

I am currently trying to construct a circut for an Excess 3 BCD to 7 Segment decoder. Therefore the input range ranges from 0011 to 1100 in binary inclusive with the rest of the inputs being don't ...
2
votes
0answers
407 views

LIS302DL Accelerometer WHO_AM_I command

I've setup the behaviour of LIS302DL accelerometer IC using following code: ...
2
votes
0answers
558 views

Using optoisolator and triac with mcu to switch light on/off--need low power alternative

I'm using the schematic below to control a lamp (light bulb) with a microcontroller and I'm running the mcu (and moc3010) off of AA batteries. I just realized the moc3010 has an LED in it that needs ...
2
votes
0answers
489 views

How calculate three phase kilowatt hour from time sampled data of voltage and current of each phase

My problem is I want to calculate three phase kilo watt hour from time sampled data of current and voltages. My doubts 1) How can I calculate the kilowatt hour from time sampled data? Is it any ...
2
votes
0answers
103 views

Generate audio driver hi current from MCU & DAC

I am very very new to microcontroller use. I am looking for a way to generate 2 different VLF frequencies that alternate for set time periods that will be pushed into an audio amplifier device to ...
2
votes
0answers
353 views

Why there is no respond on rs232 port

We are working on communication between AVR and a Crous PTZ. We can see some details about Crous communication ports on page 15 of its guide : We found Crous protocol doc (Got it here) and now we ...
2
votes
0answers
162 views

Dynamic Frequency Scaling in Renesas M16C

I am working on a research project that involves implementing a dynamic voltage and frequency scaling for Renesas M16C microcontroller based system. I am working on BNS QSK62P+ development board. ...
1
vote
0answers
82 views

How to switch between two 220VAC motor power supplies?

I am not an electrician, electronics engineer or anything that will relate me with your interesting profession, but I am a Project Engineer, Mechanical Engineer, etc. and I am working in my spare time ...
1
vote
0answers
38 views

ATmega2560 freeze on start up

My arduino mega freezes on startup. I am powering it with an ATX power supply and the Arduino does nothing after power is applied, until I hit the reset button. I thought the issue was the slow ...
1
vote
0answers
101 views

Extract firmware of an old electronic toy

I'd like to extract the firmware of an old electronic toy. Is has two electronic components, made by Texas Instruments: a PC35303NL - QB 8649, which is the main controller I guess TMP50C40AN2L - ...
1
vote
0answers
47 views

Connecting 3.3V periperals with 3.3V or 5V MCU

I'd like to connect various 3.3V perpherals to works with either 3.3V (i.e. Arduino Due) or 5V MCU (i.e. Arduino Atmega2560). Here is a basic diagram: The system is consists of two parts: ...
1
vote
0answers
78 views

Fly-by vs flow-through DMA

I know that fly by DMA controllers (such as Intel 8257) are basically rewiring the circuit and arbitrating the flow of data. On the other hand the flow through ones keep some of the data into its ...
1
vote
0answers
75 views

EMMC debug using oscilloscope

I am performing electrical validation of EMMC interface using oscilloscope per JEDEC spec. One of the test is to validate setup and hold time for CMD and DATA signal both way (R&W).On scope,I ...
1
vote
0answers
54 views

How to call the odd and even bits from SDRAM and transfer via master to multiple slave through SPI Bus?

I want to use the multiple slaves on same SPI bus in Port C. i stored my Data to SDRAM of Atxmega 128a1. let me consider my SDRAM stores A1A2A3A4A5...etc data bits. my data size is 2956192 bits. such ...
1
vote
0answers
18 views

PIC18F8720 in word write mode and control signals on the EMI

I'm reading the datasheet of the PIC18F8720 and I'm stuck on the control signals diagram. Here it is. What I don't understand is the difference between ...
1
vote
0answers
49 views

ADC amplifier gain dependence on microcontroller operating voltage

I was just curious about how dependent the gain of an internal ADC amplifier of a microcontroller is on the supply voltage? The variation I was thinking is 3.3V instead of the values given at 3V. The ...
1
vote
0answers
126 views

PIC32 Input Capture Module

I'm trying to use the input capture module on a PIC32MX250F128B to measure the frequency of a square wave. The results I'm getting are both inconsistent and incorrect. All I'm trying to do here is ...
1
vote
0answers
65 views

FTDI2232d + TM4C1294 configurations

I posted this question before, but I am still struggling with this. I captured a schematic and others in this time so it should be more clear to see what's going on. I was given a custom board ...
1
vote
0answers
130 views

Programming PIC24FJ64GB004

Hello all, I am trying to run simple LED blink program on PIC24FJ64GB004 using PICKit3 programmer, I tried multiple codes but all give same response. When i write a 0 to GPIO it remains at logic 0, ...
1
vote
0answers
77 views

Strange behaviour using PWM on CortexM3

I have a board with the ATSAM3S2BA-AU, which is a Cortex M3 uC. I need to use 2 PWM channel , here how I've done it : ...
1
vote
0answers
204 views

what is the diffrence between hid and cdc usb device?

I was not able to get the difference after much googling.I am a newbie in microcontrollers and doing a project on Temperature controlled fan using LabVIEW and PIC18F4550. I need to know how ...
1
vote
0answers
42 views

auto shift on keypad press in lcd using fujitsu F2MC-16LX MB90385 Series

We are using LCD and Keypad in our MCU and I was wondering how do i initialize my LCD so that every time there is a key press the display will automatically shift right and fill up the LCD as more ...
1
vote
0answers
130 views

CRC32 on SAM D20 (Cortex M0+)

I've been having a hard time debugging the DSU module on a SAM D20 (datasheet). I mean to utilize it to calculate CRC32 for a program I'm uploading through a custom bootloader (bootloader not mine). ...
1
vote
0answers
271 views

Help with PFM with PID Control on dsPIC30F2020 (Pulse Frequency Modulation)

I'm using the dsPIC30F2020 trying to do a project that compares and contrasts PWM and PFM bucks converters. I have the PWM buck converter working perfectly. So for the PFM I used the exact same code ...
1
vote
0answers
48 views

Circuit that takes input signal and controls led

I am trying to design a circuit that compares a recorded signal to a stock signal. If they are not similar it then inputs a signal into a circuit which will change the pulse of the led to stimulate a ...
1
vote
0answers
123 views

Stepper motor to replace brushed DC motor to be used to start a gas engine?

I'm trying to decide if it would be possible to use a stepper motor to replace a current 12V DC brushed motor that is used to turn over a small (~149cc) gas engine for starting. The reason why is, I ...
1
vote
0answers
106 views

Video streaming from image processor

The project I'm working on involves streaming video from an image sensor to an LCD, preferably as cheaply as possible. My question is: can I get an image processor/sensor SOC (a la ...
1
vote
0answers
100 views

Configuring input on MSP430?

I've been trying to get 2 input push-buttons working on my MSP430 FF529. I've been successful with 1, but not the other, which leads me to think the one not working is broken, since I'm doing the ...
1
vote
0answers
104 views

Is there an online resource for finding microcontroller with specific requirements?

When looking at digikey with the advanced search chrome extension (Link) on I noticed that some features of the microcontrollers are not recorded (such as MIPI, PCIe, UBC, etc). Is there a website ...
1
vote
0answers
184 views

LPCxpresso: How to write a constant value to flash memory at programming time?

Is there a file or setting that I can add to my project that maps specific values to specific memory location in IAP flash when it is programmed? The device is LPC1114. The use case is that each ...
1
vote
0answers
87 views

How to setup a usb Host device

How can i setup a usb host device with pic32MX795 with a pendrive as a device . I have been able to detect the pendrive and enumerate it partially , but cannot create a file on the pendrive . I am ...
1
vote
0answers
184 views

AVR: Usage of Force Output Compare bits

Currently I'm dealing with Tiny2313 for my project. Timer runs in CTC (WGM12) mode so OCR1A is used to set TOP of the timer. I want to use OCR1B to generate output signal. In documentation is ...
1
vote
0answers
55 views

CS42L52 output PCM?

I have an MCU connected to a CS42L52 codec over I2S and am able to input and output sound with no problems. When I pass the input from the codec, through the MCU, and back to the codec for output, ...
1
vote
0answers
94 views

Low Voltage Piezoelectric Driver Design for Loud Output

I need help with designing a low voltage driver for a piezoelectric to output at extremely high volumes -- 120db+. I've seen rape/personal alarms do it with only 2xAA batteries. System Specs: 1) ...
1
vote
0answers
150 views

USBasp supporting PDI

My avr micro-controller uses PDI interface for in-system programming. I have USBasp programmer which programs serially through SPI interface. How can I program my micro-controller through USBasp? I ...
1
vote
0answers
541 views

STM32 Timer Internal Clock Source

As I understand, the internal timer clock source on the STM32(F4) microcontrollers can be either APB1 or APB2. However, I can't find which timers get which clock. I already found ST AN4013, which ...
1
vote
0answers
70 views

PIC24F programmed but it isn't executing

I'm new in PIC MCU. I wrote program for PIC24FJ256JA106 with TFT-320QVT and all were good, but I decided try option "Code protect". I enabled it and at that time I done mistake. I connected programmer ...
1
vote
0answers
154 views

Float calculations hangs on Kinetis K20 (arm-m4-no-fpu) when PWM interrupt is on

I will use this ARM to control Induction Motor with three-phase inverter. When the program encounters any float operations, like simple plus operation, the system hangs but the pause of debug works ...
1
vote
0answers
141 views

Atmega328 NFC cannot wake

I'm trying to communicate my 328 with DFRobot's NFC Module a while now, but I cannot wake the card. Below is my code, where I use DF's instructions on how to make the card work. I write what card ...
1
vote
0answers
113 views

Hold switch trigger delayed

I have a small battery driven, microchip controlled project where I use a rotary encoder for toggling/setting various settings. Mostly software based as that is what I'm more familiar with as of yet. ...
1
vote
0answers
127 views

Sizing Intel Hex Files prior to ISP

I've currently have an Intel Hex file that is 109kb, but with AVR-SIZE and FLIP I see that it's actually only going to take up 37,344kb of space on the chip, unless I'm making a false assumption ...
1
vote
0answers
2k views

Reversing the direction of rotation of a DC cooling fan

We usually connect a small DC cooling fan as show in the diagram. But is there any method to reverse the rotation of this fan in real time, by adding any external circuits?
1
vote
0answers
108 views

Resonance sweep Microcontroller

Any suggestions on how I can implement resonance sweeping to find resonant frequency with a micro controller? http://www.youtube.com/watch?v=VjVFKYE6Y-g
1
vote
0answers
4k views

L298 IC motor driver - how to wire and use correctly?

EDITED. I found that my supply of 3V was insufficient as there are voltage drops across the transistors. I replaced the 3V supply with 4.5V and the motor ran fine - although now my 3V motor has 2.5V ...
1
vote
0answers
272 views

PIC : EEPROM not write properly to 0xFF in PIC18F67K22 controller

I am writing values from 0x50 to 0x3ff in EEPROM of pic18f67k22. Whenever eeprom is getting full, I am writing 0xFF and then after write my data from 0x50 location. but some time eeprom is not write ...