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
0
votes
0answers
34 views

How to write the algorithm for counting of coil in a machine on basisof sensor [closed]

I am stuck with two questions. I need to write the algorithm for generation of a coil on my sensor basis; i.e, if the sensor is on and the force is greater than 10kN and speed is greater than 2 m/min,...
0
votes
0answers
27 views

Pro Mini wireless programming with auto start (reset)

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
50 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
66 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
69 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 ...
0
votes
0answers
31 views

How can i get a new string from other strings without simply concatenating them, in C programming? [migrated]

I need some help in C programming, please. I want to generate a new string from other strings without using concatenation functions or crypto algorithms (md5, rsa, aes, sha256). Specifically, i want ...
1
vote
2answers
54 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
14 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
46 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
94 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
224 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
29 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 ...
0
votes
1answer
51 views

ESP 01: Sketch uploading but not running

I have this ESP8266 I've been trying to get to work with a USB to TTL converter. I can flash the code through the Arduino IDE to the ESP8266 and it supposedly succeeds, but the ESP8266 isn't running ...
0
votes
1answer
52 views

What commands in assembly cast value from hexa to decimal when they are called?

how can I know if a command is treating an immediate as a decimal or as a hexadecimal? For e.g div casts the values into decimal before it makes the arithmetic division: ...
0
votes
1answer
66 views

Atmega328 Project

I want to make a sound system circuit using Atmega328. I want to connect a memory port for store sound files, If I use a single USB, Can I use this single usb for both file transfer to memory and ...
0
votes
3answers
97 views

How do I use multiple GY-521, I2C sensor with Arduino?

I'm working on an Arduino robotics project that requires I find the position of 12 different angles (I'm making a walking scale model of the Star Wars AT-AT and need to measure the angle of three ...
2
votes
2answers
229 views

How to use structures in 8086 (MASM)

Sample program to add two numbers using structures - ...
0
votes
1answer
47 views

MC705C8ACPE chip

I have a few old mc705c8acpe chips and I would like to know how to program and use them. I would like to control an lcd display, (20x4) with them. All I could find about them was they are programmable ...
1
vote
1answer
99 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
1
vote
2answers
154 views

Is a CPU declarative?

I know that this might seem like a stupid question, because declarative is not really an electrical term. I'm having a discussion (argument) with someone who is a functional programming fanatic, and ...
2
votes
3answers
2k views

How to make a PCB based on ATtiny easily updatable by end users?

I've made a prototype PCB containing an ATTINY 4313: Each time I want to change the program, I upload it with an Arduino used with the "Arduino as ISP" sketch. If one day I sell such a module to ...
0
votes
2answers
96 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 ...
4
votes
2answers
135 views

Back branches in code

While reading this file on software hazards this slide says: "No Back Branch in the Code" I wonder what does it mean? Normally when we write code in C-language then we don't actually do branching ...
0
votes
2answers
497 views

Where does the SWD header in this schematic connect to the microcontroller?

Edit: better quality schematic I'm designing a PCB that includes the STM32f103C8T6 and I want to program it via SWD (with the ST-Link v2 USB connector). I'm using the Blue Pill dev board schematic (...
1
vote
1answer
74 views

Periodic timer not working as expected on TM4C123 MCU

I am starting to learn how to use timers/interrupts on the TM4C123 evaluation board (TM4C123GH6PM MCU). In this example I am configuring a timer to create 1 second delays to toggle an on-board LED on ...
1
vote
2answers
176 views

Basic C Programming Question On Microcontroller

I think this question is ok in the electronics stack and not the programming stack (I hope). I have a simple code written in C, on a TM4C123 evaluation board. It uses the two on board switches to ...
1
vote
3answers
111 views

Help with I2C Communication

I'm trying to learn how to program a battery charging IC (BQ24193) via the I2C communication protocol. My goal is to write the correct values to it in order to gain the proper charging input and ...
0
votes
2answers
144 views

Can I program an MCU directly from USB if it supports USB? [closed]

If a microcontroller has USB functionality, can I program it directly from a USB port? Can I design the PCB without a USB to serial converter? What are the precautions I should take? The example that ...
1
vote
0answers
116 views

Generate XCF file for Lattice Diamond from command line

I am writing a Makefile for Lattice Diamond and have come as far as to cover all steps from synthesis to bitfile. To program the FPGA (a MachXO3L in my case) I looked for a command line tool, and ...
0
votes
2answers
121 views

Mecrisp-Stellaris Forth on TI Tiva C LaunchPad

I'm currently trying to load mecrisp forth on a spare tiva c series launchpad (TM4C123) board I have at home and am not having much success. I'm an electrical engineering student and while I've ...
3
votes
3answers
776 views

Programming of ICs in general (MCU / FPGA / Serdes IC) [closed]

I have a general basic question. Most of the Integrated circuits (apart from power IC) that are used in applications (Data transmission/communication IC) require some sort of programming or ...
0
votes
0answers
36 views

atmega328p is not detecting on USBasp programmer after verify 0 error?

I was trying to burn my atmega328p board which is designed for some wireless application. The ICs atmega328p, esp8266 12f, and ADM7171 are using the same Vcc. Here the Power supply is connected to ...
0
votes
0answers
61 views

Can't program STM32F4

I am really confused and helpless. I made a custom PCB with the STM32F446VE (LQFP100) chip and got it programmed (SWD). After that I made a second PCB where I wanted to solve some Problems regarding ...
4
votes
3answers
941 views

Interrupt control in STM32

I am trying to learn about STM32 programming. I started to read some references before start the programming. I am currently reading this ST presentation. It says: When an interrupt request ...
0
votes
1answer
43 views

Flashing firmware onto NXP QN9020 via SEGGER J-Link

Here I am attempting to flash the firmware using SEGGER J-Flash Lite. Below is the ouput when attempting to connect via the SEGGER J-Link Commander. ...
9
votes
2answers
1k views

PIC12F675 GP4 doesn't work

I'm using a PIC12F675 for a project, and everything works fine except one thing. GP4 does not work as digital IO. I've looked at the configs and the code a lot, but couldn't find anything. Config: <...
0
votes
0answers
80 views

How to get analog input using PIC12F675

everyone. I'm new to embedded systems and I want to program a PIC12F675 for a project. I have most of the code figured, and there is only one thing left. It's the analog input. I tried some tutorials,...
1
vote
1answer
218 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 ...
28
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
1answer
48 views

PIC16F Byte Shift - Assembly Code

Need to shift 3bytes each in RAM buffer to the next 3 RAM locations in a circular manner. The below code is ok, but is there any compact method to do it? ...
-1
votes
2answers
139 views

STM32F4 series: what does the '->' operator? [closed]

Reading some C files related to programming an STM32F4 series Arm controller, I found the following instruction: ...
2
votes
1answer
206 views

How to program STM32f411RE chip?

I've developed a prototype using the STM NUCLEO (NUCLEO-F411RE) board and now that I am happy with design I am now in the process of testing everything together on my own PCB. All the other components ...
0
votes
0answers
16 views

Where to find StdPerieph Library for SPL programming with Nucleo-F746ZG?

I want to start SPL programming with Keil software. I did not find the StdPeriph Library for Nucleo-F746ZG board. Where to find the library on the ST website?
0
votes
1answer
98 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 ...
3
votes
4answers
2k 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
3answers
127 views

int functions with no return statement

In a course I am taking on embedded systems, I program LPC1768s which are based on ARM using C. The main functions are always of int return type. However, there ...
0
votes
1answer
412 views

STM32 USB programming using the OTG interface [closed]

I'm new to ARM based STM32 controller. The Controller which I'm using STM32F427VIT6. It has USB OTG FS interface where I need to program it using the USB interface. Is it possible to program or I have ...
2
votes
1answer
78 views

Wireless SWD interface

Is it possible to have a wireless SWD interface with a simple Data and clock line like the cheap STM32 ST-Link clones. My initial, and flawed, idea was that I would have an ST-link plugged into the ...

1 2 3 4 5 12