We’re rewarding the question askers & reputations are being recalculated! Read more.

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
2answers
44 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
45 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
361 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
92 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
205 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
55 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
86 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
85 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
35 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
556 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
169 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 ...
7
votes
4answers
4k 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
84 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 =...
0
votes
2answers
84 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
195 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
438 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
205 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
66 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
738 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
105 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
60 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 ...
0
votes
3answers
1k 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
275 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
53 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
193 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, ...
1
vote
2answers
80 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
82 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
126 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
284 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
266 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
73 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
261 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
327 views
0
votes
2answers
1k 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
266 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
202 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
57 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
146 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
180 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 ...
0
votes
0answers
904 views

How to write a program for 4-Bit CPU made in Logisim?

So I finally got my 4-Bit CPU working on Logisim, and am trying to get it to do commands and display them, but am unable to do so. My CPU looks like the following: I am trying to implement the ...
0
votes
1answer
155 views

Reuse a S25FL256S SPI 32MB flash module even when it is possibility protected?

This is my weekend toy, a Spansion/Cypress fl256saif00 (S25FL256S), a 32MB SPI module. This chip is salvaged from a Cisco EPC3928 Docsis 3.0 Modem Router (2012). The (first) challenge was to be able ...
5
votes
2answers
475 views

Programming several AVRs with one ISP: which line to break?

Let's suppose that I have two AVRs connected to one ISP connector. To programm only one MCU in this configuration I neet to break one (or mayby several) lines goes to the MCU I don't want to be ...
0
votes
1answer
90 views

How to send the result of a count from the register TMR1 (used as counter in the PIC 16f877A) to sevral output pins on the same pic?

I'm using a PIC 16f877A with a D/A Converter (AD667) in order to transform the result of a count into a analogue output to use later, but I find my self incapable of sending this 12 bits from the PIC ...
1
vote
1answer
1k views

Programming STM32F3 with Atollic TrueStudio: arm-atollic-eabi-objcopy says No such file

I am using the newly-made-free Atollic TrueSTUDIO for STM 32 and built a CMSIS-based STM32F3 project from scratch. When I try to build the project, I get the following Build Console error: ...
0
votes
0answers
143 views

8051 programmer not working when laptop lid removed despite suggestions in comments

UPDATE I took a suggestion of disconnecting my external monitor from my laptop and the results were the same. What I did notice however is that the AT89S52 chip always reports the correct signature ...
0
votes
1answer
222 views

Programming a PIC microcontroller using toggle switches and logic gates. Ideas to suggest?

I saw a guy on Youtube programming an EEPROM using toggle switches and he would press a button to send a clock to the EEPROM for the data to be written. Could I do the same thing to program a ...
-1
votes
3answers
340 views

What could one do with a 4 BIT computer made out of discrete logic gates? [closed]

I want to manually program the 4 bit computer . (Without another computer). I want it to display a message on a LCD display. Let's say a Hd44780 display or a Nokia display. Have a nice day. Here ...
0
votes
1answer
294 views

Shared UART on STM32F103x (or any)

This is one of those beginner questions, so sorry about that. I'm trying to add wireless chip to my current PCB, but there are no more available UARTs on STM32F103. There is one UART (RX,TX) pins "...
1
vote
2answers
34 views

Photon flux and the power to 2 LEDS

I am trying to write a program where the user uses a dial to adjust the intesity of one LED at the frequency of Red light and another LED in the same circuit that is at the frequency of Far Red light ...