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
1
vote
1answer
254 views

Angles Measurement to control (move) a robotic arm [closed]

I am working on a robotic arm, I am going to use servo motors, those are going to be controlled from the PC with command (it is a chess-game arm) so the command will be some thing like move piece from ...
1
vote
1answer
803 views

Is there a way to avoid an infinite loop and reduce CPU power consumption when using PIC and timer0 interrupt?

I have made a simple program that runs on a P12F629 microcontroller using MikroC. I need to run some time-critical tasks (e.g. increase internal clock, output data to LED matrix, ...). Instead of a ...
0
votes
2answers
362 views

Programming an AVR microcontroller with multiple SPI channels

I am trying to design a PCB which will make use of the ATmega324PB microcontroller [Datasheet here]. I have previously worked with smaller AVR chips such as the ATmega168PB, and programmed them ...
11
votes
7answers
67k 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 ...
3
votes
2answers
619 views

How do you independently program a GSM/GPRS IC [duplicate]

I see these GSM/GPRS modules that you can use with a microcontroller but all of them use the microcontroller to control the module using AT commands. After a bit of googling i saw this GSM/GPRS IC '...
1
vote
1answer
51 views

Device that uses a USB port for application downloads in an application/executive model — what class should it be?

So, I'm building a device (it's a programmable, USB-powered RGB LED lamp, so it's rather silly :) but this problem comes up in more serious contexts as well, such as when a PLC provides a USB ...
5
votes
1answer
463 views

An overhead of running program on Linux vs embedded bare-metal

Let's say I have some multi-core ARM Cortex-A. Now I have there a Linux, with RT_PREEMPT patch (so called real-time Linux). I run a processes with affinity set to one core and high priority (above 50)...
1
vote
2answers
2k views

Is SWD with an FTDI chip a universal programmer solution?

I have searched high and low (in fact I have spent the recent months on and off trying to find an answer). Maybe I'm not asking the right questions, or am staring the answer in the face, I'm not sure. ...
1
vote
0answers
351 views

Can UPDI Enabled AVRs be Programmed at 1.8V?

Microchip's new line of Tiny AVRs use the new UPDI programming interface. After looking at the datasheets for the ATtiny817/1617, the Atmel ICE interface document, and the internet, it's still ...
0
votes
3answers
848 views

Can I use VHDL/Verilog to program a micro-controller?

I wanted to know if I can program any micro controller (not CPLDs /FPGAs) using VHDL/ Verilog? If so, what are the steps and the required tools for the same?
1
vote
1answer
64 views

What is the name of the syntax standard Keithley is using for remote control over serial?

Keithey (and other manufacturers) have a standard syntax for communicating over serial. Typically, commands look like (source): ...
5
votes
3answers
1k views

Can I use C language to program a CPLD/FPGA?

I wanted to know if I can program CPLDs /FPGAs using C language? If so, is it commonly practiced? What are the steps and the required & tools for the same?
1
vote
1answer
746 views

STM32F04 UART Transmit with Interrupts

I have been prototyping my project with the STM32F103 "Bluepill" and for the final product I want to move to the STM32F042F6 which has a smaller TSSOP-20 footprint. I need to use UART in my ...
6
votes
5answers
1k views

How to think while working with VHDL or Verilog

All of my experience belong to general purpose programming languages e.g; c/c++ etc where each instructions are executed one after the other but it seems in VHDL/Verilog, all the instructions are ...
2
votes
1answer
109 views

On IAR's EWARM package, what is the difference between the built-in MISRA C checker and CSTAT's MISRA C checker?

A bit of background: Our team will be programming firmwares for ARM microprocessors. Programming codes should comply with the MISRA C standard. We have decided to check IAR's EWARM package: https://...
0
votes
1answer
71 views

Are switched jacks ever used for in-system-programming connections? (If not, why not?)

It seems like a switched jack would be a straightforward way to make pins do "double duty" in a uC-based application. That is, the "normally closed" connections of the jack could connect the ...
2
votes
1answer
123 views

Forgot ICSP / in-circuit interfacing of pins on Atmega328P in TQFP-32 package

I am having an issue due to my own stupidity: I designed a PCB with the good old Atmega328P in TQFP-32 package. I broke out the pins for UART in order to be able to Arduino-flash it (beginners/...
2
votes
1answer
9k views

STM32F1xx HAL UART Recieve

I am trying to send and receive data to and from an STM32F1xx. I have got the STM32 to successfully send data back to the computer. I did that using the code below. ...
7
votes
9answers
80k views

Programming an ATmega328 with Arduino bootloader via a FTDI USB-serial adapter

I would like your advice relating to using the Arduino IDE and avrdude to program an ATmega328 which is preloaded with an Arduino bootloader. I am using a USB to TTL-serial breakout board based on an ...
0
votes
1answer
911 views

What is the difference between programing with JTAG and USART interfaces?

I understand there are 2 interfaces to programming NanoMind A712 computer: JTAG and USART. But what is the difference in programming the computer in JTAG or USART interfaces? Datasheet: See page 10: "...
1
vote
2answers
8k views

How to read firmware from Altera's FPGA (Cyclone IV) with USB Blaster?

I'm starting to investigate Altera's Cyclone IV FPGA to use in my projects. Now I borrowed from neighboring company a real device with USB Baster Rev.C. I'd try to use one instead of evaluation board ...
10
votes
1answer
461 views

Can you program a surface mount IC with flash memory and then reflow solder them?

I know that many chips, such as the ATMEGA328P-AU list flash storage lifetimes at certain temperatures, but they usually cap out at 100° C. I know that, ideally, one should include leads on their ...
1
vote
1answer
1k views

Program not running on STM32F4 after disconnect it from PC

I developed a program on STM32F4 using keil uV on windows 10, it works perfectly when the target is powered by the computer even after i stop the debugging. Normally after downloading the program in ...
-1
votes
1answer
770 views

Interfacing NAND flash to a microcontroller [closed]

I have a MP3 player with Samsung's nand flash chip (2GB), I want to connect that chip to microcontroller and read, write or list files and directories as we do with arduino SD Card Library. Your help ...
0
votes
2answers
74 views

Unable to access structure members through pointer in function called form another funciton?

While trying to interface BMP180 to my STM32L4 Controller using libraries I found that the , BMP180_RETURN_FUNCTION_TYPE bmp180_get_calib_param(void) funciton ...
0
votes
3answers
462 views

Can I read EEprom in circuit when connected to a SH7055 MCU?

I am trying to read a microwire 93C66 EEprom which is connected to a Hitachi SH7055 MCU. The device is a complete automotive ECU. I need to be able to do this in circuit. Currently I get an error ...
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
87 views

Production programming: is there a practical size limit to serialization length? [closed]

This is a follow on question from the answers of these two: Is it practical for firmware to be uniquely identified in production How to verify hardware is legitimate I would like to be able to ...
9
votes
3answers
9k views

Using multiple external interrupts in PIC

I've used PIC16F877 (datasheet) for several projects. For a single external pin change interrupts, you can use PORTB0 interrupt. ...
0
votes
2answers
680 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 ...
19
votes
5answers
73k views

How different are 8-bit microcontrollers from 32-bit microcontrollers when it comes to programming them

Right, so we have 8-bit, 16-bit and 32-bit microcontrollers in this world at the moment. All of them are often used. How different is it to program 8-bit and 16-bit micrcontrollers? I mean, does it ...
0
votes
1answer
102 views

Latitude and Longitude DMS conversion in MPLAB XC8

I am using two function for lat and long DMS conversion. when I am using those two function ,either lat or lon is display correctly in my UART.when If i will print latitude first in UART,displaying ...
1
vote
3answers
2k views

High Voltage input and output microcontroller

I am new to this, but I am looking to regulate a few ballast controlled fluorescent lamps with a micro-controller. Everything I look at has a low operating voltage and below 10 volt input/output ...
0
votes
3answers
704 views

What is clock cycle in a microprocessor? [closed]

can any body saying to me what is that the difference between a micro controller with 1 MHZ and 200 MHZ clock in a timer project or in a project that record sound ...
-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 ...
-1
votes
1answer
109 views

Question about Color Sensors

Can a color sensor detect more than one color at once WHILE distinguishing them? For example: Say I wanted a program to activate only if both red and violet are detected at the same time. Is that ...
2
votes
2answers
393 views

PIC Programming commands

I want to program some PIC micro simultaneously using single same port. There is no problem in programming but when process is finished, feedback command that say "done! its programmed" cause conflict ...
0
votes
1answer
237 views

LabView drivers for Keithley 6487. where to find documentation?

I have to set up a program for measuring the IV characteristics of some components using LabView. At the time of writing I'm studying the basics of the G language (LabView programming language) for ...
0
votes
1answer
24 views

Idea behind Reverse Insertion Check

I read through universal device programmer (device that program ICs like AVRs, PICs, EEPROM, etc) like items in links below, I found that these programmers perform these checks: insertion test. ...
0
votes
1answer
455 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, ...
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
6k views

Embedded C programming to interface ultrasonic sensor to 89s51 microcontroller

I am trying to interface an ultrasonic sensor HC-SR04 to a 51 family microcontroller like 89s51. After learning about how ultrasonic sensor works I wrote a program as per my knowledge about ultrasonic ...
-4
votes
3answers
124 views

loading different files into a PIC [closed]

Is there any way to load a file (of extensions .bat or .HTML) into a microcontroller and make the microcontroller run the file when it is connected to a PC using UART EDIT: thanks for information but ...
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 ...
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 ...
1
vote
2answers
334 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
6answers
970 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 ...
1
vote
2answers
2k views

ADC Read function not working properly

I am working on a school project where I need to read a bunch of analog values and convert them to digital with PIC16F1788(datasheet). I wrote the function using C and xc8 compiler. The problem is ...
-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. ...