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

learn more… | top users | synonyms

-3
votes
1answer
28 views

Problems reading the RC1 pin on PIC16F887

I have this kind of problem, that pin RC1 always reads as 0, even when it has high voltage connected. All other pins of PORTC ...
4
votes
1answer
321 views

Why are there more than one programming channels on PIC32?

Previously, I was working with PIC16 and PIC18 series, and none of them provided multiple channels for programming. Now, I am designing my first PIC32 circuit, and I'm very confused with these ...
0
votes
2answers
53 views

How to test if my program for SPI communication is working correctly?

I have developed a simple code for learning about SPI in Arduino Due. The code is compiling properly and now I would like to learn the next step on how to test the code with the board and get the ...
0
votes
1answer
26 views

Unable to use ICD3 with CCS C Compiler

I have recently bought ICD3 since I think that being able to debug a microcontroller program requires that we be able to see what is happening inside it. I really want to learn this stuff :) I have a ...
1
vote
2answers
57 views

Why does MPLAB IDE has so many compilers?

I have learnt that the MPLAB IDE has different compilers like C18, XC8 and HI-Tech. I want to know the following things: Why are there different compilers when one can do the job? Are certain ...
2
votes
3answers
255 views

How to calculate phase shift between two square waveforms with Arduino DUE

I have two square wave signals with the same frequency. I want to measure the phase shift between these two signals. There will be a small phase difference between two signals. (0-90 degree) and the ...
0
votes
1answer
23 views

How to configure the SPI pins(MOSI,MISO,sclk and SS) for ATMEL ATSAM3X8E?

I am using ATMEL studio 6 for programming and novice in embedded systems.At present, I have read the theory working of SPI. I understand that I have to set particular bits to one in the control ...
0
votes
1answer
45 views

Basic AVR flashing LED program is not working

So I have begun with projects using AVR microcontrollers. A few months ago, I got one of these to simply flash an LED but I accidentally cooked that one with a bad power supply. Now I got some new ...
0
votes
0answers
12 views

PCM1865EVM as a bandpass filter

I recently started using the PCM1865EVM evaluation board from Texas Instruments.I am using it to process a signal. currently generated by a signal generator in future it will come from another device. ...
-4
votes
0answers
9 views

programming error buick enclave 2008 [migrated]

I just installed a brand new PCM on my buick enclave 2008 gives me the P0602 code, the vehicle does not work, and some tell me it takes flacher PCM? I would like to know how flacher PCM (the stage) ...
-2
votes
0answers
35 views

Transferring data between two Tiva Launcpad TM4C123GLX Microcontroller using CAN [closed]

How to communicate between two Tiva launchpad TM4C123GLX microcontrollers using CAN in between. Many thanks Shaho
1
vote
2answers
105 views

ADC Read function not working properly

I am working on a school project where I need to read a bunch of analog values and convert them to digital with PIC16F1788(datasheet). I wrote the function using C and xc8 compiler. The problem is ...
-1
votes
0answers
14 views

pci device detection

I am working on a project which uses MPC8641 processor and a no. of PCI-e, PCI and I2C devices. One of the pci device is PEX8114 which is a bridge designed to the PCI Express-to-PCI/PCI-X Bridge ...
1
vote
2answers
104 views

What Language should I use for automated testing? [closed]

I'm the Lab Manager for a small company in the RF industry and I've recently been asked by our engineer to find a more "up-to-date" programming option for automating my bench testing/calibration ...
0
votes
1answer
25 views

Programming an Atxmega for using UART

I started to write a program for an ATXMega. This program should read a command via USART, and then execute this command (i.e. either sending data via SPI or sending data back via USART). But the µC ...
0
votes
1answer
64 views

Biggest variable that is possible to define

I have a lot of data to storage at very fast speed. I can't send them using serial becouse is too slow. I've tryed to use and external flash memory but due some library problem I can't reach writing ...
0
votes
0answers
47 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
40 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
30 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
85 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
82 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
29 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
124 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
83 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
306 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
35 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
80 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
81 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
102 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
39 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
61 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
763 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
560 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
57 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
115 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
172 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
36 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
115 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
82 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
157 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
51 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
63 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
216 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
261 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
86 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
148 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 ...