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
0
votes
3answers
312 views

Globlal Variable Problem: Pic18f4550 and Pickit3 Debugging

I'm working on a project which includes the usage of the A/D converter module in the micro-controller (pic18f4550). I haven't had any problems in the past with the micro-controller using a pickit3 ...
7
votes
5answers
2k views

How to start reverse engineering a circuit?

I have an old controller card from a pc which had to control some stepper engines. But there are several problems with it: The pc isn't working anymore, and I have no access to the program which ...
-1
votes
1answer
205 views

Is it possible to connect FT2232D's 3V3OUT pin to VCCIO for USB-JTAG programming?

I want to design a USB-JTAG Programmer with FT2232D. And I want to program Xilinx spartan3 FPGA with it, so I need 3.3 volt logic for VCCIO. Datasheet indicates that FT2232D has an internal regulator ...
0
votes
1answer
377 views

ELAN EM78P156NP microcntroller programming

I am writing program for ELAN EM78P156NP using WisePlus C Compiler ,but my program is not responding when written on micro controller.I am putting the code below please let me know what is wrong with ...
2
votes
1answer
2k views

AtmelStudio 6.2 changes the ISP clock when I try to run a program

I'm having a strange problem with AtmelStudio. I took a few screenshots: Here, atmel studio is open and I check the project settings. ISP Clock is set to 125kHz. This is good. I also check the ...
0
votes
2answers
302 views

No response from AVR microprocessor while programming

I've been attempting to program a few different micro-controllers using nothing but an FTDI 5V TTL cable and self-written software to bitbang the needed pins on the chips. Until now I had success only ...
14
votes
10answers
6k views

Do Electrical Engineers use microcontrollers? [closed]

I've always loved to program, and I just recently became interested in electronics and programming microcontrollers. It is very fun, but I am wondering if I am learning something useful that can get a ...
2
votes
3answers
2k views

Reprogram / modify existing products containing microcontrollers

Is it possible to reprogram a device containing a microcontroller if I know the name of the microcontroller and have the necessary equipment to program a clean microcontroller of the same type? To be ...
2
votes
1answer
103 views

Optimum aspect ratio for storing data in Block RAMs

I am working on Xilinx virtex 4 FPGA. I want to store some filter coefficients in Block RAMs. Specifically, I have many sets of filter, each set having 64 coefficient, each coefficient is of 18 bits. ...
6
votes
5answers
5k views

Can an operational amplifier circuit be made entirely out of diode Nand and Nor gates?

I'm not sure whether this question has been asked before, but in researching my question, I came across this user's post (at If-else decision structure using op amps or any other non-programmable ...
1
vote
1answer
2k views

How to intitalize data in Program Memory

Im using MPLAB IDE & C18 compiler to program Pic18f2550. I have to initialize a const string in program memory to save space in RAM how do I do it ?
3
votes
2answers
3k views

Changing to relocatable code for PIC microcontrollers

I've come back to PIC programming after 10 years and I've been relearning everything. I'm looking at the section in the MPASM manual where it discusses relocatable code. And I've come to the ...
3
votes
2answers
4k views

Do I have to use external clock for ATmega ISP programming after changing fuse bits?

After programming an ATmega microcontroller via ISP (SPI) interface and changing the clock-related fuse bits, I'd like to reprogram it again. Will I have to connect it to an external clock now to do ...
7
votes
1answer
8k views

Possible to re-program microcontroller over Bluetooth?

I am looking at making an embedded design featuring an ARM Cortex M3 MCU and bluetooth. I would like to be able to update its firmware over Bluetooth periodically. Is this possible with the following ...
1
vote
1answer
811 views

Is there a way to avoid an infinite loop and reduce CPU power consumption when using PIC and timer0 interrupt?

I have made a simple program that runs on a P12F629 microcontroller using MikroC. I need to run some time-critical tasks (e.g. increase internal clock, output data to LED matrix, ...). Instead of a ...
1
vote
3answers
342 views

Where do you find out how to program a specific microprocessor?

I have experience with AVRs, by programming them through the SPI port, but right now I'm looking at a Holtek HT46R22 and I can't find anything about how to program this Microprocessor. My question is ...
1
vote
2answers
668 views

using mbed with gps

I am trying to program an mbed micro controller to work with a GlobalSat EM 406 GPS receiver and have got it outputting long and lat to a host computer using the information on: https://mbed.org/...
5
votes
2answers
1k views

ISR - to flag or not to flag?

From what I read on the internet we should respond to interrupts as quickly as possible, when programming microcontrollers; and that flags should be avoided because they tend to compound over time. ...
2
votes
2answers
2k views

Memory locations in AVR hex file

I am trying to understand the hex file generated by the AVR Studio. I wrote a code in assembly. The code is as follows: ...
3
votes
4answers
2k views

What are the implications of a ROMLESS device?

I was looking through the microcontrollers area of Digikey and I noticed a device that i'm interested in although there is the description of "ROMLESS" in the program memory type. http://www.digikey....
19
votes
5answers
74k views

How different are 8-bit microcontrollers from 32-bit microcontrollers when it comes to programming them

Right, so we have 8-bit, 16-bit and 32-bit microcontrollers in this world at the moment. All of them are often used. How different is it to program 8-bit and 16-bit micrcontrollers? I mean, does it ...
7
votes
9answers
81k views

Programming an ATmega328 with Arduino bootloader via a FTDI USB-serial adapter

I would like your advice relating to using the Arduino IDE and avrdude to program an ATmega328 which is preloaded with an Arduino bootloader. I am using a USB to TTL-serial breakout board based on an ...
0
votes
1answer
586 views

Programming an EPROM using 8085 kit

I need to program an EPROM/EEPROM with the code for an 8085. I do not have a programmer. I can't buy one. But I have access to an 8085 kit. Can I use it to program the EPROM/EEPROM via an interface? ...
0
votes
1answer
856 views

Tutorials on embedded programing using Zynq 7020 with ARM processor

Just as the question states. I have been having trouble being able to just test out the programming side of the ARM processor on the TE0720 board. I have been searching online for how to setup the ...
1
vote
1answer
818 views

Program LPC1343 thru USB bootloader with the right FILE format

I'm having a real hardtime programming my LPC1343 with the method mentioned in this question (Can an LPC1343 accept its initial program over USB?). I am using a Linux machine and arm-none-eabi-gcc. I ...
4
votes
3answers
2k 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 ...
5
votes
4answers
27k 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
564 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 ...
-2
votes
1answer
325 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 ...
-2
votes
2answers
3k 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
557 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
2answers
6k 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 ...
1
vote
3answers
6k views

Controling 4 LEDs with 5 pushbuttons and Arduino

My code: ...
1
vote
1answer
942 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 ...
1
vote
2answers
884 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
2k 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 ...
2
votes
3answers
3k views

How to exit from the if statemet which is inside for loop and go back to the void loop in Arduino

My code: ...
0
votes
2answers
756 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
452 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 ...
4
votes
2answers
9k 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
2k 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
3k 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
270 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
627 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 ...
4
votes
3answers
1k 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
3answers
11k 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
3answers
1k 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 ...
7
votes
2answers
17k 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
3k 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
262 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 ...