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
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
380 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
1k 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
263 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
1k 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
207 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
716 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
54 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
165 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
157 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
299 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
104 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 ...
8
votes
2answers
714 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
6k 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
475 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 ...
3
votes
1answer
186 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
170 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
228 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 ...
1
vote
2answers
575 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
83 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
602 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
6k 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
949 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
1k 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
69 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
146 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
219 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 ...
2
votes
0answers
154 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
53 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 ...
-1
votes
2answers
464 views

Using a USB port to connect to a microprocessor to program? [closed]

I am designing a led information board, I want to use a USB port to connect to the micro processor to program it, is it possible to use a USB port to do this? I am using a genie 14.
1
vote
2answers
394 views

Understand VHDL Code

I've been learning VHDL coding for the past two weeks to be able to understand the VHDL code of what I'll be working on. In other words, I'm still a beginner and I need help understanding some codes ...
0
votes
1answer
746 views

“error #28: expression must have a constant value” - with nRF51822 app_twi

I have been attempting to copy the nRF51822 app_twi example for own application in order to get a better understanding of how the HAL works. However, now I have an error now that I don't understand ...
2
votes
4answers
3k views

STM32 PCB Problem

I have been trying for almost a year to get an STM32 to work on a custom-made PCB. I have an STM32F107 and I have wired it as shown in the attached diagram (only shown components are soldered at ...
0
votes
1answer
526 views

Benefit of using RAM, or some form of internal memory on a FPGA

I am at moment trying to store an image onto an FPGA. I calculated the space required by it to be 19200 kb, and are therefor wondering whether i should store it some other way than a 2d array?.. Or ...
2
votes
3answers
147 views

is there atmega 128 basic circuit for every project?

This is my first Atmega project so I have following questions: Do I have to connect all those gnds and vcc's? In programming I used Vcc Reset Gnd Tx Rx SClk of USART0 is that okay? I didn't used ...
0
votes
1answer
335 views

Getting a stable value from sensor?

I am working with Omron Pressure sensor D6F-PH . When i try to read the pressure value i am unable to get a stable value. I tried averaging but even that doesn't help. Could somebody suggest me a ...
-2
votes
3answers
197 views

Should HDL languages be taught before software languages? [closed]

I'm a Computer Engineering student and learned the basic sequential programming languages (C/assembly/Java) way before I was even introduced to HDLs. Thus, my whole programming logic was based upon ...
11
votes
7answers
65k views

STM32 & ST-LINK - Cannot connect to MCU after successful programming

I have built my own board with STM32F7-45VGT6. I have successfully programmed it with ST-LINK v2 (not the original one though) and now I cannot even connect with MCU. I use ST-Link Utility from ST ...
5
votes
2answers
627 views

Is the datasheet of the AVR ATmega32 wrong?

I'm currently using an ATmega32 to keep time, so I carefully read the datasheet and configured the Timer 1 to generate an interrupt each second. According to the following formula on the datasheet, ...
0
votes
1answer
95 views

Split a 512 bit numbers into 16 words of 32 bits using HDL [closed]

How to split a 512 bit binary number into 32 words of 16 bits using HDL?
10
votes
8answers
3k views

Does each microcontroller line have its own programming language/syntax?

I've programmed the Arduino and have started programming the Teensy. They are similar to C but there are slight nuances in the programming language. For instance, in Arduino's C you call a function ...
3
votes
3answers
158 views

It is better to fix x's in the simulation or in the design?

I have a question about how to deal with x's in Verilog netlist simulations. I have a disagreement with another engineer (who is a bit more senior than I am) about what the right approach is. ...
0
votes
1answer
240 views

Use AVR Atmega like a 555 for timer

I have a lot of AVR Atmega128P boards, and I would like to use it as timers WITHOUT PROGRAMMING, as example, just like 555 timers. Is it possible? If yes, how can I do that?
0
votes
1answer
113 views

Ask about possibilty to use Digispark Pro as RFID Tag

I have read this article that explain how to use Attiny85 as RFID tag. Using an AVR as an RFID tag Is it possible to program Digispark Pro and use it as RFID tag??
1
vote
1answer
757 views

“Invalid expression” error when compiling PIC C code

I am working in a project using a Nokia 5110 LCD, a PIC16F84A, and code in mikroC. When compiling the code, I get an "Invalid expression" error in line 16. This code comes from an example in the ...
0
votes
1answer
85 views

ADC value (4000 to 20000) to (0-400) milibar conversion

I am getting full scale ADC value from 4000 to 20000. I am trying to convert o 0-400 mbar pressure, as I am ultimately measuring height of a tank. I have a equation to measure the Height of Liquid. ...
4
votes
2answers
637 views

How do volume production manufacturers use contactless JTAG programming?

Do high volume manufacturing outfits all make a custom made 'bed of nails'? I have not been able to find a ready jtag contact pattern and spring loaded header other than tag-connect pointed in this ...