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
0
votes
2answers
208 views

Programming microcontroller via UART [closed]

Can I program or flash a microcontroller using UART? I previously thought UART is only for communication purposes.
0
votes
2answers
453 views

In-system programming of the SPI Flash chip [closed]

Device have Serial NOR Flash chip MX25L6406E located on the rear of the PCB (SO-8/SOIC-8 Package). Is it possible to program chip without desoldering it? (In-system programming). As I know, it depends ...
-3
votes
1answer
211 views

need c program for 5 minutes timer [closed]

i am building a project for a cycling bath in which the motor goes up and down. the micrlimit switch senses up & down position. once switch is activated motor cuts off and timer starts. after 5 ...
1
vote
1answer
1k 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
1answer
66 views

How to stabilise SPI connection

To salvage a server with a broken BIOS, I am attempting to in-situ program a chip via SPI using a Raspberry Pi 3B: After connecting my clip and wiring it up (and measuring all the leads to ensure I ...
0
votes
2answers
105 views

About PIC programming

Hi friends iam new to PIC programming , I'm coding my pic in mikroC pro , please help me out.. iam attaching my file with this!the code i want is message from transceiver should receiver and check ...
0
votes
0answers
62 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
3answers
2k 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
280 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
55 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
205 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, ...
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
83 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 ...
1
vote
3answers
5k views

What do I need to program an ATmega 168?

I use AVR Studio for my compilation and c/c++ code (not arduino).So far I have used a Atmega 2560 development board provided by Nex robotix. I have ISP programmers of the following sorts... AVRISP ...
4
votes
2answers
133 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 ...
5
votes
2answers
480 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 ...
2
votes
1answer
297 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 ...
3
votes
5answers
6k views

Arduino Mega 2560 stuck at uploading

I have two Arduino Mega 2560 boards, both gives errors when trying to upload sketches (I bought the second board thinking its a fault with the first one, but same thing happen with the new board). ...
-1
votes
1answer
276 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
76 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
278 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) ...
-1
votes
2answers
147 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
1answer
276 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 ...
0
votes
1answer
57 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. ...
2
votes
1answer
208 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
2answers
181 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
980 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
163 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 ...
14
votes
5answers
18k views

LTSpice Automation

I have a battery-powered boost converter and I'm attempting to measure the maximum input (battery) voltage droop under various load conditions of high current draws (different duty-cycles/...
0
votes
0answers
146 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 ...
-1
votes
3answers
361 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
225 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 ...
0
votes
1answer
306 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 "...
0
votes
1answer
290 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 ...
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 ...
-1
votes
2answers
164 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 ...
0
votes
1answer
2k views

10x10 RGB LED Matrix Multiplexing with Shiftregisters Bit Angle Modulation

I've build a 10x10 RGB LED Matrix. The LED's are connectet in rows and colums. Thats 40 pins (30 for RGB, 10 for GND). I got myself 5 74CH595 IC's and solderd everything together. I also added a 1A ...
1
vote
1answer
180 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
150 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
256 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....
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 ...
3
votes
1answer
362 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
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
460 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
583 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 ...
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 ...