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
1answer
33 views

Help Led matix isn't lighting up correctly Is it a Hardware or software issue? [duplicate]

I am trying to reverse engineer the project from this video: https://youtu.be/zc1zbwheyE0?t=50s. From the video a visible 10 wires are going from the LEDs to the Arduino mega, i am assuming that they ...
1
vote
2answers
329 views

C programming syntaxes for NXP LPC1768

My question may seem weird, but I am very new in nxp micro-controllers. It seems to me that people use different syntax in C programming. For example, in order to set a pin as an output we have: <...
4
votes
1answer
536 views

Why is this hex file different than the code programmed onto the device?

I have a design using an STM32F105. My application written in C; using Eclipse and gcc. I have been using Eclipse (with OpenOCD and an ST-LINK/V2 programmer) to write the firmware to the devices. Now ...
2
votes
1answer
88 views

Begin programming using audio signals

I recently purchased a Amcrest ProHD IP2M-841W 1080P camera where the initial configuration is done over some kind of audio signal, a companion app for mobile phones which, at the end of the ...
2
votes
6answers
959 views

Will the same C code for an AVR microcontroller work with any other type?

I'm learning about microcontrollers and have very limited knowledge on the subject. I just know that one needs to set bits in the registers and manipulate them basically to make a uC work. The ...
0
votes
1answer
512 views

Dumping TSOP48 flash

I'm trying to understand how to dump a flash device myself without using a universal programmer. I have this chip S29GL032N90TFI040, I also have TSOP48 socket The datasheet specifies the table of the ...
-4
votes
2answers
177 views

FPGA basics and implementation help [closed]

I want to use an FPGA for my project and I want to use an FPGA as I want to implement the functionality of multiplexers within it. Also I want to implement a microcontroller function within an FPGA. ...
2
votes
3answers
417 views

Programming PIC18 with PICKit 3 and IPE

I am trying to to program a PIC18F4550 with IPE and PICKit 3. The steps I am following are as follows: First, write the code and compile it to obtain an .hex ...
-1
votes
4answers
741 views

Programming The Atmega Chips [closed]

Can someone explain a little bit to me how to program the Atmega MCU for example the Atmega328P without the arduino?? So, what i want is to program the Atmega chip without Arduino IDE but using the ...
0
votes
0answers
64 views

ABEL-HDL - Default/reset values

I have as a school task to make a clocks & calendar in a HDL. As a source I have 10 MHz oscilator, which I managed to "slow down" to 1 Hz, as I want. I have asynchronous counters for seconds, ...
2
votes
1answer
1k views

Send REST PUT Commands from ESP8266

I am interested in using an ESP8266 to power a physical interface for a network connected device. The device itself supports REST commands, but I am not quite sure how to send PUT requests from the ...
0
votes
1answer
1k views

LED strip Windows computer controlled

I've bought a bunch a LED strips A friend has built a system using http://resolume.com/ with http://www.heroicrobotics.com/products/pixelpusher controllers, however from what I've read this is geared ...
0
votes
1answer
805 views

How to program an ARM microcontroller?

Is there a way to program the ARM microcontroller without solder it to a dev board? I mean, if I want to develop a product based in the ARM architecture I suppose that I have to use one ...
1
vote
2answers
906 views

How to calculate the total resistance of this electrical circuit

I'm a programmer and I'm making an Artificial Intelligence for a boardgame called Hex. Since I am not that familiar with electrical engineering, I need your expertise on this subject. I am now ...
0
votes
3answers
155 views

How do I connect a PIC microcontroller to a computer?

I am still a beginner, middle school student, and I recently started taking interest in Arduino, Raspberry Pie, etc. Now I want to play around with the PIC microcontroller, but I can't find a way to ...
1
vote
1answer
859 views

Timers in TM4C123G not working

I wanted to use timers in TM4C123GH6PM (in TIVA C series TM4C123G Launchpad evaluation kit). So I decided to use GPTM TimerA0 in periodic timer mode. I defined the address of the registers of GPTM and ...
4
votes
1answer
7k views

STM32F74x Flash page size and sectors

I am writing data to the internal flash of a STM32F746 and I'm wondering what the difference between pages and sectors is? And what is the purpose of using sectors instead ? Notice that I'm very new ...
0
votes
3answers
318 views

What makes the data to scroll in LED matrix display?

I am not able to understand what is making the data to scroll in LED matrix display. http://www.npeducations.com/2011/11/simple-led-message-scrolling-display.html Is it the shift registers? This ...
2
votes
1answer
830 views

Setting up SPI with sam4s16c

I started programmer for Software and have a professional background with large software projects in c++ and QT. Now I changed the company and also have to write some low level hardware code and i ...
0
votes
2answers
668 views

Serial programming of several AVR microcontrollers simultaneously via ISP interface

I'd like to put several PCBs in a panel with only one ISP connector routed to each MCU in parallel. I hope that it will be no problem that many MCU's outputs will be connected together as it is ...
0
votes
1answer
49 views

82c55 as 8 bit latches

I'm trying to make my 82C55 function as three sets of 8-bit latches where I can choose one of them by applying the appropriate logic to A0 and A1 and lowering the WR signal to apply the data from ...
0
votes
1answer
453 views

Using the XMC4700 relax kit to program any XMC microcontroller

Is it possible to use the Cortex 10 pin connector on the XMC4700 relax kit board to program other XMC microcontrollers? The solutions that Infineon offers in their website don't look very appealing, ...
0
votes
2answers
75 views

How to control a device that need to be updated over internet?

I know, the question is very vague, but I'll try to explain better. I'm working in a school project and I got interested in continuing this project after school. It's a automatic aquarium. I want to ...
0
votes
1answer
364 views

Signal that changes (depending on different key presses) is not working

I am writing a code for my FPGA that sends a signal 10 us wide every 2 ms. The code is working great, and now I am trying to implement some new code that will allow me to change the pulse width and ...
0
votes
4answers
5k views

How to write an EPROM program

We've got some products that use 27C256 EPROMS. The guy who wrote the original programs (many years ago) is gone and we'd like to make changes and write some new programs for some new products and ...
1
vote
1answer
193 views

Are all these C type casts really necessary for bitwise register operations?

I find the coding style in the STM32F0 (ARM Cortex-M0 microcontroller) SPL (standard peripheral library) unnecessarily verbose. As an example, here is a snippet of code for configuring the phase ...
1
vote
0answers
149 views

Problems programming a 29GL256

I've been experimenting with Python scripts and using an Teensy 2.0 ++ to program different flash memories. So far I've found a script to program a 29GL128, which works perfectly, but I'm trying to ...
1
vote
1answer
101 views

Kinetis K64 Flash Block 0 can't be programmed

I've written my own flash programming functions to be used in a bootloader. I have a small function that actually performs the write operation that is copied into ram so that both flash blocks can be ...
0
votes
1answer
2k views

10x10 RGB LED Matrix Multiplexing with Shiftregisters Bit Angle Modulation

I've build a 10x10 RGB LED Matrix. The LED's are connectet in rows and colums. Thats 40 pins (30 for RGB, 10 for GND). I got myself 5 74CH595 IC's and solderd everything together. I also added a 1A ...
-1
votes
1answer
313 views

Parallel programming with SWD pinouts [closed]

I need to program 8 boards with SWD interface device but I have one programmer with 4 channels. Is it sufficient if I connect SWD lines in parallel permanently to all 8 boards and just toggle the ...
-1
votes
1answer
80 views

sun position Mikro c [closed]

i try to programme a microkontroller with Mikro c to found the position of sun i puted a function CalculateSunPosition to calcule the sun position but the problem wenn i change the time the result ...
0
votes
2answers
130 views

Which kind of Flash supports “Bit-alterable write operations” right now? [closed]

I'm very desperate not to find any suitable alternative for a discontinued PRAM (Phase-change memory) Flash. My colleague has developed a device which uses this PRAM Flash and especially its "Bit-...
1
vote
1answer
185 views

Why does this PIC18LF1220 program only two times and after that programming fails?

I have a PIC18LF1220 in 20-pin SSOP package running at 4MHz from internal clock source and 3.3 volts. I have soldered the microcontroller onto a pcb with a groundplane on the bottom layer and the pic ...
0
votes
2answers
293 views

What sensor to use to track human presence outside of a room from inside [closed]

I would like to track human presence (or could also be sound). I will place these sensors inside my room and should be able to track these events outside of my room. The door of my room is in-front ...
-1
votes
1answer
2k views

How to write an efficient C code for a firmware [closed]

This question is about programming but as its about programming electronics so I thought of posting it here instead of stackoverflow . I have just started my electronics projects. I have designed two ...
0
votes
2answers
249 views

How and where can I start learning about electronic? [closed]

Maybe it's an off-topic question but I really had no idea where to ask this question As a 17 years old boy, who is interested in learning about computer and devices I figured out, I really need and I ...
0
votes
2answers
494 views

How to check float as hex value?

I am reading 4 bytes from EEPROM to make a float value. The specific eeprom I use(24Lxx Series) has 0xFF as default value. So, if I read four bytes of 0xFF into float variable, it will have ...
0
votes
1answer
111 views

Is there anyway one can toggle a light using a program on a computer?

I am a bit new to electronics, but I am a programmer. The thing is that I want to control one or two lights using my code on my computer Arduino and similar ...
1
vote
0answers
368 views

How to read Pic16F1703 program memory (With custom PIC programmer)

Context Following a tutorial, I build a simple PIC programmer hardware using the Raspberry Pi (google: rpp programmer). I tested it with the provided software for a ...
0
votes
3answers
2k views

Decoding in VHDL - Bit masking

I'm searching for the optimal way to do this in VHDL: ...
0
votes
1answer
126 views

Programming cortex m0+ soic for coustom pcb [closed]

I need a little help. I have designed a small HAVC system, controlled with different sensors which each is connected to cortex m0+ mcu-s. I have tested my program on development board. Now I have to ...
4
votes
3answers
134 views

PIC On-the-fly software updates over radio

I plan to run one of the 8-bit PIC microcontrollers (like PIC16F1938) connected to the radio-module (NRF24L01+). Suppose, that I use less, than a half of the available program memory, would it be ...
0
votes
1answer
175 views

Incorrect Manchester encoding from PIC microcontroller

I have written a C program for the PIC18F4620. My PIC works as an encoder, which encodes a data stream in Manchester code. My output is rd7, where it should appear the Manchester code, but only ...
0
votes
1answer
81 views

AVR MCU running @ 32.7Khz Low speed LED multiplexing problem interrupt

Works fine with internal 8mhz, but when change to 32.7Khz, the multiplexing led display is not working properly (it's flashing very randomly). is this the limit of low clock speed or is there a ...
0
votes
2answers
613 views

program works even when hexfile size is greater than flash memory [duplicate]

I am working with AT89S51 microcontroller and using keil to write program in C. It produced a hex file of size about 4875 bytes but flash memory on the microcontroller is only 4kbytes. I programmed ...
0
votes
1answer
135 views

FRDM-KL25Z programming using InterruptIn

I am trying to develop a software to FRDM-KL25Z that needs a button. Anytime this button is pressed, I need the variable "select" to increase by 1, so I designed the function changeSelection: ...
0
votes
1answer
246 views

RTC in MSP430 microcontroller

I'm trying to generate a 15 minutes alarm using RTC in MSP430F5438A microcontroller from Texas Instruments. What values should I put in the Interrupt registers. I have tried putting 0x95 in RTCAMIN ...
0
votes
1answer
145 views

AVRISP. How to choose SPI frequency?

Yes, yes, I know that it must be between 1 and 4 clock cycles of a target device. But... We don't know it if clock is provided by internal rc generator or external quartz. So is there any possible way ...
-4
votes
1answer
136 views

Atmel studio coding [duplicate]

I am new to atmel studio, and want to know the best way to code this example: What is the difference between using: DDRG |= (1<<DDRG3) vs ...
0
votes
1answer
58 views

U16 takes more time than my U32 for sine operation

I was doing a performance monitoring for my sine function and interestingly when I use the variable a in the sine as 16 bit unsigned types it takes more time to calculate than when I use the same ...