Questions about programming parts (FPGAs, Flash, etc.) Many software programming questions should be asked instead on Stack Overflow.
0
votes
1answer
51 views
Maximum clock frequency for multi-cycle vs pipeline
Suppose you have latencies:
IF: 10 ns
ID: 11 ns
EX: 12 ns
MEM: 13 ns
WB: 14 ns
What is the maximum possible clock frequency for a pipeline with this design? I ...
1
vote
0answers
51 views
zigbee Range protection
I have a problem with zigbee project. Two things have to work :
1) zigbee range should be minimized to 10m from 100m
2) If a zigbee node moves out of zigbee network, then it should be sensed by ...
3
votes
0answers
113 views
+50
Pipelining architecture execution time with control hazards
Assume the following program is run on a pipelined datapath:
...
0
votes
2answers
60 views
How do I know if my hall-effect sensor is working correctly?
On pg. 18 Figure 5 of this data sheet you will see a pulse train required to program the sensitivity of the A1362 Hall-Effect sensor.
I am using the following circuit:
Using Figure 5 from the ...
0
votes
1answer
47 views
How do we OR two bits in ATxmega128?
I am working with ATxMega128 and programming it in C.
I have two inputs coming from a sensor and I want to turn on an LED when I get output from either of the sensor.
I can blink my LED if i get ...
1
vote
1answer
44 views
How can we alter a single pin of ATxMEGA128?
this might be a basic question but I did try searching for the answer before posting the question.
So, I am trying to set one of the ports to output. I used
...
1
vote
1answer
92 views
Is it possible to program a hall-effect sensor with an Arduino?
On pg. 18 Figure 5 of this data sheet you will see a pulse train that allows for programming the sensitivity of the A1362 Hall-Effect sensor. So far I have tried to manually apply required voltage ...
4
votes
1answer
118 views
How to properly open and close files “inside” a member function? [closed]
I am using Arduino Uno and the Ethernet Shield with a 2GB SD Card. I have the following working code intended to be used to write data on the SD Card (note: the SD Library is properly initialized and ...
2
votes
1answer
41 views
Large range delay at medium frequency for MC
I have a program that varies the step time and duty cycle for a 6 step commutation sequence. It takes an 8-bit ADC result and stores it as the TMR0 value, when TMR0 overflows, the ISR selects the ...
1
vote
5answers
108 views
Micro-Controller Programmable Selection
I have searched a lot and I can't seem to find a micro-controller that I can program in C++. Can someone please help me find a micro-controller (besides Arduino) that I can program C++?
0
votes
1answer
20 views
Value of FNOSC in the configuration of my code
I am using PIC24FJ64GA002 and I have configured my setting for PIC as following.
[code][/code]
...
1
vote
2answers
69 views
Problem on printing “Ethernet.localIP()” to Serial Monitor
I am using Arduino Uno and the Ethernet Shield. I have the following code:
...
3
votes
1answer
102 views
Can I use ICSP if components share MOSI/SCK pins?
I'm designing a circuit with an ATmega32U4 where I will need to burn a boot loader once installed on the PCB. I currently have 4x 74HC595 Shift registers, sharing the MOSI & SCK pins.
Will I ...
4
votes
4answers
203 views
How to think while working with VHDL or Verilog
All of my experience belong to general purpose programming languages e.g; c/c++ etc where each instructions are executed one after the other but it seems in VHDL/Verilog, all the instructions are ...
-1
votes
1answer
79 views
How to ANDed bitwise in assembler?
Say I have a variable set to 30. In binary, 30 = 11110. I'd like to test some bits and then perform an action. For example, if bit 4 is set AND bit 3 is set AND bit 2 is set AND bit 1 is set THEN ...
-2
votes
1answer
107 views
Design of a system to measure the speed of a falling simulated raindrop
I would like to know if using an IR emitter and a photo-transistor would do the job. Here are the specs of the photo-transistor.
Also I'm using the Arduino Uno board; any tips on how to program it ...
4
votes
3answers
89 views
ICD3err0045 - PIC16F819 Programming
After posting: Programming/Debugging with ICD3 and PIC16F819-I/P
I'm still getting the MPLAB error:
ICD3Err0045 - You must connect a target device to use MPLAB ICD 3
My Setup (pinout and wireup):
...
-2
votes
1answer
77 views
How Can I Program a Universal Application Keyboard? [closed]
IMPORTANT NOTE: This is a question from who has no experience and knowledge on this area. So before giving negative rep, please provide constructive suggestion.
I want to program a universal ...
4
votes
2answers
229 views
Using multiple external interrupts in PIC
I've used PIC16F877 (datasheet) for several projects. For a single external pin change interrupts, you can use PORTB0 interrupt. ...
3
votes
1answer
135 views
Arduino Mega 2560 stuck at uploading
I have two Arduino Mega 2560 boards, both gives errors when trying to upload sketches (I bought the second board thinking its a fault with the first one, but same thing happen with the new board).
...
1
vote
1answer
140 views
Programming/Debugging with ICD3 and PIC16F819-I/P
ICD3 passes internal test with MPLAB IDE using the Test Interface Module
PIC16F819-I/P supports ICSP and In-Circuit debugging source.
ICD3 pinout is as follows (source):
...
-2
votes
1answer
149 views
How can an experieced programmer get into embedded programming and robotics [duplicate]
Possible Duplicate:
How to become an embedded software developer?
I would like to know what is the best method to begin learning embedded programming and electronic skills? I am already ...
3
votes
1answer
135 views
Implementing a continuous time transfer function in PC code
I have a transfer function like this:
\$ H(s) = \frac{1}{Ts + 1} \$
I converted it into a difference equation to solve it iteratively:
\$
H(s) = \frac{Y(s)}{X(s)} = \frac{1}{Ts + 1} \\
TsY(s) + ...
0
votes
2answers
106 views
Converting 10 bit (2:8) value to 14 bit (6:8) result
My C skills are seriously lacking, and I haven't come up w/ a good way to do this on 8 bit architecture. I've tried shifting by 4, but then I lose digits, I know I can just multiply my 10bit result ...
5
votes
1answer
150 views
Multi-Device JTAG
I am designing a circuit. it will include ARM LPC1769 and AVR ATmega2560. I want to program these chips with JTAG. Now, the question is:
Is that possible to do it with a single JTAG programmer ...
3
votes
6answers
659 views
How do I write to SPI flash memory?
I'm working on an audio application where instead of storing audio data on an SD card (Waveshield on Arduino) I'm storing it on an SPI flash memory IC and rolling my own board with MCU, DAC, and amp.
...
3
votes
1answer
319 views
How to offset program location in memory with MPLABX XC8?
I have a bootloader residing at locations 0x0000 to 0x0fff on an 8-bit PIC18F. How do I tell the XC8 compiler to output a hex file which starts at 0x1000?
With a CCS compiler my friend is using, he's ...
1
vote
4answers
198 views
Any microcontrollers which can be directly programmed on a breadboard? [closed]
Does anyone know of a microcontroller which can be directly interfaced and programmed through a PC using serial/parallel/usb port? I am looking for a microcontroller which can be plugged into a ...
-1
votes
1answer
198 views
Programming a Baby Orangutan using Arduino Uno?
I have the following setup:
Arduino UNO without the chip:
Notice that the Atmel chip is missing.
And i have a Baby Orangutan:
The orangutan burned with Arduino Uno R3 Bootloader.
I connected ...
-1
votes
2answers
347 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 ...
1
vote
1answer
148 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 ...
0
votes
0answers
70 views
NetFPGA testbench
I'm aware of the normal way to build a new project for verilog and I'm aware that normally the projects are initiated with a script, however; can I ask if their are any standalone testbenchs that I ...
4
votes
2answers
220 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
180 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?
1
vote
3answers
268 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
116 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
66 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 ...
0
votes
1answer
164 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.
...
10
votes
3answers
491 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 ...
0
votes
4answers
2k 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 ...
-4
votes
2answers
170 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
137 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
115 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 ...
1
vote
2answers
252 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:
...
7
votes
2answers
144 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
277 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
127 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 ...
2
votes
1answer
166 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 ...
8
votes
3answers
642 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
100 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:
...