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
-1
votes
1answer
16 views

Which debugger should I use to flash: RTL8710AF wifi SDK by Keil or IAR IDE

I just bought a Realtek wifi module RTL8710AF and also found its TCP/IP stack Using IAR Workbench but I am confused in choosing the right debugger and its connection to flash my application program.
0
votes
1answer
41 views

Microcontroller default state problem

I have a Microcontroller - S32K116 - 48 Pin IC. - Datasheet - Reference Manual I have a Voltage divider (for input voltage monitoring purpose) connected to the Pin 16 (PTC3) of the Microcontroller. ...
0
votes
0answers
9 views

Issues with ISP Mode LPC 17XX

I have custom board utilising an LPC 1778 and I'm having issues entering ISP mode, or at least I think I am. I am using the ISP pin and the reset in to enter ISP mode. By holding the ISP pin low and ...
0
votes
0answers
16 views

Need advice what method or algorithm to use for calculating topology matrix for node voltage method in matrix form [duplicate]

I want to make a program that will calculate everything in a scheme with the node voltage method in matrix form. The problem is I don't know really how to do this. I want to translate this scheme with ...
0
votes
0answers
30 views

Arduino issues on reading inputs from some buttons

I'm building a sort of joystick with atmega328p: For the moment, I have only written the code to visualize on the OLED display if we press a button or move the joystick. Let's focus on the four ...
1
vote
1answer
199 views

Programming a Microcontroller - JTAG and SWD

I have this Microcontroller - S32K118 64 pins. I want to load my software datafile into the microcontroller using the debugger mentioned below. I am using this J-LINK Segger BASE debugger model to ...
0
votes
2answers
39 views

Flash Not Erasing

I'm trying to erase a single Flash page with the help of the standard HAL library, but it does not clear the page. I've never done that before. More details below. Resources: The used microcontroller ...
4
votes
4answers
753 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
91 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
59 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
93 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
64 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
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
77 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
42 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
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
3answers
105 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 ...
2
votes
2answers
72 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 ...
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
38 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
87 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
55 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
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
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
134 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 ...
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
34 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
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
55 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
94 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 ...
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. ...
0
votes
1answer
301 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, ...
1
vote
1answer
215 views
0
votes
0answers
54 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 ...
0
votes
1answer
60 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
83 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
vote
2answers
99 views

ATTiny1616 writing the SUT fuse in SYSCFG1 with AVRDude Command Line

I want to write the SUT fuse in SYSCFG1 to be 0x0 for 0ms startup time as per page 40 of the datasheet: http://ww1.microchip.com/downloads/en/DeviceDoc/ATtiny1616-3216-DataSheet-DS40001997C.pdf I am ...
7
votes
5answers
3k views

How can I estimate the speed of this code section for this microcontroller?

I'm using an ATmega328P to read the state of a digital input by using the following code section written in C (there can be alternative ways, but this is an example). ...
0
votes
0answers
50 views

ESP8266 auto-program circuit with DTR only and without RESET pin (turn off>on VCC only)

In the NodeMCU board, there's a very usefull auto-program circuit to avoid pressing buttons or change wires. This is the schematic: I have some ESP8266 already soldered on PCB and they does not has ...
0
votes
1answer
62 views

Writing high bytes in Intel Hex file to PIC 16F886 using MiniPro TL866A

I'm a newbie trying to write an Intel hex file to a PIC 16F886 using a MiniPro TL866A. When I try, I get the message: ...
0
votes
1answer
116 views

Stand-alone flashing of STM32

I'm developing a fixture tool to test a custom PCB with ST Bluenrg1 (STM32 M0 core + bluetooth). This fixture tool has its own MCU working at 5V. I would like to flash automatically first previous ...
5
votes
2answers
245 views

How does programming FPGAs and CPLDs differ? [closed]

I am learning to program programmable devices using a XC9572XL CPLD. I would like to know how much knowledge from programming CPLDs (in Verilog, VHDL) will be transferable to programming FPGAs (not ...
0
votes
0answers
35 views

Sending an arduino program via bluetooth

I have a bluetooth equipped Windows PC. I also have a Bluetooth Bee Standalone (BT integrated with microcontroller). Does anyone know how to send a program from the PC to the Bee and possibly start ...
0
votes
0answers
40 views

Integrating USB C Power Delivery into a PCB [duplicate]

I am aware of USB C Power Delivery trigger boards that uses PD protocol to output the desired voltage from a PD source. But I was curious if it would be possible and feasible to design and integrate a ...

1
2 3 4 5
13