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
31 views

buy lcd controller [closed]

I am decided to buy an LCD display. But I have problem in selecting and choosing what to buy. I am in Australia and looking for something to catch as soon as possible. When I did a search I reached to ...
1
vote
1answer
47 views

PIC 16F887 and the mysterious System Clock Select bit (SCS)

I'm using a PIC 16F887 and I'd like to use the internal oscillator HFINTOSC. To accomplish this, I set the IRCF 2:0 bits to 110 (4Mhz prescaler) and the FOSC 2:0 config bits to INTOSC. Now I should ...
2
votes
2answers
187 views

How many lines of C code (average) corresponds to 1Ko programmable memory?

I'd like to know how many lines of C code in average corresponds to 1Ko programmable memory for PIC18F microcontrollers Or how many lines of assembly instructions ?
1
vote
2answers
161 views

How to control the current output from usb slots of computers?

Is it possible to control output from a computer usb port so, for instance if I have a usb led I can make it blink or do whatever with it. Whenever I send a high signal it would glow and whenever I ...
1
vote
3answers
78 views

Function to determine data size [closed]

I am using eeprom emulator which writes a page of flash of 60 bytes at once. Data to be written to that page is first stored in a 60 byte buffer (array of 60 elements) in ram and then transferred to ...
0
votes
1answer
59 views

how to communicate between 3 devices

i want to communicate between uno, mega and netduino, which protocol should i use i want the uno and mega to send information to the netduino which mean that i don't need duplex connection which mean ...
0
votes
1answer
35 views

Calculating processor utilisation

I'm using a Cortex M3 processor on an LPC1769 board. For this particular situation, all processes occur within interrupts. Therefore, within the main "loop" there isn't actually anything to be ...
-2
votes
1answer
53 views

pic debugging vs programming

I'm using a Microchip ICD 3 to connect to my PIC chip and read the memory. When I connect the ICD 3 as a "programmer" and then select "read" (from the "programmer" menu) and then "View-->"File ...
1
vote
1answer
106 views

Using an FPGA over an Arduino

Having read this excellent answer on FPGA's vs Microcontrollers I have a few queries. I recently completed a project that utilised reflectance sensors. Simply put, it reads the reflectance by ...
1
vote
1answer
59 views

Basic Robotics Help. Variable motor speed control by ultrasonic sensor input on arduino

First, thank you for taking the time to read my post. I am attempting to use an ultrasonic sensor to control a DC motor using the PWM output of an arduino. Fairly simple, I know, but I'm just a ...
0
votes
0answers
21 views

How to program custom iNemo M1 board with STM32F4 Discovery and ST-Link Utility?

I have developed my own ST iNemo based board, and I'm trying to program it with the Discovery board. The iNemo board is connected to the VCC pin of the discovery for the power supply while ...
0
votes
1answer
52 views

Measure frequency of a square wave using capture module

I wrote the following code to measure the frequency of a square wave using the capture module of the PIC16f1788. I wrote the code by following step by step what is required in the datasheet of this ...
0
votes
0answers
35 views

Problem to do programming for “TI-CC2538” using UART

I can not do programming for TI-CC2538(Texas Instrument controller) using UART, even they have mentioned in his datasheet, UART0 can be use for programming but they haven't given boot or ISP pin. Give ...
4
votes
1answer
333 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
104 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
66 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
69 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 ...
0
votes
1answer
47 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
53 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
16 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. ...
1
vote
2answers
128 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
vote
2answers
106 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
37 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
71 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
45 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
34 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
96 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
164 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
130 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
120 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
316 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
36 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
94 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
82 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
30 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
111 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
40 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
70 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
1k 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
581 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
60 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
129 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
235 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
37 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
38 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
145 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
89 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 ...