Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
31 views

Credit card testing using iPP320 and Arduino [on hold]

I was able to connect the iPP320 and Arduino to my computer and use C# for testing different use cases of a credit card. I am using a single test card for the process. Is it possible to load ...
0
votes
0answers
33 views

Ground noise while driving bldc motor

Edited I am trying to drive 3 phase bldc motor using my controller. The controller works fine but I noticed that there is a noise in micro controller output pins. The micro controller output behaves ...
0
votes
2answers
68 views

thoughts on reading only one changing GPIO with accurate time amoung huge number of digital Inputs

I am trying to read a huge number of digital inputs (129 to 800 and maybe more) at the same time. the sampling rate should be around 500K samples per second but I only need to read one of these inputs ...
0
votes
0answers
32 views

How to read a specific port with ADC in Mplab Harmony?

I configured the ADC for 3 instances/3 analog inputs: In APP_STATE_INIT i enable and start ADC: ...
0
votes
1answer
18 views

MSP432+BLE+ Debugger interfacing

I would like to Interface a BLE to a MSP432 microcontroller in serial. The BLE has a inbulit Atmel controller. I have a firmware for BLE in keil. Intially I have flashed the firmware to BLE directly ...
0
votes
2answers
40 views

Power Failure Detection Circuit via Flip-Flop

I'm trying to create a circuit that will detect complete power failure. I think I understand what major components I need, but I'm unsure as to how to go about connecting them. My plan is to take 3....
-1
votes
0answers
20 views

How can a watchdog timer be cleared in Mplab Harmony?

Using Mplab Code Configurator (MCC) it's easy to clear watchdog timer, for example i created a project for a PIC 16F15324T and in my code i only have to call the ...
1
vote
2answers
35 views

How to read a port by a label in Mplab Harmony?

I'm more familiarized with MCC and with that framework is really easy to read a port we just need to give a custom name in ...
0
votes
1answer
21 views

Where to put main code in Mplab Harmony Framework?

When i'm doing code using MCC for example i will put my code the following way: ...
0
votes
1answer
41 views

Microcontroller Power Supplies and Power Sequencing

I am using this MCP5606S Microcontroller in my design. However, I am finding it difficult to understand its power Supplies. Then, I went to the Manufacturer website and downloaded the MPC5606S ...
-3
votes
0answers
57 views

How to Program ST Microcontrollers for Real Time Control Applications by using SIMULINK? [on hold]

I am a beginner who wants to work with STM32 microcontrollers. My field of study is mechanical engineering. My background in C language is primitive. I would like to use MATLAB/SIMULINK packages for ...
0
votes
1answer
17 views

How to do a counting of a timer configured in Mplab Harmony framework?

I'm new to harmony framework, and am trying to find how i can count timer iterations, so i'm doing a simple test. I configured the timer like this: Now i want to know if this is the correct way: <...
0
votes
0answers
12 views

How to configure the period of a timer in Harmony?

I'm new to the harmony framework of MPLAB and i'm trying to find how to do simple things like configuring the period of a timer. So i configured the pic32mx470f512l to use FRC with pll oscillator at ...
0
votes
1answer
38 views

How to toggle a pin in Harmony framework for a pic?

I'm new to pic's and the harmony framework, and i'm trying to toggle a pin from high to low and vice versa in the interrupt callback of the Timer. I configured my oscillator to operate at 32 MHz or ...
0
votes
1answer
38 views

Can an I2C switch control multiple I2C switches?

I was wondering if I am able to treat an I2C switch simply as another I2C device and use 1 switch to control more switches downstream. This picture below shows what I am trying to do.
0
votes
1answer
66 views

Manually triggered variable speed rotating system

Intro: (okay to skip) The inspiration for this idea comes from a fidget spinner kind of kinetic desk toy - MezmoGlobe I bought this recently and fiddle with it regularly, but there is a catch 22 ...
0
votes
1answer
25 views

MPLAB Harmony Configurator not working

After installing MPLAB Harmony Configurator from the available plugins in MPLAB (v5.05) i tried to create a new project but it seems that harmony location is not valid? I doesn't seem to have ...
0
votes
1answer
21 views

PIC32MX470F512L not appearing on harmony setup?

I installed Harmony plugin in MPLAB X IDE because i can't put this pic working with MCC. I was going to do a new project for this pic and when i was going to select it, it doesn't appear on the list! ...
0
votes
1answer
33 views

DPDT Switch Microcontroller

Is there a microcontroller equivalent of a DPDT Switch? I am trying to develop a product that requires remote reversal of polarity by incorporation some sort of an equivalent of the mechanism ...
1
vote
2answers
81 views

choosing crystal when tracks are very close together

This is a circuit I am having trouble with. I made 20 units with the exact same setup. Three units with this setup managed to work with 33pF ceramic caps with 20% tolerance and a crystal from Ebay. ...
0
votes
3answers
96 views

What Is the timer period of a timer of a Pic

This is causing a bit of confusion to me. I'm assuming that timer period of a timer is the time that it takes for an increment of timer. Am I correct? It works the same way for 8-bit and 16-bit timer,...
0
votes
0answers
18 views

IP request error [closed]

I made a custom board with a stm32f407 as a mcu, an external PHY ,a signal tranformer and a RJ45 conector.I'm trying to make a request for an IP from my router and for some reason it doesn't make the ...
0
votes
1answer
76 views

Embedded Software Reliability Metric is short-term or long-term in time

If I test an embedded software (and the product based on this software) today and it fulfills all the customer requirements successfully at this point in time then I can safely say that this software ...
0
votes
0answers
14 views

Low power processor with H.264 codec [closed]

I'm designing a board with Low power processor with H.264 codec. But I wonder only few options are available. Medium range: TI AM57 series NXP i.mx series Few Chinese items. High end: Snap Dragon ...
0
votes
3answers
69 views

Soldering time for HC49 through-hole crystal without damaging it

I do a lot of circuits using through-hole technology, but one part that just does not want to work perfectly every time is the HC49/S crystal even though it is installed correctly. When I replace one ...
0
votes
1answer
34 views

External bus interfacing

This lab requires us to extend the memory and I/O ports on our µPad using our EBI backpack. What I'm confused about is how the fully address decoded SRAM will differ from the partially addressed i/o ...
1
vote
0answers
35 views

Cases chosen by a number of times a button was pushed [closed]

I'm really new to this thing and I would appreciate some guidance. I have this project using atmega328p I have to test how many times light-bulb was turned on/off but that cycle have tu programmable ...
0
votes
1answer
45 views

Does the increment of a timer on pic is equal for a pic16 and pic32?

The question is because in porting code from a PIC16F15324T using MCC to a project using a PIC 32MX470F512L. There are portions of code where i have code like this: ...
0
votes
0answers
35 views

Connecting a solenoid valve to a PLC [closed]

I want to connect a 5/2 solenoid valve to a PLC to control an air cylinder. The valve has 2 wires so it works like a common motor. I just don't know how to program to do a reverse motion to close the ...
0
votes
1answer
51 views

Does Attiny13 pull a lot more current in sleep mode than Attiny85 or did I do something wrong?

First off here is the code I have tested on both Attiny13A and Attiny85V: ...
1
vote
1answer
21 views

How to use SYSTEMConfigPerformance on a MPLAB X project

I started a new project for a pic 32 (pic32mx470f512l) with MCC. And now i want to use the function SYSTEMConfigPerformance to optimize the performance of the pic. It happens that i'm not able to ...
0
votes
0answers
32 views

How to calculate a 16-bit timer overflow for efm32zg222f32 [closed]

FOURTH EDIT: Yeh I dun fukd it. I'm not sure what's going on with the tuning value for the HFRCO but at 14MHz everything works as expected. No need to randomly adjust the TOP value to get a true 1ms ...
1
vote
0answers
27 views

Where is Olin Lathrop? [migrated]

Oh god I miss him so much but he has not been online for more than half a year oh please tell me he is okay, where is Olin? Who will tell me? Where is the glorious bearded microcontroller man?
1
vote
3answers
67 views

How to look at the emitted assembly code of MPLAB X IDE

I'm using MPLAB X IDE V5.05 to generate the code to program a PIC32MX470F512L. It happens that i'm having some problems in the code and i would want to take a look ...
0
votes
0answers
40 views

Choosing the correct power supply for the controller

For my project I need a Siemens controller. I can not choose one. And the problem is not about amount of i/o pins or aviable programming blocks. I dont know which power supply characteristics will be ...
1
vote
0answers
78 views

Light up poster with audio + light/motion sensor - lend your experience to check my circuit sketch & questions [closed]

What I'm trying to do: Create a picture/poster that Plays light display within (a few optional patterns + light/motion sensor chosen via rotary encoder) Plays audio (can turn on/off & turn up/...
3
votes
4answers
1k views

Programming bare microcontroller chips

I'm an electronics hobbyist and I have done a lot of electronics projects using launchpads like MSP430G2553, Arduino and Tiva C Series, so I never faced any problems to upload code to these ...
1
vote
1answer
38 views

Configuring STM32 timer as frequency counter

I am trying to configuring one of the timer inputs on a STM32 to behave as a frequency counter for an external signal. The STM32 datasheet describes a "input capture mode" in section 17.3.6 (page 342) ...
1
vote
2answers
72 views

How to calculate instruction cycles on pic?

I want to know how much instruction cycles are each line of a program, is there a way to do that? It's important to me because i'm having a problem with the oscillator (or might be something else) ...
1
vote
1answer
43 views

What clock source is the oscillator connected at the OSC1 and OSC2 pins of a pic?

I'm connecting a Crystal SMD of 32 MHz to the OSC1 and OSC2 pins of a pic. When doing the configurations for the pic, inside <...
0
votes
0answers
27 views

Pin should be lock for sample A warning in Pic

In an ADC i'm trying to configure for a pic PIC 32MX470F512LT its giving me a warning, that like the title says, it's that the pin should be locked for sample A. I ...
0
votes
0answers
31 views

MicroSD card SPI initialization irregularities

I've implemented the start-up sequence for SPI mode on MicroSD v2 cards (using the specifications), and I've found that the SD card fails initialization at different points in the process. It often ...
0
votes
2answers
101 views

Measure voltage on 48 batteries at once using microcontroller

I am looking to design a microcontroller that can measure the voltages on 48 batteries. Some of the batteries will have floating voltages as the device is wired in a parallel string of 8 columns, with ...
0
votes
0answers
41 views

The interrupt callback happens at the calculated period of the timer in pic?

I'm trying to set the timer of a PIC32MX470F512LT to happens every 8us. But after seeing on an oscilloscope when the callback of the timer it doesn't seem to ...
2
votes
0answers
40 views

How to upload code to AtMega2560 using JTAG ICE 2.0

Background : I'm used to code in Arduino(Uno, Mega, Esp32, Esp8266). But this time i have to code directly on AVR Atmega 2560 Chip. I have AVR JTAG ICE 2.0 (like this one) and download several ...
0
votes
0answers
66 views

Is there a minimum frequency in PIC32MX470F512L?

I'm still an inexpirient and I'm configuring the PIC, through MCC (Microship Code Configurator) So i set in the MCC a TMR1: The configuration for the ...
2
votes
1answer
157 views

How to measure high DC voltage by micro-controller with an integrated approach?

Goal is to measure DC voltages in the 100-500VDC range, safely with a microcontroller (e.g. Arduino) The particular application is to monitor the voltage of a large Lithium series parallel battery ...
1
vote
0answers
28 views

How do you get the call ringing response after sending ATD from gsm module?

I have a gsm module. I want to know which AT command can tell me if the target phone is ringing or not. I want to count time between start of ringing and user response Example: atd12345 ...
1
vote
0answers
50 views

MIT vs GNU licences for Embedded system projects [migrated]

For embedded system projects which have small hardware using MCU's and sensors and use open source c-source codes. How will it make a difference if my license is an MIT or a GNU licenses?
0
votes
1answer
39 views

Small Vacuum pump driving circuit

Please take this vacuum pump datasheet for the circuit I am planing to build. Vacuum pump datasheet I like to make a simple motor driver preferably using an SMD type MOSFET. I am struggling to ...