Questions tagged [programming]

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

46 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
164 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
84 views

PIC Alternate Pin Function for PWM

I am using a PIC12F1571 which have 3 PWM pins and two alternate PWM pins. What I want to achieve is to use the 3 original PWM pins and the switch to an alternate pin in software in order to get a 4th ...
1
vote
1answer
109 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
184 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
358 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
238 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
53 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
361 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
157 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
427 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
516 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
944 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
9 views

Issues with ISP Mode LPC 17XX

I have custom board utilising an LPC 1778 and I'm having issues entering ISP mode, or at least I think I am. I am using the ISP pin and the reset in to enter ISP mode. By holding the ISP pin low and ...
0
votes
0answers
30 views

Arduino issues on reading inputs from some buttons

I'm building a sort of joystick with atmega328p: For the moment, I have only written the code to visualize on the OLED display if we press a button or move the joystick. Let's focus on the four ...
0
votes
0answers
59 views

I am not able to control speed of a DC motor

I am making an Arduino project in which I have to control speed of DC motor with an ultrasonic sensor. I have written an Arduino program to do this work but unfortunately my motor only rotates in ...
0
votes
0answers
37 views

STM32L011x3/4 TSSOP14 pinout schematic

Can someone who understands the bad subject in english can fix it schematic where exactly is the error ST-Link V2 debug programs error
0
votes
0answers
16 views

Are there command options for Digilent Adept software?

Recently we started using a Digilent Genesys2 board to emulate our SoC design. To program and control the board, we are using the Adept utility on a Windows 10 PC. This utility allows us to download ...
0
votes
2answers
38 views

Voltage controlling a SMPS via a potentiometer by Arduino

I have started a new project. The idea is that in a SMPS we will have the potentiometer at the back so that when we vary the pot the output voltage will change. We are currently doing it manually, but ...
0
votes
0answers
17 views

time step too small error in protus

I simulated two triangular wave using 555, then I make shifter circuit to shift negative part of two signals to positive , to can use it in arduino, but time step too small error appear. So what can I ...
0
votes
0answers
30 views

How to Select Prony Method Order?

I'm implementing a Prony decomposition to analyse power system signals in python. I think the code is generally working, but reconstructing a signal from the decomposition shows that it's not "perfect"...
0
votes
0answers
20 views

PIC32MX460F256L connection concern

I've recently aqquire a board which have an embedded PIC32MX460F256L of a project and working on. Nonetheless I'm not being able to connect to connect the MCU to my desktop even when I used MPLAB ide. ...
0
votes
0answers
54 views

Wireless serial programming without the need to press a button to program it

After a long play, I made this adapter to be able to program a Pro Mini wireless via BlueTooth. The long play wasn't the adapter but the settings of the BlueTooth module (baudrate is fixed and need to ...
0
votes
1answer
60 views

Digital Root Locus in Scilab

I have the following digital plant: \$G(z)=\cfrac{z+1}{(z-0.3)(z-1)}\$ I want to use root locus to design a system with: (1) position error=0; (2) overshoot \$\leq 10\%\$ (3) settling time \$\...
0
votes
1answer
83 views

PLC ST programming

I have a mathematical model of two dynamical systems which I need to implement in PLC. But I don't know how to implement differential equations in structured text language. Any suggestions on that ...
0
votes
0answers
51 views

ESP8266 auto-program circuit with DTR only and without RESET pin (turn off>on VCC only)

In the NodeMCU board, there's a very usefull auto-program circuit to avoid pressing buttons or change wires. This is the schematic: I have some ESP8266 already soldered on PCB and they does not has ...
0
votes
0answers
35 views

Sending an arduino program via bluetooth

I have a bluetooth equipped Windows PC. I also have a Bluetooth Bee Standalone (BT integrated with microcontroller). Does anyone know how to send a program from the PC to the Bee and possibly start ...
0
votes
1answer
66 views

Atmega328 Project

I want to make a sound system circuit using Atmega328. I want to connect a memory port for store sound files, If I use a single USB, Can I use this single usb for both file transfer to memory and ...
0
votes
0answers
39 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
103 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
49 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
1answer
42 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
1answer
769 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
82 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
1answer
54 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
37 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
1k 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
77 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
69 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
0answers
1k 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
189 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
6k 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
1k 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
68 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
1answer
16 views

Which debugger should I use to flash: RTL8710AF wifi SDK by Keil or IAR IDE

I just bought a Realtek wifi module RTL8710AF and also found its TCP/IP stack Using IAR Workbench but I am confused in choosing the right debugger and its connection to flash my application program.
-1
votes
2answers
157 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 ...