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

Read voltage is outside of operating range

I wanted to program my AtXMega16A4U with an Atmel ICE Basic, using Atmel Studio, but even if the supply voltage on the µC is at the perfect range (3.3 V) I get the error "Read voltage is outside of ...
-3
votes
3answers
110 views

How can I get started with electronic engineering [closed]

How can I get started with electronic engineering i have no experience what so ever but i do know programming languages like java and c sharp. so how can I get started i have budget like $100
0
votes
0answers
20 views

About reading registers of STC3100

I am writing my code for stc31oo registers in C language and i am facing while reading the current registers that how to read these. i wrote this program for REG_CURRENT_LOW AND REG_CURRENT_HIGH ...
1
vote
0answers
52 views

UART1_read_text() delimiter problem [closed]

I am writing a code for Pic18f45j50 to interface with a Quectel m66 GSM module. So, I've written a function to send AT command and return if get a proper reply. ...
0
votes
1answer
31 views

PIC18F45J50 UART remappable problem

Hello i need help with the Remappable UART communication on pic18f45j50. so here is my code compiled using Mikroc Pro for pic ...
0
votes
1answer
74 views

How to program modules on assembled PCBs?

Suppose a Bluetooth module like the HC-05 is part of the PCB design. During production, how/when are the modules programmed? Is each programmed before or after assembly? If it happens after assembly, ...
1
vote
1answer
62 views

How to figure out how much time you have for writing to flash when voltage source breaks down?

I try to figure out how I can make sure, that my controller (STM32F030K6) is always able to save a 16 bit integer to the flash when the power is breaking down rapidly. This controller has an Analog ...
0
votes
1answer
54 views

Building a bluetooth buzzer

I'm hoping to build a simple bluetooth buzzer using a Serial Port BLE module: HM-10. When a slave connected to it, if the slave sends a certain predefined message, the buzzer sounds for one minute. ...
10
votes
2answers
373 views

Inbuilt flash memory size not enough

I am using TM4C1230C3PMI controller from Texas instrument in one of my project. It has 32KB of internal flash, which is not sufficient for my application. Higher flash sized micro-controller are ...
0
votes
1answer
32 views

“DB” data directive explaination [closed]

What exactly is initialization of code memory IN 8051? Does the db directive command DB "SAM'' burn data into ROM location? WHAT DOES INITIALIZING WITH A BYTE VALUE MEAN ? I am all confused? I ...
0
votes
0answers
39 views

Why use decode stage on pipeline to forward control signals?

In a pipelined processor we use decode stage to decode an instruction and forward the control signals that were found until they are used. Why we don't pipeline the whole instruction and let each ...
-1
votes
1answer
45 views

I2C programming ATTiny88

I am beginner at programming uC's. I have read all the tutorials on what is I2C and how it works, but I couldnt find any help specific on how to create a connection between my sensor and ATTiny88 ...
0
votes
2answers
107 views

How to read firmware from Altera's FPGA (Cyclone IV) with USB Blaster?

I'm starting to investigate Altera's Cyclone IV FPGA to use in my projects. Now I borrowed from neighboring company a real device with USB Baster Rev.C. I'd try to use one instead of evaluation board ...
0
votes
2answers
52 views

ICSP design problem on PIC16F628A

I just added the ICSP port on this schematic here however, when the programmer powers the circuit from the ICSP (pin1 +5V, pin6 GND) it also polarizes the relay and the bs170. If for some reason ...
1
vote
0answers
60 views

When C++ replaces C? [duplicate]

In which cases is C++ necessary when we are programming microcontrollers, what are the situations when C++ replaces C language? Just give some examples. I'm asking this because I want to start ...
1
vote
1answer
264 views
0
votes
1answer
142 views

Serial Communication with rs232/485 and rj45

I am working a project where I want to connect and control, using Labview, TDK-Lambda Power Supply Process Vacuum Controller Ion Gauge (MODBUS interface) They both have rs232/rs485 capabilities, ...
1
vote
1answer
71 views

Programming MSP430 based chips (sans Launchpad)

I'm wanting to move into working with the full range of MSP430 chips, especially their Ultra Low Power versions. As I understand it, I'll need the chip I want to program, a JTAG programmer, and the ...
0
votes
2answers
97 views

PIC16F877 blink program uploads correctly but nothing happens - hardware or software mistake?

I made a custom board based on a PIC16F877 but for now I only soldered the minimum. I installed MPLABX and the XC8 compiler, connected the ICD3 to the board, adapted a "blink" example to RD0 where my ...
0
votes
0answers
34 views
0
votes
3answers
170 views

Can I program a 3.3V ATmega MCU with 5V programmer (USBasp)?

short question: I have ATMega8A at 3.3V I have USBasp programmer at 5V (from USB port) Can I program this AVR with this programmer directly? Well, ATMega can stand 5V but it's powered with 3.3V so ...
0
votes
1answer
55 views

Operating system on an ARM9 MCU

I have an ARM926EJ MCU (datasheet) that I am learning how to program for a research project. I have been researching, as well as reading a textbook on Professional Embedded ARM Development in order ...
1
vote
1answer
116 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
270 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
236 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
87 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 ...
-1
votes
2answers
103 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
51 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
69 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
154 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
255 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
89 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
189 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
80 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
345 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
565 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
140 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
95 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
118 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
75 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
17 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
211 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
148 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
71 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
2answers
104 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
125 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
51 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
60 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
171 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
251 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 ...