We’re rewarding the question askers & reputations are being recalculated! Read more.

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
2
votes
1answer
3k views

Is it possible to use openocd to program an atmega using an AVR ISP (mk2)?

I have an ATMega2560 on a custom board which I want to program with my AVRISP mkii. I have successfully programmed it using the Arduino IDE, and also over the commandline using avrdude. Is there a ...
5
votes
3answers
12k 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 ...
15
votes
11answers
3k 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 i'...
6
votes
1answer
4k 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: ...
3
votes
4answers
4k views

GUI library for HMI Cortex M

Hi I am basically using cortex m3 series of processors for our application. I am looking for some GUI library that can be used for HMI. Is there any GUI libraries available? I recently heard about Qt. ...
2
votes
4answers
2k views

Microcontroller's JTAG interface and PCB

I'm about to start making my own microcontroller circuit (using an Atmega series MCU, at least for the beginning) and I think I'm gonna get the AVR JTAGICE JTAG debugger & programmer. I also plan ...
0
votes
1answer
3k views

How to setup defines in AVR Studio 6.0

Like basic C language I tried making a define as follows ...
1
vote
1answer
899 views

Programming Xilinx XC9572

Can I read and save the program from a Xilinx XC9572 and burn it to another blank DC9572? I have a Needhams EMP30 which has this device on its list. I need the adapter for the PLCC 44 pin to DIP. But ...
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 ...
-1
votes
3answers
177 views

Computer to Electronics controller with programming API [closed]

Basically, I need a way of connecting a computer to some simple electronics; some sort of microcontroller (I think that's the word!). It doesn't need to be to complicated; all I'm doing is ...
1
vote
1answer
452 views

LMB204BDC with CCS Flex 4x20 driver not displaying text

I am trying to get an LMB204BDC LCD screen working with a PIC16F877a and the Flex 4x20 Driver (I'm programming in CCS BTW), however for some reason the text is not displayed. Before, I mistaked the ...
0
votes
1answer
373 views

Starting in circuity, Should I use Arduino? [duplicate]

Possible Duplicate: How to become an embedded software developer? First, I am sorry if this is the wrong stack, feel free to move it to the correct one if possible. I am a rather experienced ...
4
votes
3answers
16k 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 want to ...
2
votes
1answer
761 views

PIC12F617 Device ID read when debugging but not when programming

First time using a PIC12F (I've used PIC16, PIC18, DSPIC24F, DSPIC30F and DSPIC33F in the past). Made a very simple pcb (see sch below), but I'm having problems programming it with an ICD3. Didn't ...
4
votes
1answer
1k 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
4answers
7k views

Simplest way to upload sketches onto “hackduino” without having a arduino duemilanove

Update: The ATmega came bootloaded with the arduino software is that can simplify anything I have this board: I'm looking for a bone-simple way to upload sketches. Ideally without buying additional ...
4
votes
3answers
1k 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 (...
0
votes
2answers
153 views

Which String methods got changed with Arduino 1.0?

It seems that several of the String methods (so far I'm sure it applies to trim() and the to upper/lower functions) in the ...
1
vote
2answers
2k views

Gyroscopes Output Voltage drift when not moving, trivial question

I don't have good experiences with gyroscopes and i would like to ask the question. Do the Output Voltage of Gyroscopes, whether analog or digital, usually drift when it is static? Ideally there is ...
0
votes
2answers
849 views

Rotating Platform That Starts and Stops Incrementally

I'm not sure this is the right place to pose this question, as it probably encompasses more than one field - EE, ME, programming, etc. But I'll ask the question anyway and hope that someone might ...
4
votes
3answers
747 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. ...
1
vote
2answers
433 views

Write an AVR Program

So I saw a post talking about the commercial feasibility of an Arduino (http://electronics.stackexchange.com/questions/11333/commercial-use-of-arduino-is-it-suitable) . From this it said a great idea ...
4
votes
3answers
13k views

Arduino: why does simple include not work

Hello in my arduino code i simple want to include another file like this: #include "letters.h" but it says ...
0
votes
2answers
3k views

Program a PIC16F877A using VB.NET

I have bought a PIC16F877A microcontroller and its board before and since then, I haven't used it much because I don't really have enough time and patience to learn C. I was thinking to buy a ...
0
votes
2answers
3k views

Uploading Program to Arduino Using FTDI Cable or Programmer

I would like detailed instructions on how to go about uploading a program onto an Arduino using an FTDI cable/programmer. I'm just not quite sure what parts to order and how to go about doing it. ...
2
votes
4answers
3k views

Am I able to burn a bootloader and program with an AVR ISP?

I have considered purchasing some ATMega chips as to create simple realizations of projects without sacrificing a dev board (i.e. Arduino) Now I understand the bootloader is required to read from a ...
5
votes
2answers
1k 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 ...
1
vote
2answers
5k views

MOSI and MISO at 89S52

How can I use MOSI and MISO at 89S52 ? can I use serial port from computer, directly connected to these pins ? Any example codes for this function ? Thanks a bunch Anyone has a code example, from ...
1
vote
2answers
1k views

PIC24FJ64GA002 not running at speed

I'm trying to get my PIC24FJ64GA002 running at 32 Mhz. I measure the frequency on OSCO pin, and it's only 4 Mhz. Here's my code: ...
0
votes
1answer
1k views

RF decode logic (not Manchester encoded) - Arduino

Continuing from my previous post, I am trying to decode the encoded RF data directly on Arduino. I've adopted the "sampling" approach, as against the "interrupt" based approach, reason being I believe ...
2
votes
1answer
751 views

Transfer Function of Non-Ideal Transformer

What is the mathematical relationship between primary and secondary windings? It can be either in the s-domain, or a time domain expression. This expression must contain all realistic parameters, ...
4
votes
2answers
2k views

ATmega32u2 fuse bits - can destroy using FLIP?

I want to build some simple application using ATmega32u2, and have it programmed strictly only via USB, by using the factory-builtin USB bootloader on µC, together with the "FLIP" program ...
1
vote
1answer
408 views

End of MFI ? Cable to arduino n others

I am interested in the MFI made for iPod program, and found This $59 Cable Lets You Connect iPhone to Arduino — No Jailbreaking! Programming iPhone Sensors Book I have ordered the cable and will ...
12
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/...
1
vote
2answers
1k views

What type of USB Protocol for Datalogger

I am attempting to create a USB datalogger and would like to first start with creating a program that transmits Hello World over USB not using some kind of CDC communication. I am trying to figure ...
4
votes
1answer
23k views

Code for ripple effect of an 8x8x8 LED cube Arduino

I want to code the ripple effect animation as seen in the first 7 seconds of this video. This is how my code works now. It uses 9 shift registers(74HC595); 8 for the 64 columns and 1 for the 8 layers....
0
votes
1answer
909 views

Is possible to compile and programme ATtiny10 with AVR CrossPack?

For my next project, I would like to use ATtiny10, but I have computer only with Mac, so I cannot use AVR Studio. Can I use AVR CrossPack for programming this microcontroller? I found this article ...
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 ...
-2
votes
1answer
248 views

Understanding MIPS

I have a class where I'm learning MIPS and I have the following MIPS code: ...
2
votes
3answers
429 views

Logic problem with alarm system?

In short, I have a bag that I'm making, the top of the bag is lined with LDR's (3-6), and there's a hidden switch to toggle the alarm on/off. I'm horrible at circuits, but I program, so it looks like ...
2
votes
1answer
1k views

How does one go about programming a PIC microcontroller?

I am working on my first project using a PIC microncontroller, a PIC12F675. How do I load a program onto the microcontroller? I bought this programmer to start, but don't really know how to use it. ...
13
votes
5answers
3k 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. ...
1
vote
1answer
2k views

Generating C code from a Matlab-Simulink: errors encountered during linking

I generated C code from a Matlab-Simulink model (In Matlab help is "Parametric Audio Equalizer" -> "Task 6 - Integrate Device Drivers" -> "Configuration C") with a "Target Preferences" module for ...
1
vote
1answer
1k views

Generating C code from a Matlab-Simulink model for DSP C6748

I'm trying to generate C code from a Matlab-Simulink simple model (eg.: sine wave generator with a DAC at the output). This code must be executed with Code Composer Studio for TMS320C6748 DSP (Texas ...
2
votes
1answer
1k views

PIC pinout function

My device controlling motor using PWM and read data from serial (uart). Previously I was using 40 pin and now only 14-pin. It happenned the "RX" and CCP1 (PWM) are on the same pin. RC5, pin 5. There ...
0
votes
2answers
377 views

ezDSP does not boot with programmed code

I have an ezDSP, and I can program the examples. They work just fine when I open the debugger. When I unplug the module and plug it back in, it always reverts back to the factory test code. How do I ...
17
votes
3answers
33k 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 ...
0
votes
1answer
686 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 ...
5
votes
3answers
4k 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?
1
vote
1answer
2k views

IMU - 3000 with ADXL345 and Arduino

Has anyone used the IMU-3000 with an attached accelerometer? I am creating a system which interfaces the IMU-3000 and attached ADXL345 (IMU Fusion board from SparkFun) with an Arduino board to do all ...