Questions tagged [programming]

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

37 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
152 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
123 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
47 views

Controlling GL646USB GPIO pins

I have this USB scanner from my dad that was made back in 2002, that apparently uses an old all-in-one GL646USB chip from Genesys to control the stepper motor, CCD sensor and provide some GPIO pins. ...
1
vote
0answers
45 views

SCPI - program signal generator to stack existing signals

I have a Keysight 33500B signal generator and I would like to remotely program arbitrary (ARB) waveforms that consist of existing signals in the device's library, ...
1
vote
0answers
164 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
344 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
146 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
347 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
495 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
888 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
0answers
17 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 ...
0
votes
0answers
41 views

Mecrisp-Stellaris Forth on TI Tiva C LaunchPad

I'm currently trying to load mecrisp forth on a spare tiva c series launchpad (TM4C123) board I have at home and am not having much success. I'm an electrical engineering student and while I've ...
0
votes
0answers
28 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
57 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
57 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
45 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
22 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
249 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
55 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
44 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
43 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
580 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
50 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
49 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
70 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
811 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
359 views

Hantek 6052BE - Software is not responding. Need help to specify the problem. (USB 2.0)

Brief explanation: I've recently bought a PC-Based Oscilloscope Hantek 6052BE (50-MHz). I am pretty sure that I've made all the installations correctly, however when I connect the device to the ...
0
votes
1answer
78 views

How to send the result of a count from the register TMR1 (used as counter in the pic 16f877A) to sevral output pins on the same pic?

I'm using a pic 16f877A with a D/A Converter (AD667) in order to transform the result of a count into a analogue output to use later, but i find my self incapable of sending this 12 bits from the PIC ...
0
votes
0answers
137 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
889 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
23 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
140 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 ...