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

learn more… | top users | synonyms

0
votes
0answers
24 views

Pic debugging not working with PicBASIC pro compiler, mplab x 2.26 and pick kit 2

I'm trying to get debugging working using mplab x v2.26 ide and PicBASIC pro compiler. I have successfully configured the ide to use the compiler, but when I try to debug (I have set a breakpoint in ...
2
votes
1answer
36 views

Managing addresses of interrupt service routines and functions of the program in cortex M0

I am working with nordic nRF51422 uC with cortex M0 core and I have to store data in Non-Volatile Memory but to do that properly I need information where exactly code of the program is stored in ...
0
votes
1answer
27 views

How to use the simulation in atmel-studio properly?

I wanted to start a bit ┬ÁC development with the Atmel Studio 6.2, and therefore my first step was to compile a small program for simply switching a pin from HIGH to LOW and back all the time. I took ...
1
vote
1answer
80 views

Do global variables consume more power than local variables in embedded systems?

Today my colleague from work said that access to global variables on microcontrollers consumes more power than access to local variables, unfortunately she did not explain that. At the beginning, ...
0
votes
0answers
31 views

DIY JDM pic programmer voltages

I have a ftdi usb->ttl chip and some resistors lying around and want to program some pics without spending loads on a programmer. As far as I can tell the only pin here that needs to be shifted to 12V ...
0
votes
1answer
24 views

Which is the “write enable” pin of flash memory in Stratix IV GX?

I am trying to use flash memory in Stratix IV GX fpga kit. For that I went through the pin details of the same. But the I was expecting "write enable" which will determine data is to be written to or ...
2
votes
2answers
119 views

Writing one program for different microcontrollers

I got 2 totally different microcontrollers (one is 16-bit MSP and another 32-bit nordic). They are supposed to do the same task and I thought that maybe it would be posible to write one program in C ...
-3
votes
1answer
60 views

flow meter that displays litres per hour [closed]

for the past 2 week iv just started my first ever project to make a c program on the software called mikroc where i would get pulses in from the flow meter and calculate the flow rate of how much ...
-1
votes
6answers
294 views

How to program a clean microcontroller? [closed]

To be specific, i am interested if there is a way to buy a clean microcontroller (doesn't matter whether it is Atmel or Pic), program it and implement it into your circuit board, without any ...
1
vote
1answer
33 views

Computer Science + Electrical Engineering Project, Angle Projection [closed]

I'm looking for some help in a project of my own that i can't get off the ground. I wanted to make some mechanism that can automatically shift to a certain angle based on computer input. Ex. On a ...
0
votes
1answer
67 views

need help making a c program that reads flow meter

For the past week, i've just started my first ever project to make a C program for a PIC16F877A under MikroC, where I would get pulses in from the flow meter and calculate the flow rate, then output ...
0
votes
3answers
80 views

Integrating code for embedded systems [closed]

I wonder how looks integrating code for embdedded systems. Lets suppose there are 5 programmers and everyone is doing something different. Then I am supposed to integrate the code. How do I know if it ...
-1
votes
1answer
29 views

What's the order of the array generated by Verilog? Syntax

What is the correct interpretation between these two lines: wire[2:0] w = SW[17:15] = {SW[17], SW[16], SW[15]} wire[2:0] w = SW[17:15] = {SW[15], SW[16], SW[17]} When I call w[0] will I get SW[15] ...
2
votes
1answer
92 views

How do for loops work in verilog? Why can't I achieve what I want?

This is my code for a simple 2-1 8 bit multiplexor, where SW[17] is my selector. If it is on, show Y = SW[15:8], if it is off, ...
0
votes
1answer
36 views

visualdsp++ programming with labview

I would like to program a Blackfin processor with labview or in C with visualdsp++. Any book or notes please. Thank you.
2
votes
1answer
59 views

Anticipating processing delay in embedded systems

Background: I have been working with the STM32F3 discovery board and I am trying to implement some signal processing algorithms from the ground up. My problem is shown below in the graph. The more ...
9
votes
5answers
581 views

Freescale Kinetis KE - writing to flash

I've been using various microcontrollers and microprocessors for many, many years now but I seem to be stymied by the Kinetis KE series (specifically the S9KEAZN64AMLC). Jan 17, 2015 TL;DR: ...
9
votes
4answers
548 views

ICSP or Pre-Programmed Microcontroller

I've designed a PCB for small scale production; currently I'm hand soldering them in batches of 20 at a time. This PCB uses an ATMEGA168 microcontroller which I program before soldering to the board - ...
0
votes
2answers
53 views

what is the problem with led trainer in arduino?

currently I am trying to develop a light trainer by arduino , as a begging I used 3 led and 3 push button ,the led must work randomly and when the ledX is flash the user press push bottonX and so on ...
-3
votes
1answer
110 views

How to program a msp430 without bootloader or ISP connector?

I'm looking for a way to program a msp430 microcontroller in-circuit and with all the components SMD, including the ISP connector. Could, in this case, USB still be an option?
1
vote
1answer
45 views

Handling variable length commands with pauses in transmission

I have my embedded system and I send many different commands to it using PC via RS232. The issue is that each of command consists of different amount of bytes. What is more there is possibility that ...
0
votes
1answer
133 views

Using a Arduino Pro Mini to power more than 2 servos

I don't know very much about Arduino, but from some basic research I have read that the Arduino Pro Mini can only support two servo motors. I am trying to create a set of reaction wheels using hard ...
0
votes
1answer
33 views

display multiple data

I want to display 4 different data on a multiplexed seven segment display .I am able to display 2 data for a certain interval ,now i want to expand this to 4.How to do this . ...
0
votes
0answers
35 views

Introdution to CUPL with Example?

I want to introduce with CUPL programming but i need a example.for example if i write a hex bcd to 7 seg decoder how i write it in CUPL?(I can write it with verilog but i want it into CUPL)
-1
votes
2answers
97 views

Is PIC microcontroller PIC16C72 and PIC16F72 almost the same from a programmer's perspective?

I just wrote a program to use in PIC16F72. I was trying to simulate it on Proteus and I found that Proteus doesn't have that microcontroller in its library. I read somewhere that PIC16F72 and PIC16C72 ...
2
votes
3answers
75 views

Curious how does ALU addressing work like in Assembly code?

When writing assembly code, say R1 = R2 + R3, it is pretty easy to understand the addressing procedure because all registers are close to the ALU. But I find it hard to see how does the ALU go to the ...
2
votes
5answers
142 views

Editing/Hacking 8031 Eprom code

Not sure if this is the correct place to ask such a question, but here goes. Ok so I mess around with an old 80's drum machine a lot. It's based around an old 8031 Processor Program code is stored on ...
0
votes
0answers
40 views

How to open recent schmatic on Tanner Eda Tools v13.0

This is my first time working with Tanner Eda Tools. I designed the circuit and then I saved the T-spice and S-edit and exported the PDFs successfully. My first problem is that I couldn't open my ...
0
votes
2answers
69 views

Choice of the appopriate conditional statement

I'm measuring the width of a PWM puls with the external interrupt: ...
0
votes
1answer
61 views

PIN selecting problem over arduino

My schematic as below. I have connected 8 hall sensor as shown in picture. Problem i am facing here is SO, s1, s2 The Led light are not glowing .Even the forard voltage across is 3.9v. i have tested ...
0
votes
1answer
186 views

Temperature stabilization with PWM , PID controller with delay system

I am doing a project to control the temperature with PWM. I use peltier, thermistor,mcu and h-bridge mosfet. I want to reach a temperature with an error less than 0.05 and stay at that temperature ...
0
votes
3answers
226 views

I'm trying to implement interrupt from RB pins. But it doesn't work

I'm new to PIC programming. I made a program to get interrupt from RB pins. but it doesn't work. My code is as follows: ...
0
votes
0answers
82 views

Reading of data from USB2LPT cable IEEE 1284 controller

From PIC controller, I want to read parallel port data using this USB2LPT converter cable. At every print from PC, I just receive 0x1B, and then printing stops. I am using ...
0
votes
2answers
143 views

What would be a good language interpreter to implement into a Microcontroller [closed]

For beginners it is always a problem getting started with microcontrollers. The biggest problem is getting the whole system running and then programming it with C. C is a great language but it has its ...
1
vote
1answer
64 views

How does the PIC's PMCON1.WRERR bit actually work?

I know from the datasheet that it gets set automatically on a rising edge of the WR bit and cleared automatically on a successful completion. Thus, if it's still on, then something went wrong. So ...
-1
votes
2answers
143 views

Can I use math functions in PIC16F877A code?

Can I use exponential (exp) math function in PIC16F877A code? For example like this: double a,ans; a=5.7; ans=exp(0.5);
0
votes
3answers
139 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
1k 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
68 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
0answers
48 views

Elan microcontroller program not working

I am writing a program for an ELAN EM78P156NP using the WisePlus C Compiler, but my program is not responding when written on microcontroller. Below is the code written, please let me know any ...
0
votes
0answers
179 views

Programming pic24fv32ka301 only works after resetting by turn off

I am only able to program my pic24fv32ka301 after I turn the power off and on. When I try to program the pic without resetting the device, one of the two errors is displayed: ...
0
votes
1answer
85 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 ...
1
vote
1answer
211 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
0answers
83 views

Using the UHD (USRP Hardware driver)

I've compiled and built an USRP Hardware Driver (UHD) and want to understand how this driver works. I need to understand the form in which it sends data to a USRP-device, but without using an actual ...
0
votes
2answers
105 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
3k 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 ...
0
votes
3answers
115 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 ...
0
votes
0answers
68 views

ELAN microcontroller programming

I am new to ELAN microcontrollers , I am trying to program EM78P156N using UWTR from ELAN. I am facing problems as I do not know the correct procedure to program ELAN controllers. Can anybody please ...
2
votes
1answer
41 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. ...
3
votes
5answers
1k 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 ...