Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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
2answers
34 views

Photon flux and the power to 2 LEDS

I am trying to write a program where the user uses a dial to adjust the intesity of one LED at the frequency of Red light and another LED in the same circuit that is at the frequency of Far Red light ...
0
votes
0answers
5k views

ST-LINK “USB communication error”

I have a custom PCB (based heavily on the Nucleo board) using the STM32F767II. I am using Atollic TrueStudio on Windows 10 and programming it through the ST-LINK on the Nucleo board (header CN6). I ...
6
votes
5answers
2k views

Is it possible to drive a 2 X 16 LCD display using logic gates? (Without computer)

I want to make a circuit using logic gates that prints a message on the LCD display (2 X 16). Any idea? I want to know how to do this "by hand". like the old days. Can I build a circuit out of ...
-1
votes
2answers
162 views

Can I program a microcontroller by manually programming an EEPROM and then coyping the EEPROM contents to the microcontroller? [closed]

If so , what do I need to learn in order to do that? I know it is possible to manually program an EEPROM. But What I want to know is how I can transfer the date stored in a eeprom to the ...
1
vote
3answers
2k views

What is the role of ISA (Instruction Set Architecture) in the comp arch abstraction stack. [closed]

I have programming background, and I recently started taking computer architecture course. Most of the lectures I see use the some sort of the layering as described in the following diagram explaining ...
0
votes
1answer
1k views

ATmega328P 16MHz or higher clock output on CLKO pin

I need a high frequency clock (16MHz or higher) to drive OV7670 camera module, and I want my ATmega328P to be source of that clock. I'm using the CLKO pin since I ...
3
votes
1answer
467 views

Can't program multiple chips using JTAG

SOLVED - LOOK UNDER "EDIT 3" SUBTITLE. I've got this two chips: Board with LPC4337(left) and board with ATSAM3X8E(right), JTAG interconnected, using FT2232H chip soldered on the board of the left as ...
1
vote
1answer
171 views

Why VPP isn't 12V with safe resistor when a working microcontroller is inserted into this circuit?

I tested the whole functionality of my programmer circuit, and many things work, but some things don't. It seems to erase the entire contents of an AT89C4051, but it does not successfully program the ...
1
vote
1answer
148 views

What equipment do I need to reprogram an old garage opener remote?

I recently took an interest into hardware programming, and instead of buying something like an arduino I was wondering if I can reprogram the microcontrollers on old garage remotes or tv remotes. I ...
1
vote
1answer
247 views

How to program/configure ADF5356 with out using the evaluation board?

I understand how to program ADF5356 on the evaluation board http://www.analog.com/en/design-center/evaluation-hardware-and-software/evaluation-boards-kits/EVAL-ADF5356.html Using http://www.analog....
3
votes
1answer
361 views

ARM Cortex M Power Consumption — Sleeping with Higher Clock Speeds vs. Lower Clock Speeds

I'm starting with Cortex M processors, but I have lots of experience with 8bit MCUs. Say I have a buffer that needs to be updated every 5ms. There is an interrupt that goes every 5ms and the buffer ...
5
votes
1answer
2k views

Significance of ARM SysTick Timer vs. Other Timers?

I'm coming from 8 bit MCUs, and I've used a system timer to generate a periodic interrupt that seems to be the motivation behind the Cortex M SysTick timer? Is there some kind of architectural ...
5
votes
2answers
1k views

Global Variables vs. Pointers in Embedded Design [closed]

I've written a few 8bit embedded systems and the codebase I inherited and have expanded is basically 80% global variables (extern volatile), and than non-global control flags and logic variables as ...
0
votes
1answer
451 views

Writing SPI Flash on Mac

I am not entirely sure whether this question would be on-topic here, but I am stuck on this issue unable to find any relevant answers online in any other sites. I am working on a pet project which ...
3
votes
1answer
574 views

How reliable is it to write eMMC before soldering it?

I am working on a pet project that has both an SPI NOR flash (for bootloader) and eMMC (OS image). For SPI NOR I will provide a small connector to interface directly into it. Now, since I have never ...
-7
votes
1answer
95 views

Where can I learn ALP? [closed]

I am a student and didn’t find any proper video even on YouTube for this. So, Where can I learn Assembly Language Programming of 8085 Microprocessor? It would be very helpful if someone would provide ...
1
vote
0answers
191 views

Solve \$n \times n\$ rectangular grid of resistors for mesh currents

I am modeling a mechanical process by using an electrical analogue. I need to calculate the loop (mesh) currents, then I can see if any mesh current is greater than a predetermined value \$\lambda\$. ...
1
vote
1answer
252 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 ...
0
votes
0answers
987 views

TrueStudio flashing board gives “Unknown MCU found on target error”

I am attempting to flash a custom PCB using Atollic TrueStudio and a Nucleo board. I have the PCB connected to the SWD header on the Nucleo. In TrueStudio I have set the target device and am using ST-...
0
votes
2answers
356 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 ...
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
459 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)...
3
votes
2answers
610 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
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 ...
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. ...
17
votes
7answers
6k views

Is it possible to draw circuits through code?

Is there a better way not by writing netlist files. something like: ...
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?
0
votes
3answers
833 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
729 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 ...
2
votes
1answer
108 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/...
1
vote
2answers
1k views

Using an AVR Programmer to program the TQFP version of ATMEGA328P [closed]

I am attempting to upload the Arduino bootloader and a program to an ATMEGA328P-AU with an AVR programmer. I have done this before using the Arduino UNO board and and the 28 pin DIP version of the ...
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. ...
0
votes
1answer
900 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: "...
10
votes
1answer
453 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 ...
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
460 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 ...
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 ...
0
votes
1answer
100 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 ...
0
votes
3answers
698 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
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
389 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. ...
-1
votes
1answer
758 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 ...
-3
votes
3answers
414 views

Differene between DS3231sn and DS3231mz

Which one is better? DS3231SN have accuracy ±2ppm and the other one have ±5ppm.What is actually meant by the accuracy and what are the other differences.? What type of internal oscillators are used by ...
0
votes
1answer
287 views

How to configure an AVR32 as a USB CDC Device?

I am trying to configure an AVR32(UC3B0512) microcontroller so that it can appear as a Virtual COM Port to the PC. I followed the instructions in this application note, but could not get it working. I ...