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
2answers
4k views

How to get data from one micro controller to another using UART

My concept is I have two designed boards, One with AT90USB1287, other with ATmega32A both are working properly. AT90USB1287 is talking to the PC via USB. ATmega32A is talking to the PC via USART(...
1
vote
1answer
274 views

Accelerometer and Transistor

Here is my program, I want to: The microcontroller, Arduino UNO R3 sends 3.3V to the sensor, Accelerometer, MMA7361 The sensor turns on and send signal to the microcontroller. When I move the sensor ...
4
votes
2answers
1k views

If YOU were starting out now, what PIC16F-compatible IDE and compiler would you choose, and why?

This is going to be a bit long as I wanted to cover all the obvious questions before they arise, give a rationale to some of my thinking, and prove I've done my groundwork! If time is short, skip down ...
5
votes
2answers
1k views

Why is PIC Programming Voltage Higher Than Vsupply

I work with PIC microcontrollers quite a bit and have never understood why Vpp (programming voltage) is higher than the max supply voltage that powers the PIC?
2
votes
3answers
2k views

MPLAB XC16 compiler outputting 8-bit HEX files for PIC24?

I am trying to understand a HEX file I compiled with Microchip MPLAB X IDE using the Microchip MPLAB XC16 Compiler. Concerning the MCU, I am targeting the PIC24EP512GU814. However the scope of this ...
0
votes
1answer
2k views

PIC Write-Protect Behavior

When I write protect a PIC using the config bits, does it prevent all future programming or can I still reprogram the part if I erase it first? I assume this behavior should be standard across all ...
0
votes
2answers
368 views

PIC24E writing address and increment for ICSP programming

I am trying to program my Microchip PIC24EP512GU814 in ICSP mode. The resource I'm using to do this is the Microchip dsPIC33E/PIC24E Flash programming Specifications (70619B) and the Microchip ...
-2
votes
1answer
2k views

career advice embedded software development? [closed]

I am a fresh BSC electrical engineering graduate and very much interested in the software side. and i have a couple of questions for people who have some know how of embedded software development. ...
11
votes
3answers
3k views

How do companies pre-program chips?

In particular I'm interested in SMD packages. A DIP package I would assume is simply put into a socket and programmed that way. Of course you could get around this by designing a programmer header ...
3
votes
5answers
16k views

How to calculate phase shift between two sine wavefroms

I two sinewave signals with same frequency. I want to measure phase shift between two signals. There will be a small phase difference between two signals. I am using ATmega32-A micro controller and ...
-5
votes
2answers
522 views

problem with reading values in case

I am using ATmega32-A microcontroller and CodeVisionAVR compiler. I am able to read values from an AD7798 external ADC successfully. I am also generating wave from with an AD9833 using SPI ...
-1
votes
1answer
663 views

Logic needed to read and store values

I am new to programming. I have one input signal from waveform generator. I am giving this signal to one sensor and as well as channel 1 of multiplexer. The sensor output is giving to channel 2 of ...
0
votes
1answer
143 views

Program which turns power on/offf

I am a software developer and just started my journey in electronics side. I had this particular idea which I want to do for my project. Problem statement: In my college every room has fans and ...
2
votes
2answers
2k views

Analog to digital conversion

I am using an Atmega32-A microcontroller and an AD7798 external ADC. I am able to set the ADC registers and read back ADC values. I have written the following code: ...
9
votes
2answers
1k views

What is the physical representation of the heap and the stack?

I can easily understand how .bss and the code have physical representations in the processor which has a memory bank for the instructions that a program counter can count up and the bss (block ...
-1
votes
4answers
3k views

What are the pros/cons of C and C++?

What would be the pros and cons of using C++ over C for uC (AVR) programming ?
0
votes
1answer
282 views

Loop is executing infinite times

I am working with an ATmega32-A microcontroller. Using USART communication, I am displaying data on monitor and am using switch case to select different commands. In one of the commands I have written ...
3
votes
1answer
767 views

Problem with while loop

I am trying to read external ADC AD7798 values using ATmega32-A controller. In the datasheet, Status register Bit 7 (SR7) indicates the conversion is finished or ...
24
votes
2answers
30k views

What is bit banging

I am new to microcontroller programming. I am using ATmega32-A controller and CodeVisionAVR compiler. I am using the waveform generator(AD9833) to generate a sinewave signal using SPI communication. I ...
1
vote
1answer
289 views

problem with printing function return value

I am new to programming. I have small doubt, I know this is simple question but I am confused. I have the following function: ...
3
votes
2answers
5k views

Arduino EthernetServer with interrupt

I have an arduino application doing two things in the loop: A webserver that waits for a connection and renders some html forms to change configuration values. ...
2
votes
2answers
455 views

Watchdog Signature in Flash memory or RAM?

We used to use Watchdog signatures in our control applications. Basically we used to allocate a reserved memory in RAM(uninitialized) and used to store the watchdog signatures. On power on, the ...
0
votes
1answer
128 views

I'm looking for a chip which can play media files stored in a pen drive connected to it on LCD tv

I am searching for such a chip which has a usb input to connect a pen drive to it. The chip should have a HDMI output (or any other suitable output) to display on a LCD tv. For example, I have a movie ...
2
votes
2answers
201 views

Algorithm for value range mapping

My question perhaps belongs to general ability test or something like that. It is not directly related to Embedded devices. I have been given a variable resister which can rotate infinitely and is of ...
3
votes
2answers
737 views

Ultrasonic rangefinder (for beginner)

I'm quite beginner in electronics. So, to begin with, I wanted to make a simple (?) ultrasonic rangefinder, based on microcontroller. So I had a few questions for experienced in electronics: What ...
0
votes
1answer
9k views

Arduino Uno replace with Atmega8

Can I take out the Atmage328 and replace with a Atega8 for programing instead of trying to program using a breadboard?
29
votes
3answers
45k views

FPGA programming, where to begin

I'm a software developer (C, C++, objective-c, java ...) and I am interested in learning to program FPGAs. Now the question may appear simple to you but please do take time to help me on this one as I'...
2
votes
1answer
392 views

What's the best way to virtually design and test your circuits?

I've been reading up on some old tech manuals and found that apparently some IC chips where designed and tested in BASIC. While I already have a copy of Eagle and fritzing these are more for board ...
4
votes
1answer
1k views

New C++ (C++11) and embedded electronics

I wonder if the new C++ (which called C++11) works well with the embedded electronics and programming them. Do the new features fit well if working with uC? Like R-Values and so on? Or should be ...
22
votes
10answers
30k views

Programming languages for electronics engineers

I am an Electronics and Communications Engineering student, before I got to college, I have been interested in programming and computer applications. I had focused on designing Windows applications ...
3
votes
2answers
323 views

Programming to read X-10 over USB or Serial

Does anyone here have experience writing a program that would receive signals from Visonic, or other X10 sensors such as door detectors or motion detectors? Essentially, I would like to write a ...
3
votes
3answers
1k views

Microchip PIC10 (8 bit microcontroller) learning reference. Where to start?

So I've generally learned how to use an Atmel Attiny13a, but now I have found that I need to switch to a Microchip PIC 8 bit microcontroller such as the PIC10 series. Can anyone give me some good ...
0
votes
1answer
1k views

Preprogrammed Atmel microcontrollers?

Where can you buy preprogrammed atmel microcontrollers such as the attiny13a microcontroller in a surface mount package? I know you can buy preprogrammed PIC microcontrollers, but not atmel ...
2
votes
3answers
499 views

MCUs programmable by USB or ethernet

The NXP LPC1342 microcontrollers have a built-in bootloader which allows programming the device via usb: The bootloader is triggered by pulling one pin to GND on bootup. The microcontroller then ...
5
votes
1answer
1k views

Led Matrix using PIC

For a project I am working on, I want to build a 9x9 monocolor LED matrix also with 9 push buttons to control the LEDs using the PIC. So far I have gathered that I think I will be needing shift ...
6
votes
1answer
250 views

Final steps in device manufacturing - AVR programming and board assembly

After I have prototyped my circuit and built AVR code for a device I want to sell, how do I go about getting mass production done? Will a PCB manufacturing and assembly shop be able to take the ...
4
votes
3answers
778 views

microcontroller programming

In reference to this question Is it possible to program the LEDs each to flash on consecutively each with its own activation speed in the sequence chase then add some sort of a randomizer ...
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
887 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
176 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
369 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 ...