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
3answers
308 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
742 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
579 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
409 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
340 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
4k 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
189 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
143 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
92 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
275 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
78 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
122 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
178 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
277 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
228 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
449 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
327 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
123 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
132 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
159 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
78 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
537 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
125 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
233 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
130 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
135 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 ...
0
votes
2answers
171 views

How to connect multiple micro-controllers' USB ports on the same PCB?

I'm designing a PCB with 3 Atmel ATmega16U4-AU micro-controllers on it. I will be programming them through SPI. Therefore, I will not be using D+ and D- ports on the USB interface. Then how do I ...
0
votes
1answer
64 views

programing a timer [closed]

I am working on a hydroponic project that needs some programmable micro controller or something. Here is the deal. I am a mechanical engineer and my knowledge on electronics is pretty limited so here ...
-1
votes
1answer
1k views

How to program an ARM microcontroller using JTAG? [duplicate]

The JTAG interface is pretty new to me. I know most of nowadays ARM mcu's are programmed via JTAG. However what programming cable is usually used? I found this one, and I've seen some people use it in ...
3
votes
3answers
372 views

How do you programmatically detect pin count on an MSP430G2553?

I am using a Launchpad to program an MSP430G2553 controller. I use it for debugging. This controller has 20 pins. However, the end goal here is to run my program on an MSP430G2553IPW28R controller. ...
0
votes
3answers
972 views

PIC PWM output port

I am just starting to learn how to program a pic. I'm pretty much teaching myself this. I'm using the pic16f1829. I'm playing around with the examples and trying to do PWM. Obviously, it works and the ...
0
votes
1answer
254 views

Speedometer using CCP

I made a Speedometer using CCP pin as input. it works. but i have some problem. speed is changed frequently within a range, even using static frequency (When I use a static frequency, It should ...
0
votes
1answer
902 views

Programming language for IC design

I plan to work on this field in the future (I'm still very new to the engineering world). I got some time free now and I would like to invest in learning more. Will I need any programming language in ...
0
votes
2answers
2k views

Difference between FIQ and IRQ

Im working on TI based processors now and they have 2 types of Interrupt configuration(FIQ or IRQ).I have seen such interrupts before when i was doing a hobby project using a LPC1778 but since i didnt ...
2
votes
2answers
2k views

Programming PIC with PICkit3 - do I need enabled MCLR?

I'm working with PIC12F629. It has 8 pins (6 for I/O). I need to use MCLR pin as input pin (for a button), so I have to disable MCLR (I guess). After first programming I want to be able to program ...
1
vote
2answers
195 views

UART- Tx/Rx Line cut detection

There are 2 systems,A and B. Communication between them is via Uart. As part of periodic health check for CAN Bus, its possible to do a loopback and check the status of the CAN transceiver and the ...
2
votes
2answers
658 views

Why Ring Buffer is preffered for asynchronous communication?

Ring buffers are the go to choice by most veteran embedded programmers for asynchronous communications. Assume that data arrives over UART from only a single source and only when a msg is asked for(...
0
votes
1answer
53 views

ST Smart Voice dev board (MK126V)

I have some trouble with my ST MK126V3. Is it possible to program the board with the ST-LINK/V2? I can't work out from the datasheet what debug interface is used and how to connect it properly. Link ...
0
votes
1answer
158 views

Problem with lcd - pic interface

I wrote the following code to display a blinking text on an lcd. The code works properly on the simulator but the real lcd doesn't display anything. I attached the circuit diagram I used to connect ...
0
votes
1answer
149 views

lcd “random fruit” built in function for pic

I'm trying to display a random fruit on an lcd and I was wondering if there's a built in function in the MikroC PRO for pic v.6.4.0 library that does so. I drew the fruit using the lcd custom ...
0
votes
3answers
285 views

AVR studio 6.2 flash atxmega32e5 signature issue

I am trying to flash my AVR ATXMega32E5 with Atmel-ICE thanks to SPI. The problem is that from AVR Studio Device Programming it can read the Target Voltage but not the Device Signature. What it ...
-2
votes
1answer
101 views

Can I reprogram my SPI flash wirelessly?

I am working on an application which stores specific model information in the SPI flash. The hardware is the same between the five different types of units. They are typically programmed with model ...
7
votes
2answers
691 views

Embedded programming state machines

I am looking at implementing a non-trivial finite state machine (specified as a UML hierarchical statechart) on a 32-bit MCU with gcc. Are there any rules of thumb what works better and what works ...