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.

34 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
83 views

Raw programming of an Altera FPGA

I have an Altera Cyclone IV FPGA (for ie) and my question is: is it possible a raw programming of the FPGA? Is it possible to set "manually" the gates for making experiments? Thank you
1
vote
0answers
56 views

Generate XCF file for Lattice Diamond from command line

I am writing a Makefile for Lattice Diamond and have come as far as to cover all steps from synthesis to bitfile. To program the FPGA (a MachXO3L in my case) I looked for a command line tool, and ...
1
vote
1answer
152 views

Programming of ADC in PIC12F675: Not Working Properly

I'm new to embedded systems and I want to program a PIC12F675 for a project. So, the idea is that there is a switch. If the switch is off, the microcontroller normally outputs a clock signal, which ...
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
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 ...
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
0answers
149 views

Problems programming a 29GL256

I've been experimenting with Python scripts and using an Teensy 2.0 ++ to program different flash memories. So far I've found a script to program a 29GL128, which works perfectly, but I'm trying to ...
1
vote
0answers
368 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 ...
1
vote
0answers
502 views

Electronics Circuits Simulator Framework?

Is there a framework for circuits simulation that I can use through easy APIs? and return me an array of results for each component? I want to build an android based simulator, so a java framework ...
1
vote
0answers
903 views

How to debug error of “unknown type name __progmem__”?

I'm using atmel studio 6.1 with a code containing but on compilation conpiler gives error as mentioned above and after googling error,I found that this variable progmem has been depriciated,but no ...
0
votes
2answers
70 views

Reading data from Pressure Sensor

I am having trouble reading data from a pressure sensor using MATLAB. The pressure sensor is connected to an NI 9219 Analog Input Device. Firstly, i tested the device to make sure it is working using ...
0
votes
0answers
32 views

atmega328p is not detecting on USBasp programmer after verify 0 error?

I was trying to burn my atmega328p board which is designed for some wireless application. The ICs atmega328p, esp8266 12f, and ADM7171 are using the same Vcc. Here the Power supply is connected to ...
0
votes
0answers
59 views

Can't program STM32F4

I am really confused and helpless. I made a custom PCB with the STM32F446VE (LQFP100) chip and got it programmed (SWD). After that I made a second PCB where I wanted to solve some Problems regarding ...
0
votes
0answers
67 views

How to get analog input using PIC12F675

everyone. I'm new to embedded systems and I want to program a PIC12F675 for a project. I have most of the code figured, and there is only one thing left. It's the analog input. I tried some tutorials,...
0
votes
1answer
47 views

PIC16F Byte Shift - Assembly Code

Need to shift 3bytes each in RAM buffer to the next 3 RAM locations in a circular manner. The below code is ok, but is there any compact method to do it? ...
0
votes
0answers
13 views

Where to find StdPerieph Library for SPL programming with Nucleo-F746ZG?

I want to start SPL programming with Keil software. I did not find the StdPeriph Library for Nucleo-F746ZG board. Where to find the library on the ST website?
0
votes
1answer
23 views

Using port 0 in AT89C52 without pull up resistors

So at my university professor gave us following scheme to program this double 7 segment display on the right. At start I tried to simply adress it using P0=(someData) although it didn't work. Then I ...
0
votes
0answers
308 views

STM32 Input capture PWM frequency measurement problem using HAL

I'm trying to measure time passed between two external interrupts generated by rising edges of a PWM signal (generated using a IC 555 timer). Point is to determine the frequency of the signal. I'm ...
0
votes
0answers
58 views

AVR ATmega328 low fuse wrtiten and issue

I am using an Arduino Uno as the hardware programmer together with avrdude as the software programmer for flashing an Atmega328. I have noticed PB0 was set to ...
0
votes
0answers
63 views

Programming AT89LP52 microcontroller like an AT89S52

I'm trying to run my code on the new AT89LP52 chip which Microchip (A.k.a. Atmel) believes can be a direct replacement for the AT89S52. I am able to program the AT89S52 with my programmer and ...
0
votes
1answer
46 views

How To Program Atmega256rfr2 using ISP?

I have a new custom built PCB circuit incorporating an atmega256rfr2 chip. I really can't program the chip using AVRISP MK11 based programmer (Olimex brand). But it can program the Atmega328p DIP chip ...
0
votes
0answers
35 views

Can this circuit produce 0, 5 and 12 volts in fixed increments for the AT89LP4052?

Due to the speed requirements of my project, I'm looking at replacing the AT89C4051 with an AT89LP4052 with some code modifications since it offers double the memory and 6x the speed for the same ...
0
votes
2answers
750 views

How to program 89C52

I am new to this site. I am now working on microcontrollers. I successfully burnt hex file to 89S52 using arduino as a programmer. But I want to program 89C52 as this is the cheapest atmel ...
0
votes
0answers
61 views

Mplabx ICD3 PIC18f67k40 programming fpga failed

I'm trying to program my PIC18F67K40. The part is not listed in Mplab 8.92. Installed Mplab X, but my ICD3 will not work. I used the switcher program and it says it was successful. Mplab X sees my ...
0
votes
0answers
53 views

MCP4922 buffer feature

I'm using the MCP4922 as a dac with some different python programs. I am using this python package which has a setVoltage_buffered(channel, value) command. To quote ...
0
votes
1answer
74 views

ATMega32, PetitFS, writing measurements to file

I'm trying to write measurements from external sensor to the file (lets say 1 per second). I'm using ATMega32 and PetitFS. At this moment I'm able to write one measure: ...
0
votes
0answers
922 views

How to write a program for 4-Bit CPU made in Logisim?

So I finally got my 4-Bit CPU working on Logisim, and am trying to get it to do commands and display them, but am unable to do so. My CPU looks like the following: I am trying to implement the ...
0
votes
0answers
144 views

8051 programmer not working when laptop lid removed despite suggestions in comments

UPDATE I took a suggestion of disconnecting my external monitor from my laptop and the results were the same. What I did notice however is that the AT89S52 chip always reports the correct signature ...
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 ...
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
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
0answers
64 views

ABEL-HDL - Default/reset values

I have as a school task to make a clocks & calendar in a HDL. As a source I have 10 MHz oscilator, which I managed to "slow down" to 1 Hz, as I want. I have asynchronous counters for seconds, ...
-1
votes
2answers
146 views

Recording servo movements using pic with CCS C

Here what I am trying to do is control servo motor with a pottentiometer and record its movement using analog to digital converter and than play. I started with just moving the servo. To see which ...