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

learn more… | top users | synonyms

1
vote
0answers
57 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
2answers
44 views

Decoding in VHDL - Bit masking

I'm searching for the optimal way to do this in VHDL: ...
0
votes
0answers
9 views

Aruino pro mini not accepting new code [migrated]

I recently purchased an Arduino pro mini from Amazon, and a ch340g serial adaptor to program it. When I first used it, I only used the simple blink program, just editing the delays. This worked great, ...
0
votes
0answers
17 views

Can server send response from a different process and socket? [migrated]

After server, which is listening on port X, receives a request from the client, can it send response from a different process and a socket with sendto call. Please note that the client also sends ...
0
votes
1answer
70 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
73 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
73 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
35 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
0answers
53 views

Programming an MCU pic16f1703, what mean: Begin internally/externally timed programming ?

Context: In the process of programming an MCU of type PIC16F1703, I started by having a read of the memory programming specification. Due probably to my leak of ...
0
votes
2answers
51 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
34 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
58 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
21 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 ...
-5
votes
1answer
83 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
41 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
92 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
48 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 ...
-2
votes
1answer
84 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
131 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
63 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
2answers
87 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
70 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
104 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 ...
1
vote
2answers
109 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
82 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 ...
1
vote
2answers
73 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
0answers
43 views

PC Cannot Access HC-06 Bluetooth COM Port

I have an HC-06 Bluetooth module connected to an Arduino UNO board to allow for the data received by the Ultrasonic sensor to be transferred to my PC via bluetooth and serial communication. I am using ...
0
votes
1answer
27 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
84 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
49 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
77 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
70 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
200 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 ...
1
vote
3answers
227 views

Binary Counter C Code for pic16f877a

I'm trying to write a code for an up/down binary counter. The task is to light up 8 leds (up counter)and then reverse the lighting order (down counter). I am trying to create an array of leds in my ...
0
votes
1answer
94 views

Can 8051 pins work as inputs or outputs at the same time in a program? [duplicate]

I have confusion in assigning ports as input or outputs in 8051 microcontroller. As I have done programming with atmel atmega16 and variants we clearly have DDR registers to assign ports as inputs ...
0
votes
0answers
62 views

Keil skip or steps over a statement while doing 8051 assembly language programming

I am writing a simple program to recieve values serially from PC to 8051 microcontroller. So here is the program ...
2
votes
1answer
47 views

Naming and grouping individual pins with the ATXMEGA

I am new to using atxmega chips (atxmega128a1 specifically) so sorry if my question is not worded in a "professional" way! So far in order to set or clear a pin I use the following programming in C: ...
-1
votes
1answer
119 views

Programming Intel i3 like RPi [closed]

I am building a fairly large home automation system comprising of cameras and other sensors. I experimented with a Raspberry Pi, but it simply wasn't able to handle the load. Therefore I want to know ...
-1
votes
1answer
116 views

PIC C program flow problem XC8

Problem: My C code is not running to the end. To test my EEPROM read and write, I decided to write a simple array and read it back to different array using a PIC. However the problem is not the ...
0
votes
2answers
136 views

Is it possible to implement a fail-proof watchdog timer in software?

I want to add a piece of code for watchdog timer within my source code so that the board resets automatically when programs hangs. I am using Mediatek Linkit One board.
-7
votes
1answer
49 views

Some cool things i can do with RAM?? [closed]

What are some cool (technical) things i can do with RAM (500mb,ddr2)? I have it but cant't think of anything to do.
1
vote
1answer
141 views

ST-Link debugger/programmer failed to find STM32L152 MCU on designed PCB

I'm using STM32L152 MCU on my own project. The project was started on a STM32 Discrovery board. Now I would like to have my own board by designing a PCB with the MCU. An external ST-Linkv2 will be ...
2
votes
4answers
147 views

PLC rung definition and evaluation

I was reading a book about PLCs (Programmable Logic Controllers). I found this paragraph: "A ladder diagram is read from left to right and from top to bottom... The top rung is read from left to ...
0
votes
1answer
128 views

Programming MSP432P401R on a custom PCB

I got a MSP432P401R LaunchPad and wrote/ran some applications with it. What if I want to use it in a real life application. How can program the MCU when I design my own circuit and place it on the ...
0
votes
1answer
179 views

Programming Atmel SAM MCU using SAM-BA

I'm completely new to Atmel ARM microcontrollers and beyond a single class a couple of years ago and some arduino tinkering, new to "proper" mcu's in general. So therefore I am having trouble with ...
1
vote
1answer
42 views

MSP430 - how to check addressing types

I'm programming a MSP430 in C language as a simulation of real microcontroller. I got stuck in addressing modes (https://en.wikipedia.org/wiki/TI_MSP430#MSP430_CPU), especially: Addressing modes ...
-2
votes
1answer
29 views

Programming SPC56XX PowerPC MCUs

I found that SPC56 is perfect solution for my hobby automotive project. There are several C compilers. I used to work with Cortex-M3/4 cores and it always was easy to find good program/debug solution ...
3
votes
1answer
91 views

How are system configuration flash or eeprom chips programmed?

I've seen, quite often actually, a circuit that will have an eeprom or flash chip soldered next to the application chip. Take a look at the ESP8266, it has some kind of programmable memory that sets ...
1
vote
0answers
82 views

Best device to read/write memory on multiple architectures?

tl;dr: I want to read/write memory from a PIC MCU and an EEPROM, both of which are soldered to an experiment board. I would like to explore programming and debugging ARM in the near future. Which ...
1
vote
1answer
25 views

Programming/Verifying EPROMS with an elevated VCC

Many EPROM manufacturers specify a faster programming algorithm which involves temporarily raising VCC from 5V to about 6V. If I read with this higher VCC in place, are the outputs still limited to ...