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
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
845 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
717 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
429 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
12k 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
742 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 ...
11
votes
5answers
17k 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
22k 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
883 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
239 views

Understanding MIPS

I have a class where I'm learning MIPS and I have the following MIPS code: ...
2
votes
3answers
426 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
375 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
32k 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
647 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 ...
1
vote
3answers
4k views

How to import a library into a Arduino program?

I have a Arduino program wich make use of the processing library. The program code starts with import processing.serial.*; When I try to compile it with the ...
12
votes
8answers
5k 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
5answers
6k views

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

What causes turning ON a single output pin on 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, ...
2
votes
3answers
4k views

How do I in-system program LPC17XX?

I plan to buy an mbed module to get started with NXP LPC17XX. Developing and downloading code seem the easiest possible. What are my options for in-system programming this code in non-mbed devices? I ...
4
votes
1answer
292 views

Programming Interface for TI DSP

I'm about to design a PCB for a project with a TI DSP (TMS320C6720). What is the best method to use as an interface for getting the program onto the DSP? I haven't done this part myself before. I'll ...
7
votes
8answers
3k 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 ...
0
votes
3answers
1k views

programming atmega chip

I have built a Ponyprog programmer to find out Windows 7 cannot recognize the drivers. I was wondering if I could use this "Pocket AVR Programmer" to program an atmega 8535? If so, how do I connect ...
4
votes
7answers
2k 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 ...
5
votes
5answers
3k 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 ...
2
votes
3answers
597 views

Looking for a PIC board with webserver [closed]

I am looking for a PIC which has a webserver builtin or has the ability to install one(with) . I want to experiment connecting in reasonable price please)two PIC/PICAXE boards or different type and ...
4
votes
3answers
730 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 ...
1
vote
1answer
1k views

Unresolved symbols building a code composer 3 project in code composer 4

I downloaded a program from texas instruments, PMSM3-2, which is made for code composer studio 3. I only have code composer 4, when attempting to build it I get the errors: ...
2
votes
1answer
578 views

XDS510PP-PLUS JTAG Emulator on windows 7

I'm trying to use a spectrum digital XDS510PP parallel port to jtag emulator to program an ezdsp board. It's not working and I don't see any problem except that it only supports up windows XP. Is it ...
2
votes
1answer
521 views

How do you get a program onto an eZdsp board?

I'm using an eZdsp board which has a TMS320f2812 chip on it. The board has a parallel port on it which is used to program it. I'm experienced with software but not at using microcontrollers or DSPs ...
20
votes
5answers
4k 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 ...
0
votes
4answers
562 views

iPhone programmable caps

Anyone have any details on how to make a programmable capacitor? Is it some fancy op amp trick? EDIT: I suppose I should be more clear. The new iPhone 4 is having severe antenna problems, because ...
166
votes
16answers
81k views

Is C++ suitable for embedded systems?

A common question, here and elsewhere. Is C++ suitable for embedded systems? Microcontrollers? RTOSes? Toasters? Embedded PCs? Is OOP useful on microcontrollers? Does C++ remove the programmer too ...