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

learn more… | top users | synonyms

0
votes
0answers
31 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
88 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
45 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.
0
votes
1answer
66 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
37 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
44 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
0answers
49 views

Arduino and weight sensor help

I am very new to arduino, and am trying to make a project that weighs a tank and let me know when it reaches low levels. I have a LCD, four load cells a load combination board and amplifier. I have ...
0
votes
1answer
62 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
38 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 ...
0
votes
0answers
25 views

Why doesn't this debounce function work? [migrated]

A little while ago I made a function to debounce a button and return its value. The void loop then read the button to know whether or not to blink the LED. It worked perfectly. I am now using this ...
-2
votes
1answer
25 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
55 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
59 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 ...
0
votes
0answers
31 views

Using IC Test Clip to do In Circuit Programming/Debug

I was thinking of using a Test Clip like this: Digikey: 3M Test Clip to do in circuit debug/programming of an Atmel SAMD9 because I'm really trying to reduce board space, and for a production run I ...
1
vote
1answer
22 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
74 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
93 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
79 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
2answers
171 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
0answers
68 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 ...
3
votes
3answers
79 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
78 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
88 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 ...
0
votes
3answers
225 views

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

I have build my own board with STM32F7-45VGT6. I have successfully programed 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 and ...
5
votes
2answers
281 views

AVR - Is the datasheet of the Atmega32 wrong? Timer1

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
51 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
1k 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 ...
1
vote
2answers
79 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
0answers
92 views

Reprogramming STM32 when using SWD pins as GPIO

I have prototyped a new design, but being short on pins I was forced to utilise the SWD pins as GPIO. I know when this is done it messes with the ability to program the chip as easily, giving the 'No ...
0
votes
1answer
58 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
18 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??
0
votes
0answers
45 views

Acceptable microcontrollers for the MSP-EXP430G2 Launchpad

I have the MSP-EXP430G2 Launchpad (2-4 years old). Can I program with it any 20 pin MSP430 microcontroller from TI including ones that may be released in the future or there are only specific ones?
1
vote
1answer
94 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
50 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
276 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 ...
0
votes
1answer
87 views

cannot receive the right data of NONIN OEM III using PIC32

I am looking for a solution for my project. I am using PIC32MX270F256B from Microchip,nonin oem III module and UART. I have connected the serial out pin from nonin (pin number 12), to U2RX pin of PIC ...
0
votes
1answer
69 views

Microcontroller programming using universal programmer tool

I am using NXP P89LPC954 microcontroller. I am having problem with In System programming(ISP). When i solder it on my board for the first time and try to burn hex file into it using phython chip prog, ...
0
votes
1answer
130 views

C or C++ for EE [closed]

I am a freshman EE student looking to have an emphasis in computer engineering. I do not start my core engineering classes till next year. However, I am wanting to get a jump on learning a "close to ...
0
votes
1answer
40 views

Interfacing with a S6B0741

I am using a LPC4300 board to interface with a graphical LCD, a S6B0741. I have been trying to get it initialized, but I am not sure if I am sending the commands the correct way. The code I have ...
1
vote
0answers
52 views

Programming a 80C196 through serial

I'm currently trying to use the PWM feature of a 80c196 which requires a few control registers to be programmed. Unfortunately I don't have many options to achieve this as I don't have a programmer. ...
3
votes
3answers
792 views

Programming a microcontroller with another microcontroller

I'm looking into using a PIC24FJ256GB106 to program three other of the same microcontroller. So this is how it should work: The program is sent across through serial to the master/programming PIC ...
1
vote
3answers
455 views

How come Misra C checker is such a prestigious tool? [closed]

Professional compilers such as IAR Embedded Workbench offer Misra C checkers only in their premium versions. Isn't Misra C checker a style checker on elements like indentation, variable names? Why ...
0
votes
1answer
71 views

Requirements for microcontroller programming of an RFID project

I am new to microelectronic.But I have a little knowledge in some hobby circuits etc. I want to make a fully automated circuit for my vehicle,by using a short range RFID sensor for detecting the ...
0
votes
0answers
46 views

Linux Spi reads incorrectly

We are developing a new Linux pcb based on the am335x processor. Our board can write to the spi-bus does not read values from the bus correctly. The correct values are seen on the bus using an ...
2
votes
1answer
120 views

What language to write USB 3.0 application for ADC demo board? [closed]

I need some suggestion/guidance on which language/setup to use to create an application with USB 3.0 connectivity that processes 1.6Gbps of data in real-time. The application collects data from an ...
0
votes
0answers
62 views

Custom nrf51822 board not recognised by segger programmer

I have had some custom boards built with an nrf51822 on it. The design was reviewed by a Nordic support engineers and based on the reference designs. So I hope there isn't anything wrong with it... ( ...
0
votes
1answer
195 views

PIC24 Interrupt auto_psv vs no_auto_psv

I'm trying to understand the options when setting up an interrupt in a pic24fj128ga010. There in an attribute option for either auto_psv or no_auto_psv. I understand that PSV stands for program ...
-1
votes
4answers
330 views

Running two separate while(1) loops parallelly in embedded c for 8051

Recently while writing a program on embedded c for 8051 to run a robot using ultrasonic sensor I got into a problem. While ultrasonic sensor keeps scanning its stuck in a while function but at the ...
0
votes
1answer
282 views

Wiring for Logic Level Converter to 1.8V SPI Flash with a 3.3V programmer

I have a 3.3V SPI flash programmer that I would like to use to flash a 1.8V SPI flash chip. I have read that I could use a logic level converter to do this but I can't find wiring diagrams. There ...
-1
votes
1answer
95 views

How do I wake from sleep on PIC10F200 via watchdog?

So far I have worked with many other micro controllers but not the PIC-family. I'm having trouble with waking from sleep via watchdog on a PIC10F200. I'm programming it in C using the MPLAB X IDE ...