Questions tagged [programming]

Questions about programming parts (FPGAs, Flash, etc.) Many software programming questions should be asked instead on Stack Overflow.

Filter by
Sorted by
Tagged with
4
votes
4answers
717 views

Possible to buy Atmega328p with programmed Flash and EEPROM?

I've recently upgraded my old project that goes to mass production (a pair of thousand pieces, pretty niche). Previously I used DIP atmega328p, which were manually programmed in China. I sent them a ...
0
votes
2answers
82 views

Is it feasible to create computer-like hardware designed to execute a specific algorithm? [closed]

Computers take a set of instructions, and execute them sequentially really really fast. The number of sets of instructions they could be given is vast. However my rudimentary understanding of ...
0
votes
0answers
57 views

I am not able to control speed of a DC motor

I am making an Arduino project in which I have to control speed of DC motor with an ultrasonic sensor. I have written an Arduino program to do this work but unfortunately my motor only rotates in ...
0
votes
1answer
80 views

Checking the color of the pixel in VHDL

I'm trying to switch the colors of a 4-bitmap image using VHDL . In a 4 bit-image . Which means we have these types of colors . ...
1
vote
1answer
91 views

JTAG Voltage compatibility

I am having this microcontroller - S32K142 64 pins 5V core voltage. I am using the this J LINK 20 pin JTAG Debugger. Using JLINK Flash Lite software tool in Windows PC to program the microcontroller ...
0
votes
0answers
37 views

STM32L011x3/4 TSSOP14 pinout schematic

Can someone who understands the bad subject in english can fix it schematic where exactly is the error ST-Link V2 debug programs error
1
vote
1answer
61 views

Unable to find COM for STM32

I developed a PCB for a project using STM32WB55 and after getting it manufactured I am trying to connect it to the computer using a Micro USB cable in order to run the code on it. However, when I ...
0
votes
2answers
131 views

Reading data from Pressure Sensor

I am having trouble reading data from a pressure sensor using MATLAB. The pressure sensor is connected to an NI 9219 Analog Input Device. Firstly, i tested the device to make sure it is working using ...
0
votes
0answers
16 views

Are there command options for Digilent Adept software?

Recently we started using a Digilent Genesys2 board to emulate our SoC design. To program and control the board, we are using the Adept utility on a Windows 10 PC. This utility allows us to download ...
2
votes
1answer
76 views

Manual EEPROM Programming Problem

I have a 28c256-25 EEPROM that I have created a breadboard circuit to program. The datasheet says after the address is set and the data is put on the I/O pins, a low pulse on /WE while /OE and /CE are ...
0
votes
1answer
39 views

continuous rotation of servo problem

I am making a solar tracker using MG995 servo motors. The problem I am facing is that as soon as I run the program the servo starts continuously rotating. Can someone please help me to figure it out?...
0
votes
1answer
53 views

The choice of method for constructing hardware monitoring and diagnostics

created a weight scale device. I chose the software method for diagnosing my system. How can I implement it? X1 is a load cell 5000 grams DA2 HX711 D1 Atmeaga328 D2 shift register H1 lcd display ...
0
votes
1answer
235 views

How to write more than one page at once in Winbond W25Q32JV

I am using Eclipse IDE for firmware development. I am using Quectel MC60 module with Winbond W25Q32JV (4 MB memory). The thing is that I am able to read/write single page. I am facing issue with ...
0
votes
1answer
28 views

TIVA TM4C123G Driverlib Function Question

I have a question about how to use a basic GPIO function from the TIVA driver library to set an output pin high. See the below image for more detail. The red underline on the code on the left hand ...
0
votes
1answer
64 views

How to detect in the code (Not have to design any extra hardware) if a (peripheral) PCB has been inserted/ plugged/ interfaced to the main PCB?

I have a main PCB with a microcontroller on it with lots of connectors on it to connect to many other (peripheral) PCBs which have sensors and report data to the MCU on the main PCB. I wanted to ...
1
vote
1answer
123 views

How to figure out how much time you have for writing to flash when voltage source breaks down?

I try to figure out how I can make sure, that my controller (STM32F030K6) is always able to save a 16 bit integer to the flash when the power is breaking down rapidly. This controller has an Analog ...
1
vote
1answer
109 views

Raw programming of an Altera FPGA

I have an Altera Cyclone IV FPGA (for ie) and my question is: is it possible a raw programming of the FPGA? Is it possible to set "manually" the gates for making experiments? Thank you
3
votes
4answers
4k views

GUI library for HMI Cortex M

Hi I am basically using cortex m3 series of processors for our application. I am looking for some GUI library that can be used for HMI. Is there any GUI libraries available? I recently heard about Qt. ...
1
vote
3answers
100 views

How to leverage CAN bus Mailboxes in my embedded systems?

I don't understand how to leverage CAN bus Mailboxes in my embedded systems. I think I don't use them properly because I don't understand the problem they are trying to solve. Here's a simple example ...
-1
votes
1answer
27 views

JAWBONE NERD dongle => Normal dongle [closed]

I have a JAWBONE NERD DONGLE which is specifically connectable to Jawbone Icon. I'm trying to find a way to turn this into a normal dongle. I am not asking you to make the program; just please tell me ...
1
vote
1answer
328 views

Programming of ADC in PIC12F675: Not Working Properly

I'm new to embedded systems and I want to program a PIC12F675 for a project. So, the idea is that there is a switch. If the switch is off, the microcontroller normally outputs a clock signal, which ...
2
votes
2answers
67 views

SAMD21 SERCOM / UART problem: cannot enable RX and TX

I've been trying to set up a USART on an ATSAMD21E18A-MU and have been running into issues. Currently, I've narrowed the problem down to the fact that ...
0
votes
1answer
715 views

STM32 Input capture PWM frequency measurement problem using HAL

I'm trying to measure time passed between two external interrupts generated by rising edges of a PWM signal (generated using a IC 555 timer). Point is to determine the frequency of the signal. I'm ...
2
votes
1answer
455 views

How can I program GALs on a shoestring budget?

GALs may be obsolete technology, but they're still readily available, and are dirt cheap. For a hobbyist like myself, they're ideal for small projects that need something a little faster than a low ...
1
vote
1answer
84 views

PIC Alternate Pin Function for PWM

I am using a PIC12F1571 which have 3 PWM pins and two alternate PWM pins. What I want to achieve is to use the 3 original PWM pins and the switch to an alternate pin in software in order to get a 4th ...
0
votes
2answers
1k views

How to program 89C52

I am new to this site. I am now working on microcontrollers. I successfully burnt hex file to 89S52 using arduino as a programmer. But I want to program 89C52 as this is the cheapest atmel ...
0
votes
2answers
34 views

Voltage controlling a SMPS via a potentiometer by Arduino

I have started a new project. The idea is that in a SMPS we will have the potentiometer at the back so that when we vary the pot the output voltage will change. We are currently doing it manually, but ...
-1
votes
1answer
62 views

Can we program and debug STM32F401C via SWD interface using STM32 Cube IDE and STM32CubeMX?

I am planning to use STM32F401C microcontroller for my project, so I am in the process of gaining knowledge on it. I am planning to use the SWD interface to program as well as debug the ...
0
votes
2answers
77 views

Can you turn off usb protocol and use the USB port as a regular serial port?

I am trying to make my pic16f84a micro controller communicate directly to my computer without a uart to usb bridge but I have been told that the way usb is handled wouldn’t allow me to do that with ...
0
votes
2answers
54 views

Can an ATMega328p be bricked such that it cannot be programmed but still works?

I cannot update the program on my ATMega328p-AU (with the old version of the Arduino nano bootloader burnt to it). Oddly enough I can still talk to the program running on the uC (query and read out ...
0
votes
2answers
59 views

Can you program a micro controller to be a uart to usb bridge?

From what it seems like, uart and usb are just two different ways of digital communication so it seems like if you just program a micro controller to accept uart through a couple io pins and put out ...
-1
votes
4answers
123 views

Can you connect a microcontroller to USB without USB built into the chip?

I have a microcontroller that I don’t know if it has USB capability built in but I don’t have the money to get one that does. Is there any way of either software to directly read an IO pin or use ...
6
votes
2answers
4k views

Why does my ATtiny13 report wrong device ID?

I am using an Arduino (with ATmega168) as an ISP programmer to program ATtiny13. When I try to do this, avrdude reports: ...
0
votes
0answers
17 views

time step too small error in protus

I simulated two triangular wave using 555, then I make shifter circuit to shift negative part of two signals to positive , to can use it in arduino, but time step too small error appear. So what can I ...
0
votes
1answer
33 views

Compiling a project without .uvprojx in KEIL

I am learning keil. And I want to compile a project that I found in GITHUB link here. But some of them doesn't include .uvprojx file. So I decided to create an empty uvision project and coppied all ...
0
votes
1answer
103 views

ATMega32, PetitFS, writing measurements to file

I'm trying to write measurements from external sensor to the file (lets say 1 per second). I'm using ATMega32 and PetitFS. At this moment I'm able to write one measure: ...
0
votes
0answers
30 views

How to Select Prony Method Order?

I'm implementing a Prony decomposition to analyse power system signals in python. I think the code is generally working, but reconstructing a signal from the decomposition shows that it's not "perfect"...
0
votes
1answer
53 views

Random Values Gained From Sound Sensor

simulate this circuit – Schematic created using CircuitLab I am currently trying to test my sound sensor, before I hook it up to a bigger project. I have changed the code from digital to ...
0
votes
1answer
91 views

SRAM and D-flip flop instead of transistor

I have read about the internal structure of SRAM and we need 6 transistors to store 1 bit. But what bothers me is why can't it be made using D-flip flops instead of going deep to transistor-level. It ...
4
votes
2answers
5k views

MCU programming - C++ O2 optimization breaks while loop

I know people says code optimization should only bring out the hidden bug in the program, but hear me out. I am staying on a screen, until some input via an interrupt is met. Here is what I see in ...
0
votes
1answer
2k views

10x10 RGB LED Matrix Multiplexing with Shift registers Bit Angle Modulation

I've build a 10x10 RGB LED Matrix. The LEDs are connected in rows and columns. That's 40 pins (30 for RGB, 10 for GND). I got myself five 74CH595 ICs and soldered everything together. I also added a ...
0
votes
1answer
256 views

STM32: I2C Master does not generate START bit

I am programming Blue Pill stm32f103c8t6 mcu, and I am having troubles implementing I2C driver for it. I have tried one I2C example from one site, then tried to implement it on my own by datasheet, ...
0
votes
0answers
20 views

PIC32MX460F256L connection concern

I've recently aqquire a board which have an embedded PIC32MX460F256L of a project and working on. Nonetheless I'm not being able to connect to connect the MCU to my desktop even when I used MPLAB ide. ...
29
votes
8answers
5k views

Why do we need a bootloader separate from our application program in microcontrollers?

Why do we need a separate program in the same flash program memory of a microcontroller, specifically STM32F103, which is called a bootloader? What is special about it to keep it separate from the ...
0
votes
0answers
50 views

Wireless serial programming without the need to press a button to program it

After a long play, I made this adapter to be able to program a Pro Mini wireless via BlueTooth. The long play wasn't the adapter but the settings of the BlueTooth module (baudrate is fixed and need to ...
2
votes
2answers
10k views

STM32F1xx HAL UART Recieve

I am trying to send and receive data to and from an STM32F1xx. I have got the STM32 to successfully send data back to the computer. I did that using the code below. ...
0
votes
1answer
59 views

Digital Root Locus in Scilab

I have the following digital plant: \$G(z)=\cfrac{z+1}{(z-0.3)(z-1)}\$ I want to use root locus to design a system with: (1) position error=0; (2) overshoot \$\leq 10\%\$ (3) settling time \$\...
0
votes
1answer
75 views

Writing a (signal level) micro-controller simulator

Last year, I created a circuit simulator in C# based on Quics. I split the project into front-end (written in C# WPF) visual editor to create and edit the circuit elements, and back-end (written in C++...
0
votes
1answer
81 views

PLC ST programming

I have a mathematical model of two dynamical systems which I need to implement in PLC. But I don't know how to implement differential equations in structured text language. Any suggestions on that ...

1
2 3 4 5
13