Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [programming]

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

0
votes
0answers
42 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 ...
1
vote
0answers
36 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, ...
0
votes
3answers
948 views

Programming microcontroller using UART

I am trying to design a development board with a dialog micro. I am trying to remove the need for a programmer on this board. So that the user could simply plug in a usb cable and be able to ...
1
vote
1answer
223 views

Attiny10 with RSTDISBL and USBAsp

I have some project what requires all GPIO pins of attiny10 so I have to program RSTDISBL fuse. But only programmer I have is low voltage USBasp (with latest firmware supporting TPI interface). The ...
0
votes
0answers
47 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
140 views

STM32F1 -bootpin resistors

The STM32F1xx "Getting Started" app note shows the BOOT0 and BOOT1 pins connected to ground/VCC via a \$10k\Omega\$ resistor, and so that's what I've always done and everything works fine. However, ...
0
votes
0answers
147 views

STM32F723 custom board debugging/programming issue

I am working on custom board design for STM32F723ZET6 MCU. Here is part of schematic. All the VDD/VDDA/VBAT pins are connected to 100nF bypass capacitors and few 4.7uF capacitors between VDD and GND....
1
vote
2answers
80 views

Inside a library of common functions (Instruction Set ----> High Level Program) is there information of how many clock cycles they use?

I am a Mathematical Person. So thinking from that perspective. To make my question slightly more concrete. I was thinking of controlling a hobby servo through a Uart serial data stream. I am ...
0
votes
1answer
78 views

Finding the number of bytes written in a larger array [closed]

How can I read the total number of the bytes written into a larger array? For example if 10 bytes are written in a uint8_t array[100], how can I check if the written bytes are 10 and not 20 or 80 or ...
4
votes
2answers
107 views

Surface Mount package standards guide?

Is there a universal guide-line for the mechanical dimensions and tolerances of Surface Mount packages across the industry? I'm very new to SMT machine programming (<1 year), so I've been trying ...
2
votes
1answer
203 views

How can I program GALs on a shoestring budget?

GALs may be obsolete technology, but they're still readily available, and are dirt cheap. For a hobbyist like myself, they're ideal for small projects that need something a little faster than a low ...
-1
votes
1answer
222 views

How to make a 2d printer easily using arduino? [closed]

Can we use arduino programming and make a simple 2d printer? What kind of equipment are needed?
0
votes
1answer
67 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
4answers
186 views

FPGA how to create delay

I understand that with synchronous FPGA, the whole execution is done in cycles. What happens when my circuit has two parts which give outputs in different cycles (one has greater depth than the other) ...
0
votes
2answers
274 views
0
votes
2answers
841 views

How does an “if” statement and “always@” statement work in Verilog?

I'm trying to program an 8 level stack register for a Program Counter. It is working well enough, but for some reason, when I test it, some combinations of inputs produce unexpected results. This is ...
0
votes
1answer
217 views

STM32F discovery doesn't execute code after programming successfully

I have a stm32f051R8T6 Discovery board, and I compiled a simple blinking LED code to activate the LED's on the board itself. The code builds successfully and flashes the MCU but the MCU won't execute ...
2
votes
1answer
167 views

Why am I not able to compile this assembly code?

When assembling the code, I get the error : fpu.s(13): error: A1240E: Immediate value cannot be used with this operation ...
0
votes
1answer
56 views

AI and Linking it to a circuit [closed]

I have been building a robotic arm for a while now and finally got onto the actual coding side of things. I have been looking around the internet and I’m trying to build some AI code for the arm. ...
-1
votes
2answers
138 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 ...
0
votes
2answers
180 views

how to get fractional delay in picmicrocontroller

i am using 4MHz clock for pic18f452. therefore, 250ns is 1 instruction cycle. is there any way to get a delay of 375ns? using timers, i cant define count in fractions. using inbuit delay function ...
0
votes
0answers
731 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
1answer
126 views

Reuse a S25FL256S SPI 32MB flash module even when it is possibility protected?

This is my weekend toy, a Spansion/Cypress fl256saif00 (S25FL256S), a 32MB SPI module. This chip is salvaged from a Cisco EPC3928 Docsis 3.0 Modem Router (2012). The (first) challenge was to be able ...
0
votes
0answers
334 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 ...
5
votes
2answers
454 views

Programming several AVRs with one ISP: which line to break?

Let's suppose that I have two AVRs connected to one ISP connector. To programm only one MCU in this configuration I neet to break one (or mayby several) lines goes to the MCU I don't want to be ...
0
votes
1answer
76 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 ...
1
vote
1answer
839 views

Programming STM32F3 with Atollic TrueStudio: arm-atollic-eabi-objcopy says No such file

I am using the newly-made-free Atollic TrueSTUDIO for STM 32 and built a CMSIS-based STM32F3 project from scratch. When I try to build the project, I get the following Build Console error: ...
0
votes
0answers
136 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
1answer
192 views

Programming a PIC microcontroller using toggle switches and logic gates. Ideas to suggest?

I saw a guy on Youtube programming an EEPROM using toggle switches and he would press a button to send a clock to the EEPROM for the data to be written. Could I do the same thing to program a ...
-1
votes
3answers
199 views

What could one do with a 4 BIT computer made out of discrete logic gates? [closed]

I want to manually program the 4 bit computer . (Without another computer). I want it to display a message on a LCD display. Let's say a Hd44780 display or a Nokia display. Have a nice day. Here ...
0
votes
1answer
241 views

Shared UART on STM32F103x (or any)

This is one of those beginner questions, so sorry about that. I'm trying to add wireless chip to my current PCB, but there are no more available UARTs on STM32F103. There is one UART (RX,TX) pins "...
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
4k 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
151 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
1k 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 ...
2
votes
1answer
379 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
150 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
128 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
197 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....
4
votes
1answer
327 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
1k 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
928 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
375 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
500 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 ...
-6
votes
1answer
89 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
149 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
231 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
823 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-...