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

learn more… | top users | synonyms

-1
votes
0answers
18 views

Arduino Mega not flashable with XBee PRO S2B [migrated]

I have an Arduino Mega 2560 with a libelium XBee Shield. If I have an XBee S2 mounted on it and set the two jumpers to the USB setting or remove them, I am able to flash a program onto my Arduino. ...
4
votes
3answers
212 views

Why set PORTx before TRISx?

I was browsing through the example code that MikroE provides for PIC programming using MikroC, and they always set PORTx before setting TRISx. What is the reason for this? Since TRIS just selects ...
3
votes
2answers
214 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 ...
2
votes
1answer
99 views

Arduino Starter Kit, Color Mixing Lamp Project 4

I just started looking into electronics and circuits. I purchased the Arduino Starter Kit to help get me started. I have a question regarding one of the 15 projects it comes with. Specifically with ...
-1
votes
1answer
64 views

PIC 18F252 config settings help

I need to blink a simple LED with PIC18F 252 but I could not figure out the config settings for doing so. I read the datasheet looking for internal oscillator, but I could not find it. I don't want ...
-1
votes
2answers
74 views

How to program Atmel ATtiny88 (not 45 or 85)? [closed]

There are lots of tutorials for programming the ATtiny45 and 85 with a breadboard and Arduino, but how would I program the ATtiny88? It's an 8 bit AVR microcontroller, but it can not be mounted on a ...
3
votes
1answer
124 views

Should I define default register values in start up code?

It has come to my attention that some ARM programmers set some CPU registers with values that are the same default values of the register on microcontroller reset. For example: the default value of ...
0
votes
1answer
72 views

A program to add 6 bytes of data and store sum and carry in 8085 instruction set

I have a question on 8085 instruction set. A program to add 6 bytes of data stored in memory starting from 4500h. must use b register to save any carries and finally store the sum and carry at two ...
0
votes
3answers
189 views
1
vote
1answer
88 views

Control of electric actuators

I'm new to this forum and I am trying to find a solution to control three small electric linear actuators I have made for my rc controlled model aircraft, they have mini 6 volt geared brushed dc ...
0
votes
2answers
47 views

SPI Slave Flash programming with two masters question

I'm looking to make a system that can be upgraded by a customer in the field and I need to know some conceptual thing before I try implementing my current strategy. Say I have a USB to SPI bridge, ...
1
vote
1answer
103 views

AT89c51RE2 replaced with AT89LP51RD2, ISP programming

have a question I can't seem to figure out the answer to. We have existing boards running off the AT89c51RE2 processor. Works great because it supports In-System-Programming. This means we can use ...
1
vote
2answers
134 views

How to make Arduino Duemilanove Atmega 168 store instructions and act acording to them [closed]

I'm trying to make a small car with Arduino for kids. I have connected 2 DC motors at the end of chassis and one spinning wheel which is able to rotate for 360 degrees and L293NE IC with my Arduino ...
-1
votes
2answers
115 views

Can I program a MSP430553 IC using the TIVA C development board?

I have a few MSP430G2553 ICs. Can TIVA C board (EK-TM4C123GXL) used to program the ICs as I need to buy it for a online class I am about to take ???? If yes, please specify the method to be followed.
0
votes
2answers
113 views

Getting started with an LPC1313 Microcontroller [closed]

I recently purchased this microcontroller along with an FTDI TTL-232R-3V3 cable. I want to program a blinking lights hello world application onto the microcontroller. I was told that I might be able ...
1
vote
2answers
138 views

Programming a ATmega328P on a breadboard - programmer cannot connect

What I am trying to do is program the ATmega328P on a breadboard. I have followed the schematic by which the Duemilanove board was wired to no avail. I have a SparkFun AVR Pocket Programmer that ...
1
vote
2answers
215 views

ISP circuit for AVR microcontrollers

So I was doing a bit of research on the AVR controllers and came across this schematic for programming the chips. After doing research on the 74 LS 254, I realized that either this design is ...
3
votes
1answer
190 views

Problem Reading PIC18F4550 Input

Hi I am facing some problem with Reading the input from a PIC18f4550 , for a simple arrangement where when a switch on (switch = 1), few led should glow., and on releasing the switch the led should go ...
0
votes
1answer
72 views

Programming CC430F5137 using another microcontroller

I have a CC430F5137 and the board schematic all ready for my application to that requires capturing data over bluetooth. I wish to program the CC430F5137 using another platform except the conventional ...
3
votes
3answers
335 views

Should I refactor my C code to optimise it for an embedded microcontroller?

Below is some code implemented on an 8 bit microcontroller. The following comment was posted to another question: As your code doesn't use the i variable, why ...
3
votes
3answers
107 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 ...
1
vote
1answer
292 views

How to set all flags in 8085?

My Microprocessor teacher of 8085 gave an assignment to set all flags ! I have written this little program to set all except Sign, Please help me out ...
1
vote
2answers
137 views

If one has used PIC uC, how different is it to migrate to using a different uC like say Arduino or ARM?

There seem to be quite many vendors making uC and some uC are more popular than others say for example Arduino and PIC because of their low cost and abundant features and ARM because of its high ...
2
votes
2answers
789 views

How different is the Arduino language than Atmel Studio language? [closed]

I see that on the official Arduino website, the reference page contains the functions and vales you would use specified to the Arduino compiler. http://arduino.cc/en/Reference/HomePage What would ...
0
votes
1answer
256 views

Configuration Settings of 18F4550 in a header file

Recently I was wondering if is there any option to move my Configuration bits to a header file?. right now I'm using the 18f4550 microcontroller,with mplabx IDE,and my developed code entirely is in ...
1
vote
1answer
94 views

LTC2498 Temperature Sensor Chip Code via SPI

I would be very grateful for your tips for my present problem definition: I have a microcontroller ATmega128RFA1 with integrated Zigbee with UART-USB(TTL Converter) attached to the PC. From the ...
1
vote
2answers
130 views

Can I program a QUAD SPI Chip with a standard SPI microcontroller?

I have to program a MX25L12835 Quad SPI chip. This is a Quad SPI serial flash. Is it possible to program this using an arduino? Can this be used as a simple 1 channel SPI or can quad SPI interface ...
0
votes
0answers
108 views

How do I program a serial EEPROM IC using a raspberry Pi?

I am trying to program the 25L12835F Serial EEPROM with the firmware of the Pineapple WiFi router. I have the u-boot.bin file from Alfa. I have tried a programmer from eBay, but the software is unable ...
1
vote
0answers
102 views

Electronics Circuits Simulator Framework?

Is there a framework for circuits simulation that I can use through easy APIs? and return me an array of results for each component? I want to build an android based simulator, so a java framework ...
1
vote
2answers
276 views

High Voltage input and output microcontroller

I am new to this, but I am looking to regulate a few ballast controlled fluorescent lamps with a micro-controller. Everything I look at has a low operating voltage and below 10 volt input/output ...
1
vote
4answers
778 views

Delay function in ARM programming

I have just started programming on ARM, I had some experience on AVR but not that much. The question is probably too trivial but the material about ARM is too little on the net... sorry anyways. I ...
1
vote
0answers
90 views

How to debug error of “unknown type name __progmem__”?

I'm using atmel studio 6.1 with a code containing but on compilation conpiler gives error as mentioned above and after googling error,I found that this variable progmem has been depriciated,but no ...
0
votes
1answer
160 views

How do I determine what microcontroller is the right one for my project? [closed]

I have just started developing a tiny GPS trackingdevice that (eventually) will be able to log positioning-data on demand - via SMS commands and/or via a smartphone-application. The device should be ...
2
votes
1answer
122 views

_delay_ms not working with ATmega 16/32

I had purchased an ATMEGA 16 microcontroller and chaged its fuse bits settings and used internal caliberated RC clock with 1000000. Changes done in make file and F_CPU. But it do nothing. Programme ...
1
vote
1answer
94 views

Clocks setup when programming Atmel via ISP?

When programming an Atmel microchip over SPI (ISP), what external clocking do I have to provide to programee? Does it have to match programmer's internal clock frequency, or can be totally different ...
4
votes
2answers
204 views

What concepts in programming are useful in Electronics Engineering? [closed]

I am studying Electronics Engineering. I only took two 3 programming courses. The first 2 are in c++ and I learnt up till pointers, classes and the basics of data structures. The third is mips ...
6
votes
5answers
244 views

How to know usb connection is lost

I am working with AT90USB1287 controller with USB communication to PC. I am sending some commands from PC to controller using USB communication to activate some controlled switch. I am able to change ...
1
vote
1answer
303 views

High-voltage programming of ATTiny13 with AVRISPmkII and avrdude?

I am in the process of learning on how to program ATTiny13-20pu, and am reading this post: http://www.vk2zay.net/article/211 (archived: http://www.webcitation.org/6Imwjmidx ), which explains how to do ...
1
vote
3answers
145 views

What's The fundamental difference between interrupts and delay in embedded programming?

I'm new in embedded programming in C, just getting to understand coding. Is there a fundamental difference between an interrupt function and a delay function? I would greatly appreciate answers with ...
2
votes
1answer
359 views

How to erase PIC microcontroller?

Sorry for such "noobish" question but I've tried to help my son with learning PIC programming. I load some simple asm source into MPLAB and pressed "make and program device main project". IDE build ...
1
vote
3answers
535 views

What do I need to program an ATmega 168?

I use AVR Studio for my compilation and c/c++ code (not arduino).So far I have used a Atmega 2560 development board provided by Nex robotix. I have ISP programmers of the following sorts... AVRISP ...
3
votes
4answers
212 views

Arduino Vs DIY board

The arduino website goes into some of these questions, but not in great detail. So, what is the difference if one were to purchase an Arduino board or make one yourself? What benefits does buying ...
3
votes
3answers
283 views

Logic design for FPGAs using C

I am well aware about programming processors and microcontrollers in C. But can C code (not SystemC) be used for logic design for FPGAs? Are there any specific software tools for this purpose?
3
votes
2answers
197 views

Why are some IC's programmable in circuit, but others aren't?

Why are some IC's programmable while still connected in a system/circuit, but others aren't? What's the determining factor(s) for whether a chip can or cannot? This question stems from my research on ...
1
vote
1answer
162 views

Is programming Arduino a subject of CSE(computer science) at university?

If get admitted in "computer science and Engineering" department of any university, would there be any subject for programming Arduino? This Arduino also looks like a subject of "Mechanical ...
1
vote
1answer
287 views

Xilinx DSP48 Single Slice 18x18 Complex multiplier

I am writing a verilog code for 18x18 complex multiplier using DSP48 single slice implementation in Vertex 4. Here is my code ...
0
votes
1answer
457 views

Programming the 8051 serial

As you see in the figure, programming the 8051 through serial port DB9 connector should be a fairly easy task Connect the two pins of 8051 to max 232 and then to DB9 So the programming circuit of ...
-3
votes
3answers
107 views

Why Hex code not Uploading in Proteus?

I am unable to upload hex code in proteus and get a pop up saying I did this :- Picked up a PIC16 MCU added up a HEX file of the code i created (It is a simple blink code, code is working fine) ...
2
votes
1answer
133 views

What exactly is a Flash emulator, and how does it work?

I read about a flash emulator. Can someone tell me what exactly a flash emulator is, and explain how it works? Is it synonymous with an in-circuit emulator?