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
-4
votes
2answers
177 views

FPGA basics and implementation help [closed]

I want to use an FPGA for my project and I want to use an FPGA as I want to implement the functionality of multiplexers within it. Also I want to implement a microcontroller function within an FPGA. ...
2
votes
3answers
10k views

How to control the current output from usb slots of computers?

Is it possible to control output from a computer usb port so, for instance if I have a usb led I can make it blink or do whatever with it. Whenever I send a high signal it would glow and whenever I ...
6
votes
1answer
252 views

Final steps in device manufacturing - AVR programming and board assembly

After I have prototyped my circuit and built AVR code for a device I want to sell, how do I go about getting mass production done? Will a PCB manufacturing and assembly shop be able to take the ...
-1
votes
4answers
756 views

Programming The Atmega Chips [closed]

Can someone explain a little bit to me how to program the Atmega MCU for example the Atmega328P without the arduino?? So, what i want is to program the Atmega chip without Arduino IDE but using the ...
0
votes
0answers
65 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, ...
8
votes
7answers
70k views

How do I write to SPI flash memory?

I'm working on an audio application where instead of storing audio data on an SD card (Waveshield on Arduino) I'm storing it on an SPI flash memory IC and rolling my own board with MCU, DAC, and amp. ...
2
votes
1answer
1k views

Send REST PUT Commands from ESP8266

I am interested in using an ESP8266 to power a physical interface for a network connected device. The device itself supports REST commands, but I am not quite sure how to send PUT requests from the ...
26
votes
2answers
32k views

What is bit banging

I am new to microcontroller programming. I am using ATmega32-A controller and CodeVisionAVR compiler. I am using the waveform generator(AD9833) to generate a sinewave signal using SPI communication. I ...
0
votes
1answer
809 views

How to program an ARM microcontroller?

Is there a way to program the ARM microcontroller without solder it to a dev board? I mean, if I want to develop a product based in the ARM architecture I suppose that I have to use one ...
0
votes
4answers
6k views

Can I program a 3.3V ATmega MCU with 5V programmer (USBasp)?

short question: I have ATMega8A at 3.3V I have USBasp programmer at 5V (from USB port) Can I program this AVR with this programmer directly? Well, ATMega can stand 5V but it's powered with 3.3V so I ...
1
vote
2answers
918 views

How to calculate the total resistance of this electrical circuit

I'm a programmer and I'm making an Artificial Intelligence for a boardgame called Hex. Since I am not that familiar with electrical engineering, I need your expertise on this subject. I am now ...
1
vote
2answers
660 views

using mbed with gps

I am trying to program an mbed micro controller to work with a GlobalSat EM 406 GPS receiver and have got it outputting long and lat to a host computer using the information on: https://mbed.org/...
6
votes
2answers
892 views

Why are there more than one programming channels on PIC32?

Previously, I was working with PIC16 and PIC18 series, and none of them provided multiple channels for programming. Now, I am designing my first PIC32 circuit, and I'm very confused with these ...
0
votes
3answers
156 views

How do I connect a PIC microcontroller to a computer?

I am still a beginner, middle school student, and I recently started taking interest in Arduino, Raspberry Pie, etc. Now I want to play around with the PIC microcontroller, but I can't find a way to ...
1
vote
1answer
881 views

Timers in TM4C123G not working

I wanted to use timers in TM4C123GH6PM (in TIVA C series TM4C123G Launchpad evaluation kit). So I decided to use GPTM TimerA0 in periodic timer mode. I defined the address of the registers of GPTM and ...
4
votes
1answer
7k views

STM32F74x Flash page size and sectors

I am writing data to the internal flash of a STM32F746 and I'm wondering what the difference between pages and sectors is? And what is the purpose of using sectors instead ? Notice that I'm very new ...
0
votes
3answers
321 views

What makes the data to scroll in LED matrix display?

I am not able to understand what is making the data to scroll in LED matrix display. http://www.npeducations.com/2011/11/simple-led-message-scrolling-display.html Is it the shift registers? This ...
2
votes
1answer
840 views

Setting up SPI with sam4s16c

I started programmer for Software and have a professional background with large software projects in c++ and QT. Now I changed the company and also have to write some low level hardware code and i ...
7
votes
6answers
13k views

Failed to get Device ID - PICkit 3 & PIC16F684-ICD & AC16205

Like it is already mentioned in the title I have question regarding this dev stack: MPLAB X IDE v1.80 PICkit 3 PIC16F684-ICD (datasheet) AC16205 There is image of how things are connected (I don't ...
0
votes
1answer
49 views

82c55 as 8 bit latches

I'm trying to make my 82C55 function as three sets of 8-bit latches where I can choose one of them by applying the appropriate logic to A0 and A1 and lowering the WR signal to apply the data from ...
4
votes
1answer
11k views

How to offset program location in memory with MPLABX XC8?

I have a bootloader residing at locations 0x0000 to 0x0fff on an 8-bit PIC18F. How do I tell the XC8 compiler to output a hex file which starts at 0x1000? With a CCS compiler my friend is using, he's ...
52
votes
5answers
43k views

Programming microcontrollers: JTAG, SPI, USB oh my!?

I've noticed, with regards to microcontrollers, there are several way to program them. I am sorta familiar with USB as my Arduino's can be programmed via USB. What is a JTAG or SPI interface? ...
-2
votes
2answers
968 views

How to program a msp430 without bootloader or ISP connector?

I'm looking for a way to program a msp430 microcontroller in-circuit and with all the components SMD, including the ISP connector. Could, in this case, USB still be an option?
5
votes
4answers
27k views

How to Debouce Six Buttons on One Analog Pin With Arduino

I'm using analog pin 5 on Arduino to detect presses from 6 push-buttons. On the picture top-right button is number 1 and then from right to left they go as 2, 3, 4, 5, 6. Program should print 0 when ...
0
votes
2answers
75 views

How to control a device that need to be updated over internet?

I know, the question is very vague, but I'll try to explain better. I'm working in a school project and I got interested in continuing this project after school. It's a automatic aquarium. I want to ...
6
votes
1answer
1k views

Electronic Circuit Simulator API/Libraries

Are there any Electronic circuit simulator libraries/API that I can use to construct virtual circuit simulators like SPICE etc? My main research area is not Electronic simulation since I'm a Computer ...
0
votes
1answer
367 views

Signal that changes (depending on different key presses) is not working

I am writing a code for my FPGA that sends a signal 10 us wide every 2 ms. The code is working great, and now I am trying to implement some new code that will allow me to change the pulse width and ...
0
votes
2answers
196 views

how to communicate between 3 devices

i want to communicate between uno, mega and netduino, which protocol should i use i want the uno and mega to send information to the netduino which mean that i don't need duplex connection which mean ...
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
1answer
193 views

Are all these C type casts really necessary for bitwise register operations?

I find the coding style in the STM32F0 (ARM Cortex-M0 microcontroller) SPL (standard peripheral library) unnecessarily verbose. As an example, here is a snippet of code for configuring the phase ...
0
votes
2answers
130 views

Which kind of Flash supports “Bit-alterable write operations” right now? [closed]

I'm very desperate not to find any suitable alternative for a discontinued PRAM (Phase-change memory) Flash. My colleague has developed a device which uses this PRAM Flash and especially its "Bit-...
1
vote
1answer
101 views

Kinetis K64 Flash Block 0 can't be programmed

I've written my own flash programming functions to be used in a bootloader. I have a small function that actually performs the write operation that is copied into ram so that both flash blocks can be ...
3
votes
5answers
16k views

How to calculate phase shift between two sine wavefroms

I two sinewave signals with same frequency. I want to measure phase shift between two signals. There will be a small phase difference between two signals. I am using ATmega32-A micro controller and ...
-1
votes
1answer
319 views

Parallel programming with SWD pinouts [closed]

I need to program 8 boards with SWD interface device but I have one programmer with 4 channels. Is it sufficient if I connect SWD lines in parallel permanently to all 8 boards and just toggle the ...
0
votes
1answer
263 views

Speedometer using CCP

I made a Speedometer using CCP pin as input. it works. but i have some problem. speed is changed frequently within a range, even using static frequency (When I use a static frequency, It should ...
0
votes
2answers
294 views

What sensor to use to track human presence outside of a room from inside [closed]

I would like to track human presence (or could also be sound). I will place these sensors inside my room and should be able to track these events outside of my room. The door of my room is in-front ...
6
votes
5answers
5k views

Can an operational amplifier circuit be made entirely out of diode Nand and Nor gates?

I'm not sure whether this question has been asked before, but in researching my question, I came across this user's post (at If-else decision structure using op amps or any other non-programmable ...
1
vote
1answer
185 views

Why does this PIC18LF1220 program only two times and after that programming fails?

I have a PIC18LF1220 in 20-pin SSOP package running at 4MHz from internal clock source and 3.3 volts. I have soldered the microcontroller onto a pcb with a groundplane on the bottom layer and the pic ...
-1
votes
1answer
2k views

How to write an efficient C code for a firmware [closed]

This question is about programming but as its about programming electronics so I thought of posting it here instead of stackoverflow . I have just started my electronics projects. I have designed two ...
-5
votes
1answer
179 views

LC-3 Programming [closed]

"Write a program in binary LC-3 machine language. Your program will compute the max of 10 numbers represented in 2's complement format and will store the result in register R5. Your program will begin ...
2
votes
4answers
6k views

PLC rung definition and evaluation

I was reading a book about PLCs (Programmable Logic Controllers). I found this paragraph: "A ladder diagram is read from left to right and from top to bottom... The top rung is read from left to ...
0
votes
2answers
253 views

How and where can I start learning about electronic? [closed]

Maybe it's an off-topic question but I really had no idea where to ask this question As a 17 years old boy, who is interested in learning about computer and devices I figured out, I really need and I ...
0
votes
1answer
690 views

PIC mcu gets programmed but doesn't get executed

I am using 'pickit2' through Mplab to burn my code. Suddenly none of the codes (even blinking led) that I fuse through it gets executed. I confirmed whether it writes the hex code properly using the ...
4
votes
3answers
1k views

Using a microcontroller to program another microcontroller (on a wireless board)

I am working on a project in which I want to include the functionality of reprogramming the main microcontroller via wireless transmission. First, I have figured there needs to be a dedicated ...
0
votes
2answers
496 views

How to check float as hex value?

I am reading 4 bytes from EEPROM to make a float value. The specific eeprom I use(24Lxx Series) has 0xFF as default value. So, if I read four bytes of 0xFF into float variable, it will have ...
0
votes
1answer
112 views

Is there anyway one can toggle a light using a program on a computer?

I am a bit new to electronics, but I am a programmer. The thing is that I want to control one or two lights using my code on my computer Arduino and similar ...
0
votes
4answers
3k views

PIC16F877a input always true

I am programming a PIC16F877a with 3 toggle switches and a 20 x 4 LCD. The 3 switches are soldered to pins B0 - B2 on the PIC. The other end of the switches is connected to +5v (PortsB have internal ...
0
votes
3answers
2k views

Decoding in VHDL - Bit masking

I'm searching for the optimal way to do this in VHDL: ...
1
vote
0answers
369 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 ...
0
votes
1answer
126 views

Programming cortex m0+ soic for coustom pcb [closed]

I need a little help. I have designed a small HAVC system, controlled with different sensors which each is connected to cortex m0+ mcu-s. I have tested my program on development board. Now I have to ...