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
753 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, ...
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. ...
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 ...
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 ...
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
4answers
572 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 ...
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 ...
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
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 ...
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 ...
-2
votes
1answer
252 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
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 ...
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. ...
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 ...
9
votes
5answers
13k 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 ...
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 ...
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
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 ...
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
1answer
522 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 ...
4
votes
1answer
293 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 ...
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 ...