Stack Exchange Network

Stack Exchange network consists of 174 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.

-1
votes
3answers
54 views

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

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
36 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
0answers
24 views

Programming ATtiny 85 on a PCB and powering it

I am putting together a 7x4 cm PCB that has an OLED display driven by Tttiny 85 as a small project of mine. The display just outputs the text that ATtiny tells it to, the whole thing is designed to be ...
0
votes
1answer
22 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
67 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
62 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
72 views

Why does my AVR microcontroller not work without AVR DRAGON?

I have the most annoying problem I have ever come across. The company I worked have an embedded device of theirs and the main designer left the company. They told me to reprogramme the device with C ...
0
votes
1answer
190 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
39 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
77 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
70 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
1answer
79 views

ESP32 is unable to flash

I have schema with PCB. In my first version I couldn't get working CP2102 so I found small PCB on ebay to get it working. I can connect it to PC. PC recognize CP2102 which is okay. I already tested ...
0
votes
0answers
31 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
83 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
156 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
1k 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
62 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
24 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
76 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
79 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
123 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
111 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
0answers
28 views

Calculate the minimum SIMD utilisation of a program

We covered SIMD utilisation in class but I don't seem to understand how the minimum SIMD utilisation is calculated. Given this program: ...
0
votes
0answers
52 views

PIC12F1572 problem to connect to HC-06 module USART : error in communication although the baud rate is correct

I am trying to connect a PIC12F1572 to HC-06 module. I have found some code online to connect the HC-06 with a PIC16F84 and I tried to change the code for the PIC I used by following the guideline of ...
0
votes
1answer
52 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
0answers
40 views

Random flashing with PICKit3 (bad connection?)

The circuit ( sorry for some mess ): So, as you could see, all pins which are necessary for flashing ( programming ) are connected properly, but this gives random results: , but VERY rare it gives ...
0
votes
2answers
179 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
94 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
26 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
28 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
300 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
102 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
28 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 ...
0
votes
1answer
74 views

STM32F1 -bootpin resistors

The STM32F1xx "Getting Started" app note shows the BOOT0 and BOOT1 pins connected to ground/VCC via a \$10k\Omega\$ resistor, and so that's what I've always done and everything works fine. However, ...
0
votes
0answers
93 views

STM32F723 custom board debugging/programming issue

I am working on custom board design for STM32F723ZET6 MCU. Here is part of schematic. All the VDD/VDDA/VBAT pins are connected to 100nF bypass capacitors and few 4.7uF capacitors between VDD and GND....
1
vote
2answers
79 views

Inside a library of common functions (Instruction Set ----> High Level Program) is there information of how many clock cycles they use?

I am a Mathematical Person. So thinking from that perspective. To make my question slightly more concrete. I was thinking of controlling a hobby servo through a Uart serial data stream. I am ...
0
votes
1answer
74 views

Finding the number of bytes written in a larger array [closed]

How can I read the total number of the bytes written into a larger array? For example if 10 bytes are written in a uint8_t array[100], how can I check if the written bytes are 10 and not 20 or 80 or ...
4
votes
2answers
90 views

Surface Mount package standards guide?

Is there a universal guide-line for the mechanical dimensions and tolerances of Surface Mount packages across the industry? I'm very new to SMT machine programming (<1 year), so I've been trying ...
2
votes
1answer
124 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
votes
1answer
151 views

How to make a 2d printer easily using arduino? [closed]

Can we use arduino programming and make a simple 2d printer? What kind of equipment are needed?
0
votes
1answer
49 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
4answers
138 views

FPGA how to create delay

I understand that with synchronous FPGA, the whole execution is done in cycles. What happens when my circuit has two parts which give outputs in different cycles (one has greater depth than the other) ...
0
votes
2answers
453 views

How does an “if” statement and “always@” statement work in Verilog?

I'm trying to program an 8 level stack register for a Program Counter. It is working well enough, but for some reason, when I test it, some combinations of inputs produce unexpected results. This is ...
0
votes
1answer
123 views

STM32F discovery doesn't execute code after programming successfully

I have a stm32f051R8T6 Discovery board, and I compiled a simple blinking LED code to activate the LED's on the board itself. The code builds successfully and flashes the MCU but the MCU won't execute ...
2
votes
1answer
127 views

Why am I not able to compile this assembly code?

When assembling the code, I get the error : fpu.s(13): error: A1240E: Immediate value cannot be used with this operation ...
0
votes
1answer
54 views

AI and Linking it to a circuit [closed]

I have been building a robotic arm for a while now and finally got onto the actual coding side of things. I have been looking around the internet and I’m trying to build some AI code for the arm. ...
-1
votes
2answers
120 views

Recording servo movements using pic with CCS C

Here what I am trying to do is control servo motor with a pottentiometer and record its movement using analog to digital converter and than play. I started with just moving the servo. To see which ...
0
votes
2answers
170 views

how to get fractional delay in picmicrocontroller

i am using 4MHz clock for pic18f452. therefore, 250ns is 1 instruction cycle. is there any way to get a delay of 375ns? using timers, i cant define count in fractions. using inbuit delay function ...