Skip to main content

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
0 answers
65 views

STM32 and Fortran opinions [closed]

In the hope that this question will be accepted by this forum (since it is not very technical), I am asking for your personal opinion. I am a junior electronics engineer and I currently program ...
KaleM's user avatar
  • 473
0 votes
1 answer
26 views

IAR how to get the value of environment args [closed]

I would like to know what is the easiest way to get the value from the IAR's environment args such as $TOOLKIT_DIR$ or $PROJ_DIR$. I know what method uses Windows for it's environment variables, but I ...
GenGen's user avatar
  • 49
1 vote
1 answer
69 views

MQ2 Gas sensor ppm output incorrect

I wanted to create a custom PCB involving an MQ2 gas sensor and ppm concentration, and based my code on this website: https://www.exploreembedded.com/wiki/Interfacing_Gas_Sensor_(MQ2)_With_AVR I'm ...
dreece2498's user avatar
0 votes
0 answers
50 views

Help Needed: ADNS-9500 Optical Sensor Movement Detection with ESP32 Wroom

I'm currently working on a project with an ADNS-9500 optical mouse sensor and an ESP32 controller board. The aim of the project is to move the optical sensor and have the ESP32 recognise the movement. ...
A.invents's user avatar
0 votes
1 answer
59 views

Altera FLEX 8000: Extracting "bitstream" from .sof file?

I've acquired an Altera FLEX 8282A FPGA and I'd like to have a bit of a play with it. Yes, I know these are prehistoric parts, but I like playing around with old stuff. :-) I've installed MAX+Plus II ...
Tom S's user avatar
  • 183
0 votes
1 answer
59 views

MAX1415 ADC not reading voltages correctly. Incorrect setup procedure?

My device uses two of the MAX1415 dual-channel sigma-delta ADCs. I've labeled them "MADC" and "CADC" for "Measurement ADC" and "Calibration ADC". They are ...
AuFries's user avatar
  • 113
0 votes
1 answer
62 views

Is it OK to power the circuit while the programmer is connected?

I have an Atmega328 connected to an Olimex AVR programmer, and programming it works fine. Because the programmer does not supply a constant power, I also power the entire circuit from an Arduino (just ...
Bart Friederichs's user avatar
0 votes
1 answer
58 views

Damaging of SWDIO and SWDCLK pins when they are used as output/uartRX

We are developing board with LPC54616. All pins are already used, so we have to use also programming pins, SWDIO as output pin and SWDCLK as uart RX (both signals are connected to additional modul of ...
ON95's user avatar
  • 1
0 votes
0 answers
19 views

MSP430 programming JTAG

For programming MSP430 MCUs through JTAG, is this Schematic correct? I look for a reference design to make sure it will work:
Andromeda's user avatar
  • 473
0 votes
1 answer
90 views

Attempting to get a program for my PIC16F84A to work

I've been struggling for the past few days trying to get this to work right and need a professional to take a look at this and see where I am going wrong: Code: ...
JamesTDG's user avatar
0 votes
0 answers
109 views

STM32 Bootloading issues on custom PCB

I designed a gas sensor board around the STM32F030F4P6, and have been having issues boot loading. I am using the ST-Link V2 bought from Digikey, and 6 pin tag connect, and it seems that regardless of ...
dreece2498's user avatar
0 votes
0 answers
38 views

Getting "Target not found" after programming an STM32H755 using an external debugger

I used to program and debug using the USB port on my STM32H755 Nucleo-144. After flashing the code with JTAG, I can't connect the board to my PC anymore; it says "No target found". Is there ...
Varshini's user avatar
0 votes
0 answers
31 views

Programming ELM327 PIC18

I have (second hand) a modified ELM327 with 18F25K80 and a FT232, seems has been modified to be programable via USB has a jumper wire from pin 3 (reset) from FT to pin 1 (mclr) 18F, swap quartz and a ...
Rewite's user avatar
  • 1
0 votes
0 answers
20 views

How can I connect an external speaker to a Lego NXT?

How could I connect an external speaker to an NXT like the one in this video?
user avatar
1 vote
1 answer
72 views

Why is this 8051 ASM code not working?

I’m trying to implement an automated parking lot using an 8051. I’m using stepper motors to function as gates at the entrance and the exit of the parking lot that open whenever the IR sensors placed ...
Captdeadpool's user avatar
0 votes
0 answers
41 views

Communication Issue with TCA9539 on MSP430FR4132

I am trying to communicate with the TCA9539 using my MSP430FR4132, but I'm encountering issues setting the registers using I2C. I've connected pull-up resistors (10kΩ) to both the SCL and SDA lines. ...
Aswin Raj K's user avatar
1 vote
2 answers
89 views

Number of iterations in nested loop (8051)

Let's say we have this program: MOV R5, #4 H2: MOV R6, #10 H1: DJNZ R6, H1 DJNZ R5, H2 After moving the data to the registers, microcontroller executes ...
Agus's user avatar
  • 11
2 votes
4 answers
324 views

An aspiring electriconic engineering hobbyist -- How should I go about this? [closed]

I'm a full-time maintenance technician with no University education (though I did get college credit in highschool for physics and statistics 9 years ago), and I have plenty of interests I want to ...
Joshuah Elmore's user avatar
1 vote
2 answers
85 views

How to separate 4th order transfer function (Butterworth Approximation) into 2nd order using Python Control Library?

Previously I had the following coefficients in the program. In this program I want to create a transfer function of butterworth approximation (Digital Filter Design - Digital Signal Processing). ...
SKevinAR18's user avatar
0 votes
0 answers
67 views

STM32 Programming Using Infrared

I'm trying to program STM32 using IR Emitter and PT. While trying this, there is interaction between the programmer and the PCB, but since the signals rise late, I get an error before I can send the ...
harmonica's user avatar
  • 673
0 votes
0 answers
32 views

MCP4151 unresponsive to commands on ESP with CircuitPython

I am trying to control an MCP4151-103E digital potentiometer from an ESP32-Devkit-v1 running CircuitPython 8.2.7. For this task, I have the following code. This has been adapted from this Github ...
toxicantidote's user avatar
0 votes
0 answers
145 views

PIC16F1829: how to read device ID using LVP mode?

I am stuck. Datasheet, programming guide. LVP mode. I see how to write to area 0x8000-0x8008 using "load configuration" command, but I do not see how to read this area. It is not a part of ...
Anonymous's user avatar
  • 7,120
1 vote
2 answers
185 views

16 MHz crystal not oscillating

I recently designed a custom board in KiCAD using an ATMEGA32U4, I had JLCPCB solder on the USB-C connector and MCU, however I can't get it to boot load. I referenced another design that works (I made ...
dreece2498's user avatar
0 votes
0 answers
84 views

PICkit 5 giving -109 error when programming PIC

I have a PICkit 5 which I think is correctly connected to a PIC16lf18425. Whenever try to program it I get error -109 I just have a 0.1 uf electrolytic capacitor between GND and VDD and a 10k ohm ...
doge guide's user avatar
0 votes
1 answer
85 views

How to calculate decibel from digital MEMS microphone

I built 3x3 microphone array using ICS-52000 MEMS microphones and Teensy 4.1 MCU to get data from those mics. I also wrote code in MATLAB to get data via serial port from Teensy. ICS-52000 are 24 bit ...
erysvh's user avatar
  • 41
1 vote
1 answer
72 views

Runtime display for last 24 hours

I'm working on a BRX PLC connected to a C-More HMI. I'm using Do-More Designer to write ladder code. I'm looking for ladder logic that will give me the runtime of a circulating pump in the last 24 ...
Geo's user avatar
  • 45
3 votes
3 answers
416 views

How to display real time data on analog scale if maximum send rate is 50ms

I have nextion display on witch is positioned analog scale. It needs to present Amps from device which mcu monitoring. Problem is that current can grow by several tens of amperes in just several ...
macola995's user avatar
  • 109
3 votes
1 answer
88 views

What would be a good way to program an MCU in a mid sized (few hundred) batch?

I'm looking to have a few hundred boards made and they all have an MCU on them, that will need programming. With large scale production, it seems the way to go is usually programming the IC/MCU before ...
Gorbit99's user avatar
1 vote
0 answers
125 views

STM32U5 SCL line stays low and hangs

I have two STM32L0 (slaves) and STM32U585 (master) MCUs. I have no issue when Slave transmits data to Master, but if Master transmits signal to Slave, it sends all the 9 clock pulses with address bits,...
amir_sh's user avatar
  • 21
1 vote
1 answer
67 views

SC14430 Microprocessor programming help

I have a SC14430 Microprocessor, and I want to know what software I should use to read and write to it. It has the standard SRX STX GND pins. I have attached a couple of images for reference. Thank ...
Khalid Siddiqi's user avatar
-1 votes
1 answer
168 views

Is there a way to make the Verilog port declaration based on a macro value?

Basically, what I am trying to achieve is that, There is a macro REG_COUNT. Based on the value inside the macro, the N number registers get initialized. But I also want to create dedicated output ...
Vasant Joseph's user avatar
0 votes
0 answers
96 views

Graphical LCD With Atmega64

I have ATMEGA64 and LCM240128, The wiring is as below: And my code is ( I'm using codevision): ...
Mojtaba Miraki's user avatar
0 votes
0 answers
64 views

Identifier whose declaration cannot be found. TRISbits

Currently trying to program a PIC32MZ2048EFM144. I'm new to PIC programming, and I'm currently attempting to set pins J7, 3, and K7 as outputs and set them to a high state. However, I'm encountering ...
Sean 's user avatar
  • 21
1 vote
0 answers
35 views

Flashing Atmega328p bootloader with connected SPI device in parallel

I'm designing a PCB with an ATmega328P (SMD) and two ADS1118 ADCs (also SMD) that will be connected to the ICSP pins of the ATmega328P. Will these two ADCs, in parallel with the MCU, pose a problem ...
electronics's user avatar
0 votes
0 answers
81 views

ESP32 Dual Core

Does anyone have experience with using the second ESP32 core? I searched the internet but I only came across two loops that run independently of each other. I would need to be able to call a function ...
Kabl62's user avatar
  • 1
0 votes
0 answers
68 views

problem with switching from arduino mega to ESP32

I bought an ESP32 to try instead of an Arduino Mega. But I ran into a problem with my program. The program has the function of controlling the stepper motor through the LCD display and it runs without ...
Kabl62's user avatar
  • 1
1 vote
0 answers
220 views

avrdude OS error: file not readable invalid argument

I decided to get into the world of "naked" microcontrollers (started with Arduino), found an ATtiny 85 among my parts and an USBasp and decided to first make a blink sketch. Did everything ...
Post Fah's user avatar
0 votes
1 answer
88 views

STM32F030 I2C: Avoiding NACK

I am trying to port my I2C code from STM32F103 to STM32F030. Everything works fine with writes (writes to an eeprom), but when I try to read from an EEPROM (first write transmission with memory ...
sx107's user avatar
  • 1,109
1 vote
0 answers
38 views

PLD programming language panorama

what are the current options to program the PLD? I'm looking for a modern, supported, open source if possible, solution to program such devices.
ozw1z5rd's user avatar
  • 235
0 votes
0 answers
95 views

Is it possible on STM32 to detect if an event triggered?

According to Stm32 Event and interrupts , STM32 events are mainly for controlling other peripherals. Is there a way on the MCU itself to detect if an event fired? That is, I don't need to interrupt ...
SRobertJames's user avatar
  • 1,119
13 votes
9 answers
5k views

What's a good way to assert in embedded microcontroller code?

It's good practice to use assert to test that things are that we expect them to be. Likewise, it's good to check that calls worked as expected and didn't error. In ...
SRobertJames's user avatar
  • 1,119
-1 votes
2 answers
198 views

What's a good way to learn microcontrollers without magic? [closed]

I know software (C, C++, POSIX, assembly) and would like to learn microcontrollers at a low level, down to digital circuits. I don't want to use any tools that obscure the internals, such as Arduino, ...
SRobertJames's user avatar
  • 1,119
0 votes
1 answer
81 views

How to program and download a file to STM32F746-disco board?

I'm trying to program my touchGFX project and download a music file to this board without much luck. The touchGFX project works fine but I'm testing the sound part now. I managed to extract the ...
Rodo's user avatar
  • 1,130
0 votes
0 answers
39 views

What is the Arduino code for 433MHz RF TxRx pair connected to one Arduino UNO board to transmit "Hello" text from the transmitter to receive?

I wrote 2 codes but no one shows anything on the Serial Monitor. Please correct my code. 1ST CODE ...
Ship's Tech Talk's user avatar
0 votes
1 answer
188 views

Can I program Arduino Uno R4 On STM32 IDE?

The microcontroller of Arduino Uno R4 is Renesas RA4M1 (Arm® Cortex®-M4). -So can I program Arduino Uno R4 On STM32 IDE? -Can I use STM32 library for Arduino Uno R4? Thanks!!!
Đức Chung Nguyễn's user avatar
0 votes
0 answers
107 views

Why is this ST-link V2 not pairing with the STM8s MCU?

I had connected this circuit like in this schematic using the ST-LINK V2, however I made some changes, I connected the 2 and 3 pins (OSCIN, OSCOUT) to 12pf capacitors (I have no 20pf or higher) and ...
Hazardous Voltage's user avatar
0 votes
1 answer
164 views

Error while uploading hex file in DSPIC33CK32MC102

I am using DSPIC33CK32MC102 SSOP package, I have code and its hex file ready. I made the connections for the controller those are as follows: Pullup resistor of 5.5 kΩ for MCLR pin and 100 Ω between ...
user346235's user avatar
0 votes
1 answer
157 views

Which is better for programming STM32F103C8T6? Using Arduino IDE or STM32CubeProgramming? [closed]

STM32 is can programming using Arduino IDE, but I am confusing about which is better for programming this device, and what is the deficiency about this two software for programming STM32. (I am ...
HumbleBee's user avatar
3 votes
1 answer
2k views

How to program a CH32V003 MCU without using WCH link

I recently came across the CH32V003 MCU and wanted to embed it in my projects. To program, I was advised to use the WCH link but my standard port I use to program the MCUs is an USB port. So if I need ...
Nsj09's user avatar
  • 31
0 votes
0 answers
418 views

PID control with PIC microcontroller

I'm relatively new in C program ( I'm using MPLAB X IDE XC8 ), and first time trying to make a PID control, using a PIC16F15223 This is what I want to make: The pic has an analog input that reads a ...
samuel mattio's user avatar

1
2 3 4 5
17