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

Exporting Mbed code to build with in Eclipse

I am working on a project to move from the mbed platform, to some custom hardware. I am using the nRF51822 from Nordic. I have just exported my nRF51-DK project to ...
0
votes
2answers
40 views

STM32 production programming?

I made a little board using a STM32F205 micro. For the protos, I just plugged the board into Windows via USB and used STM's DFUSE software to flash the chip with the built in bootloader. That was ...
0
votes
1answer
41 views

How can pin states be altered by using JTAG Instruction Codes?

There are several mandatory JTAG instructions to use for boundary scan. I have learned, we can change pin states of MCU or CPU by using that instructions. However, I could not find any detailed ...
1
vote
1answer
51 views

Is there a way to Divide two 8 bit number in PIC 18fXXX assembly language not C?

I Can easily do the division in C of PIC micro controller. But is there a way to divide two number stored in two 8 bit registers. For example look at this code. I have to do it in PIC assembly for 8 ...
0
votes
1answer
49 views

Embedded C programming to interface ultrasonic sensor to 89s51 microcontroller

I am trying to interface an ultrasonic sensor HC-SR04 to a 51 family microcontroller like 89s51. After learning about how ultrasonic sensor works I wrote a program as per my knowledge about ultrasonic ...
2
votes
0answers
30 views

PIC32MZ bootloader without development board

I would like to put a bootloader in a PIC32MZ2048ECG064. I found AN1388B, but in table 9 (available bootloader workspaces) it lists only PIC32MX devices as compatible. The datasheet doesn't mention ...
1
vote
3answers
79 views

Understanding Source Code of I2C communication

So in my University studies we recieved few source code samples that are working with a OPT3001 Light Sensor. Our studies do not focus on engineering tasks in general, but this is a lecture that ...
0
votes
0answers
33 views

Design DIY PIC burner with PIC 4550 [duplicate]

Without buying a PIC development board I need to develop my own PIC burner using PIC 4550. Are there any possibilities designing a PIC burner using that? Please give me the best way.
0
votes
0answers
21 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
117 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
25 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 ...
0
votes
1answer
41 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
79 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
64 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
76 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
385 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
35 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
42 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 ...
0
votes
2answers
66 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
166 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
62 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
64 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
239 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
82 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
100 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
35 views
0
votes
3answers
270 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
143 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
305 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
336 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
90 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
109 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
75 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
164 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 ...
2
votes
1answer
313 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
101 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
312 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
99 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
351 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
781 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
147 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
101 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
155 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
80 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
18 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
232 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
163 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 ...