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

learn more… | top users | synonyms

22
votes
5answers
2k 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? ...
14
votes
5answers
2k views

Survey of High-Level Language Interpreters/Compilers for Microcontrollers

I would like to generate a list of high-level language interpreters and compilers (e.g. something that compiles LISP to C code) for microcontrollers. I've done a bit of research so far that I will ...
13
votes
10answers
3k views

Programming languages for electronics engineers

I am an Electronics and Communications Engineering student, before I got to college, I have been interested in programming and computer applications. I had focused on designing Windows applications ...
13
votes
11answers
1k views

Why is Embedded Strictly C/C++ [closed]

I didn't like this question since it can't be easily answered but perhaps I can rephrase: "What keeps Embedded from changing languages?" For instance, we pretty much see C/C++ for embedded (I think ...
10
votes
3answers
534 views

How do companies pre-program chips?

In particular I'm interested in SMD packages. A DIP package I would assume is simply put into a socket and programmed that way. Of course you could get around this by designing a programmer header ...
9
votes
5answers
6k views

ATTiny13 — avr-gcc Hello World uses over 100 bytes?

I'm trying to write a program for the ATTiny13. My problem is that it has huge size constraints. Well, when making my first Hello World program, it took 100 bytes of program space just to make a light ...
8
votes
1answer
664 views

FPGA programming, where to begin

I'm a software developer (C, C++, objective-c, java ...) and I am interested in learning to program FPGAs. Now the question may appear simple to you but please do take time to help me on this one as ...
8
votes
3answers
4k views

How to Sleep Arduino

How do you program a sleep mode for your Arduino?
8
votes
3answers
949 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 ...
8
votes
2answers
26 views

Is it possible to program an Arduino in other languages?

Is it possible to program an Arduino with other languages that aren't C/C++ based? What would be required to do so? I know that other IDE's are available, I'm curious about actual programming ...
7
votes
7answers
1k views

Functional Programming with MCU(s)

Functional languages like Haskell, LISP, or Scheme allow a programmer to work quickly using the functional programming paradigm. They do have their inefficiencies, but my application places greater ...
7
votes
2answers
155 views

What is the physical representation of the heap and the stack?

I can easily understand how .bss and the code have physical representations in the processor which has a memory bank for the instructions that a program counter can count up and the bss (block ...
6
votes
8answers
2k views

Embedded C programming material

I am looking for some material (books/sites) related to embedded system programming in C language. Here in the lab we have available three plataforms: one Microchip PIC18f4550, one Freescale HC12 and ...
6
votes
5answers
221 views

Programs resistant to hardware issues

I recall at one point reading about embedded development where the programmer took into account things like memory corruption and possibly other hardware issues. For example: If an instruction in ...
5
votes
3answers
234 views

How do I program a PIC12?

I have a PIC12F675 that I need to program. I'm using a Pickit 2 and the Pickit 2 software. Supposedly I should be able to program it using this circuit, but the Pickit 2 software is not detecting the ...
5
votes
4answers
270 views

How to think while working with VHDL or Verilog

All of my experience belong to general purpose programming languages e.g; c/c++ etc where each instructions are executed one after the other but it seems in VHDL/Verilog, all the instructions are ...
5
votes
2answers
236 views

Why is PIC Programming Voltage Higher Than Vsupply

I work with PIC microcontrollers quite a bit and have never understood why Vpp (programming voltage) is higher than the max supply voltage that powers the PIC?
5
votes
5answers
588 views

Cycle counting with modern CPUs (e.g. ARM)

In many applications, a CPU whose instruction execution has a known timing relation with expected input stimuli can handle tasks that would require a much faster CPU if the relationship were unknown. ...
5
votes
2answers
393 views

What's the correct form of this CRC algorithm

We are working on communication between AVR and a Crous PTZ. We found its protocol and now we can turn it on and so. We have problem with its CRC. This is Crous protocol doc (Got it here), at end of ...
5
votes
5answers
1k views

Best practices for production programming of data/NAND flash devices

A project has finally reached the point where prototypes are operational and ducks are lining up in rows for the first pre-production lot of boards. It uses a SOC device that boots its ARM core from ...
5
votes
1answer
469 views

Led Matrix using PIC

For a project I am working on, I want to build a 9x9 monocolor LED matrix also with 9 push buttons to control the LEDs using the PIC. So far I have gathered that I think I will be needing shift ...
5
votes
1answer
806 views

Why does my ATtiny13 report wrong device ID?

I am using an Arduino (with ATmega168) as an ISP programmer to program ATtiny13. When I try to do this, avrdude reports: ...
5
votes
2answers
662 views

Using multiple external interrupts in PIC

I've used PIC16F877 (datasheet) for several projects. For a single external pin change interrupts, you can use PORTB0 interrupt. ...
5
votes
1answer
336 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 ...
5
votes
1answer
171 views

Multi-Device JTAG

I am designing a circuit. it will include ARM LPC1769 and AVR ATmega2560. I want to program these chips with JTAG. Now, the question is: Is that possible to do it with a single JTAG programmer ...
4
votes
3answers
961 views

Will my HEX file fit in my microcontroller?

I have a hex file with a size of 42 kB. Does the size matter while loading it in a microcontroller? Can I load 42 kB hex file in a ATMEGA32 chip which has a memory of 32 kB?
4
votes
4answers
1k views

What causes turning ON an single output pin on a Microchip PIC16F690 to spontaneously turn OFF another pin on the same port?

What causes turning ON an single output pin on a Microchip PIC16F690 to spontaneously turn OFF another pin on the same port? I can work around this problem by writing a byte to the entire port, ...
4
votes
7answers
981 views

Open source pic programmer in windows

I started a project with my students to build a full open source PIC IDE in windows. My first try was to port Piklab to windows but it is dependent on Qt and KDE. We decide then to use Eclipse CDT as ...
4
votes
2answers
272 views

If YOU were starting out now, what PIC16F-compatible IDE and compiler would you choose, and why?

This is going to be a bit long as I wanted to cover all the obvious questions before they arise, give a rationale to some of my thinking, and prove I've done my groundwork! If time is short, skip down ...
4
votes
3answers
482 views

pic 32 starterkit i/o

I just bought a pic 32 starter kit, and since I did little reading before I picked up the product I found that it came with no simple way of accessing the pic32's input and output. I know there is a ...
4
votes
3answers
135 views

ICD3err0045 - PIC16F819 Programming

After posting: Programming/Debugging with ICD3 and PIC16F819-I/P I'm still getting the MPLAB error: ICD3Err0045 - You must connect a target device to use MPLAB ICD 3 My Setup (pinout and wireup): ...
4
votes
3answers
174 views

MPLAB 8: Hotkey for “Program Target Device”

I am looking for a hotkey that will have the same effect as "Program Target Device" from the toolbar or menu. ...
4
votes
2answers
3k views

Which programming languages are supported to program Arduino?

I would like to start to play with Arduino. I've read that C and C++ are the official languages but I've also found other way to communicate using Python or Java for example. Which programming ...
4
votes
2answers
3k views

C/C++/C# programming for interfacing USB to PIC microcontroller

I am a computer sciences student looking to do some PIC microcontroller programming for some small home projects . I am fluent in C/C++/C#/Java and i also have an understanding of programming ...
4
votes
1answer
146 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 ...
4
votes
1answer
1k 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 ...
4
votes
1answer
177 views

How to properly open and close files “inside” a member function? [closed]

I am using Arduino Uno and the Ethernet Shield with a 2GB SD Card. I have the following working code intended to be used to write data on the SD Card (note: the SD Library is properly initialized and ...
4
votes
1answer
351 views

Adding third channel to the PIC32 starter kit `DMA chaining and PWM´ example

I just received my PIC32 starter kit, and played with the demos. I have never used any higher-end uCs than the 8-bit PICs. One of the new things to me in the PIC32 is DMA. The starter kit came with ...
3
votes
6answers
1k 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. ...
3
votes
3answers
2k views

How to start embedded Programming? [duplicate]

Possible Duplicate: How to become an embedded software developer? I am really a new bie and have some idea about embedded C. I want to program embedded devices using my computer and even ...
3
votes
3answers
293 views

microcontroller programming

In reference to this question Is it possible to program the LEDs each to flash on consecutively each with its own activation speed in the sequence chase then add some sort of a randomizer ...
3
votes
1answer
196 views

Implementing a continuous time transfer function in PC code

I have a transfer function like this: \$ H(s) = \frac{1}{Ts + 1} \$ I converted it into a difference equation to solve it iteratively: \$ H(s) = \frac{Y(s)}{X(s)} = \frac{1}{Ts + 1} \\ TsY(s) + ...
3
votes
1answer
670 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 ...
3
votes
2answers
331 views

Ultrasonic rangefinder (for beginner)

I'm quite beginner in electronics. So, to begin with, I wanted to make a simple (?) ultrasonic rangefinder, based on microcontroller. So I had a few questions for experienced in electronics: What ...
3
votes
3answers
285 views

Microchip PIC10 (8 bit microcontroller) learning reference. Where to start?

So I've generally learned how to use an Atmel Attiny13a, but now I have found that I need to switch to a Microchip PIC 8 bit microcontroller such as the PIC10 series. Can anyone give me some good ...
3
votes
1answer
62 views

Storing info bytes in ATmega169PA that remain after reprogramming

Does anyone know if there is a way that I can store 2 bytes of data into an ATmega169PA that will survive re-programming of the device? I would like to store a unique ID into an ATmega169PA that will ...
3
votes
1answer
326 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). ...
3
votes
1answer
123 views

Can I use ICSP if components share MOSI/SCK pins?

I'm designing a circuit with an ATmega32U4 where I will need to burn a boot loader once installed on the PCB. I currently have 4x 74HC595 Shift registers, sharing the MOSI & SCK pins. Will I ...
3
votes
3answers
607 views

How to flash LEDs with a microcontroller?

What I'm planning to do is program a microcontroller to keep track of time and flash LED lights. The features I would need: Decrease/increase interval between flashes Flash specific LED lights ...
3
votes
1answer
63 views

PICkit 3 & PIC16F684-ICD & AC16205 random success with programming

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 ...

1 2 3 4