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 [programming]

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

0
votes
0answers
25 views

How to program aliexpress Xilink X-SP6-X9 FPGA? [on hold]

I am new to the world of FPGA's. I just bough a Xilink X-SP6-X9 (Spartan 6) board on aliexpress but I don't know how to program it. I got this one: https://aliexpress.com/item/32665068263.html?spm=...
0
votes
3answers
59 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 ...
1
vote
0answers
53 views

What are the ways to automate work of an electric motor? [on hold]

I need to develop a system which can make an electric motor to run for 3 second and run reverse for another 3 second and do this cycle for continuously and automatically for days. The motor should be ...
-3
votes
1answer
43 views

What is the corresponding MIPS code? [duplicate]

Assume that variables f, g, h, i and j are assigned to registers $s0, $s1, $s2, $s3 and $s4, respectively. Also, assume that the base address of the arrays A and B are in registers $s6 and $s7. ...
0
votes
1answer
41 views

STM32 USB programming using the OTG interface [on hold]

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
26 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 ...
0
votes
1answer
41 views

ATTiny167 USB Programming

On Aliexpress I am finding many cheap development boards with ATtiny167 and a USB connector. From what I can gather these boards permit USB programming through USB emulation. Can anybody point me to ...
0
votes
1answer
20 views

Using port 0 in AT89C52 without pull up resistors

So at my university professor gave us following scheme to program this double 7 segment display on the right. At start I tried to simply adress it using P0=(someData) although it didn't work. Then I ...
9
votes
4answers
2k views

FPGA - DIY Programming

I've been programming microcontrollers for a few years now, and I've just discovered FPGA's after taking a digital design class. After doing some research into different FPGA's, development boards, ...
5
votes
2answers
680 views

Bulding a physical calculator from scratch [duplicate]

As you can probably tell I am relatively new to the electronics scene and I'm rather stuck on a project I'm doing for school. I am on my second year of an Electrical engineering degree, tasked to do ...
0
votes
0answers
118 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 ...
0
votes
2answers
87 views

Lattice LCMXO2-256HC-4SG32C CHECK_SECURITY_PROTECT_KEY error

Trying to progamm LCMXO2-256HC-4SG32C with this ebay progammer. The programmer works fine with LCMX02-1200HC-4TG144C, but with LCMXO2-256HC-4SG32C it gives me the following output: ...
0
votes
2answers
87 views

8051 microcontroller problem to find execution time of part1 for a given code

For the below mentioned 8051 assembly code: Time elapse: MOV R0,#100 Part 1 \$ \quad \, \, \,\,\$ : MOV R1,#50 Part 2 \$ \quad \, \, \,\,\$ : MOV R2,#248 Part 3 \$ \quad \, \, \,\,...
-5
votes
2answers
61 views

What is the purpose of this statement in Verilog?

I see syntax quit similar to this very frequently: 4'd0 Sometimes it is associated with an assign statement: assign S0 = 2'b00; I tried searching online however I could not find any sources.
0
votes
2answers
61 views

PIC12F675 micro controller programming

I want to use PIC12F675 to control a relay such that when a switch is pressed, it should generate an output signal which should be ON for 2 seconds and then OFF for 15 seconds. This should continue ...
0
votes
2answers
83 views

Programming of Microcontrollers and other peripherals [closed]

This is a question based on the theory which I am reading and related to one design which I am trying to understand section by section We are having microcontrollers and some peripherals are ...
0
votes
0answers
51 views

AVR ATmega328 low fuse wrtiten and issue

I am using an Arduino Uno as the hardware programmer together with avrdude as the software programmer for flashing an Atmega328. I have noticed PB0 was set to ...
0
votes
0answers
39 views

Programming AT89LP52 microcontroller like an AT89S52

I'm trying to run my code on the new AT89LP52 chip which Microchip (A.k.a. Atmel) believes can be a direct replacement for the AT89S52. I am able to program the AT89S52 with my programmer and ...
0
votes
1answer
62 views

SPI programming flash chip(s) - connecting HOLD and WP pins

I am trying to learn with SPI programming and have started with this guide using a Beaglebone Black. I have one DIP8 package connected via breadboard for testing, and another SOIC8 package on-board ...
-1
votes
1answer
61 views

How does G-code determine what pins I used to set CNC motors at? [closed]

I want to develop a simple C# application to control a self-made CNC machine using Arduino Uno. I want to use G-code to accomplish that. Now what I don't understand is how G-code is interpreted in ...
4
votes
1answer
125 views

JTAG trace length affecting programming ability

I've recently had a design made that requires a programming port to be located quite far from the device I'm trying to program. This has meant that my cJTAG traces are around 13cm long. I think as a ...
0
votes
1answer
104 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
3answers
84 views

Burning hex files into multiple micro-controllers at a time. [closed]

I am using attiny88 and the usbasp programmer. Right now I am burning 1 micro at a time. But it is a time-consuming process during the production. Is there any way to burn multiple microcontrollers ...
0
votes
2answers
42 views

Automated equivalents of Potentiometers

I am currently working on a project to create an amplifier which can use both physical and digital inputs to change the resistance of a potentiometer. Is this possible without using sliders? I know ...
0
votes
1answer
37 views

How To Program Atmega256rfr2 using ISP?

I have a new custom built PCB circuit incorporating an atmega256rfr2 chip. I really can't program the chip using AVRISP MK11 based programmer (Olimex brand). But it can program the Atmega328p DIP chip ...
-2
votes
1answer
199 views

How to read temperature with STM32F103C8T6? [closed]

How can I read the temperature using an NTC thermistor with an STM32F103C8T6 board??
0
votes
1answer
81 views

ILI9341 Library for arduino

I'm writing an arduino library for ILI9341 tft display. I tried to write on the display but nothing appears. Why? How can I solve the problem ? My source code: ...
0
votes
1answer
198 views

How to improve hardware programming skills? [closed]

I am a newly graduated electrical engineer with little knowledge about microprocessors. I have studied with PIC, Arduino, STM and TI processors and even with fpga boards. The problem is my work ...
-2
votes
1answer
47 views

Programming LS-iG5A

I have got this LS iG5A VFD to control speed of my rotary cutter machine. I have attached a momentary On/Off switch to start stop the motor and also connected a 10k POT to control its speed My ...
-3
votes
1answer
83 views

Why do I need to read/write from/to EEPROM in embedded applications? [closed]

What is the usage of the EEPROM in embedded application? can you give me examples?
0
votes
1answer
72 views

Help with Arduino loops please! [closed]

So I have an Arduino Uno and I've made a device to humidify my the enclosure for my Tortoise. The device consists of a temperature and humidity sensor, an LCD screen to display temperature and ...
0
votes
0answers
33 views

Can this circuit produce 0, 5 and 12 volts in fixed increments for the AT89LP4052?

Due to the speed requirements of my project, I'm looking at replacing the AT89C4051 with an AT89LP4052 with some code modifications since it offers double the memory and 6x the speed for the same ...
1
vote
1answer
294 views

STM32: Difference between HAL_xxx_Init() and HAL_xxx_MspInit()

When using the HAL (Hardware Abstraction Library) for any of the STM32 micro controllers: For a given peripheral, why do you have to call an HAL_...init() , as well as a HAL..._MspInit() - why are ...
1
vote
2answers
163 views

AVR bitwise operation: making a NOT with a microcontroller

I'm programming an ATtiny10, i have two spare pins, one of which is the external interrupt pin on PB2, and i want to write the inverse of that signal to PB1. I want to spare a component, since i have ...
5
votes
4answers
2k views

Create Circuit Simulation

I wonder if someone can help me. How will one go about to create a simple circuit simulator? Similar to Multisim, just a lot simpler! Basically, I only need resistors, capacitors, inductors and ...
0
votes
1answer
66 views

Bitwise shifting of register

I am now learning avr programming using c. I have a problem with bitshifting. Suppose I have a 8 bit register named jcb containing 01110011. I want to get the upper 4 bits in vh variable. So, I do vh =...
1
vote
0answers
42 views

Controlling GL646USB GPIO pins

I have this USB scanner from my dad that was made back in 2002, that apparently uses an old all-in-one GL646USB chip from Genesys to control the stepper motor, CCD sensor and provide some GPIO pins. ...
0
votes
2answers
79 views

Timing control within a loop - Sending data at exact intervals [closed]

We have a program where we are sending data wirelessly through GPRS. We retrieve values from ADCs, do our calculations, display it on the screen and also send it to remote servers. The loop can be ...
0
votes
2answers
138 views

Programming microcontroller via UART [closed]

Can I program or flash a microcontroller using UART? I previously thought UART is only for communication purposes.
0
votes
2answers
323 views

In-system programming of the SPI Flash chip [closed]

Device have Serial NOR Flash chip MX25L6406E located on the rear of the PCB (SO-8/SOIC-8 Package). Is it possible to program chip without desoldering it? (In-system programming). As I know, it depends ...
-3
votes
1answer
166 views

need c program for 5 minutes timer [closed]

i am building a project for a cycling bath in which the motor goes up and down. the micrlimit switch senses up & down position. once switch is activated motor cuts off and timer starts. after 5 ...
0
votes
1answer
59 views

How to stabilise SPI connection

To salvage a server with a broken BIOS, I am attempting to in-situ program a chip via SPI using a Raspberry Pi 3B: After connecting my clip and wiring it up (and measuring all the leads to ensure I ...
0
votes
2answers
430 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 ...
5
votes
2answers
4k 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
2answers
103 views

About PIC programming

Hi friends iam new to PIC programming , I'm coding my pic in mikroC pro , please help me out.. iam attaching my file with this!the code i want is message from transceiver should receiver and check ...
0
votes
0answers
38 views

Mplabx ICD3 PIC18f67k40 programming fpga failed

I'm trying to program my PIC18F67K40. The part is not listed in Mplab 8.92. Installed Mplab X, but my ICD3 will not work. I used the switcher program and it says it was successful. Mplab X sees my ...
1
vote
0answers
33 views

SCPI - program signal generator to stack existing signals

I have a Keysight 33500B signal generator and I would like to remotely program arbitrary (ARB) waveforms that consist of existing signals in the device's library, ...
0
votes
3answers
860 views

Programming microcontroller using UART

I am trying to design a development board with a dialog micro. I am trying to remove the need for a programmer on this board. So that the user could simply plug in a usb cable and be able to ...
1
vote
1answer
216 views

Attiny10 with RSTDISBL and USBAsp

I have some project what requires all GPIO pins of attiny10 so I have to program RSTDISBL fuse. But only programmer I have is low voltage USBasp (with latest firmware supporting TPI interface). The ...
0
votes
0answers
46 views

MCP4922 buffer feature

I'm using the MCP4922 as a dac with some different python programs. I am using this python package which has a setVoltage_buffered(channel, value) command. To quote ...