Questions tagged [programming]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
12 views

How do I use multiple GY-521, I2C sensor with Arduino?

I'm working on an Arduino robotics project that requires I find the position of 12 different angles (I'm making a walking scale model of the Star Wars AT-AT and need to measure the angle of three ...
0
votes
1answer
92 views

How to send the result of a count from the register TMR1 (used as counter in the PIC 16f877A) to sevral output pins on the same pic?

I'm using a PIC 16f877A with a D/A Converter (AD667) in order to transform the result of a count into a analogue output to use later, but I find my self incapable of sending this 12 bits from the PIC ...
2
votes
2answers
197 views

How to use structures in 8086 (MASM)

Sample program to add two numbers using structures - ...
0
votes
1answer
42 views

MC705C8ACPE chip

I have a few old mc705c8acpe chips and I would like to know how to program and use them. I would like to control an lcd display, (20x4) with them. All I could find about them was they are programmable ...
3
votes
4answers
2k views

What are the implications of a ROMLESS device?

I was looking through the microcontrollers area of Digikey and I noticed a device that i'm interested in although there is the description of "ROMLESS" in the program memory type. http://www.digikey....
1
vote
1answer
83 views

Raw programming of an Altera FPGA

I have an Altera Cyclone IV FPGA (for ie) and my question is: is it possible a raw programming of the FPGA? Is it possible to set "manually" the gates for making experiments? Thank you
2
votes
1answer
66 views

Wireless SWD interface

Is it possible to have a wireless SWD interface with a simple Data and clock line like the cheap STM32 ST-Link clones. My initial, and flawed, idea was that I would have an ST-link plugged into the ...
1
vote
2answers
146 views

Is a CPU declarative?

I know that this might seem like a stupid question, because declarative is not really an electrical term. I'm having a discussion (argument) with someone who is a functional programming fanatic, and ...
0
votes
2answers
70 views

Reading data from Pressure Sensor

I am having trouble reading data from a pressure sensor using MATLAB. The pressure sensor is connected to an NI 9219 Analog Input Device. Firstly, i tested the device to make sure it is working using ...
2
votes
3answers
2k views

How to make a PCB based on ATtiny easily updatable by end users?

I've made a prototype PCB containing an ATTINY 4313: Each time I want to change the program, I upload it with an Arduino used with the "Arduino as ISP" sketch. If one day I sell such a module to ...
4
votes
4answers
657 views

Interrupt control in STM32

I am trying to learn about STM32 programming. I started to read some references before start the programming. I am currently reading this ST presentation. It says: When an interrupt request ...
3
votes
2answers
126 views

Back branches in code

While reading this file on software hazards this slide says: "No Back Branch in the Code" I wonder what does it mean? Normally when we write code in C-language then we don't actually do branching ...
0
votes
2answers
92 views

Mecrisp-Stellaris Forth on TI Tiva C LaunchPad

I'm currently trying to load mecrisp forth on a spare tiva c series launchpad (TM4C123) board I have at home and am not having much success. I'm an electrical engineering student and while I've ...
6
votes
1answer
4k views

Why does my ATtiny13 report wrong device ID?

I am using an Arduino (with ATmega168) as an ISP programmer to program ATtiny13. When I try to do this, avrdude reports: ...
0
votes
2answers
6k views

A program to add 6 bytes of data and store sum and carry in 8085 instruction set

I have a question on 8085 instruction set. A program to add 6 bytes of data stored in memory starting from 4500h. must use b register to save any carries and finally store the sum and carry at two ...
0
votes
2answers
71 views

Where does the SWD header in this schematic connect to the microcontroller?

Edit: better quality schematic I'm designing a PCB that includes the STM32f103C8T6 and I want to program it via SWD (with the ST-Link v2 USB connector). I'm using the Blue Pill dev board schematic (...
1
vote
1answer
59 views

Periodic timer not working as expected on TM4C123 MCU

I am starting to learn how to use timers/interrupts on the TM4C123 evaluation board (TM4C123GH6PM MCU). In this example I am configuring a timer to create 1 second delays to toggle an on-board LED on ...
0
votes
2answers
173 views

Basic C Programming Question On Microcontroller

I think this question is ok in the electronics stack and not the programming stack (I hope). I have a simple code written in C, on a TM4C123 evaluation board. It uses the two on board switches to ...
-1
votes
1answer
1k views

Is programming Arduino a subject of CSE(computer science) at university?

If get admitted in "computer science and Engineering" department of any university, would there be any subject for programming Arduino? This Arduino also looks like a subject of "Mechanical ...
1
vote
1answer
152 views

Programming of ADC in PIC12F675: Not Working Properly

I'm new to embedded systems and I want to program a PIC12F675 for a project. So, the idea is that there is a switch. If the switch is off, the microcontroller normally outputs a clock signal, which ...
1
vote
3answers
104 views

Help with I2C Communication

I'm trying to learn how to program a battery charging IC (BQ24193) via the I2C communication protocol. My goal is to write the correct values to it in order to gain the proper charging input and ...
1
vote
2answers
2k views

ISP circuit for AVR microcontrollers

So I was doing a bit of research on the AVR controllers and came across this schematic for programming the chips. After doing research on the 74 LS 254, I realized that either this design is ...
0
votes
2answers
119 views

Can I program an MCU directly from USB if it supports USB? [closed]

If a microcontroller has USB functionality, can I program it directly from a USB port? Can I design the PCB without a USB to serial converter? What are the precautions I should take? The example that ...
-1
votes
2answers
10k views

Using a computer, to turn on a light bulb on and off many times [closed]

I build my own pcs, like coding (a little bit) and into engineering. What I want to do is basically take my computer, hook it up to a circuit with a light bulb and then run a program that will switch ...
0
votes
2answers
746 views

How to program 89C52

I am new to this site. I am now working on microcontrollers. I successfully burnt hex file to 89S52 using arduino as a programmer. But I want to program 89C52 as this is the cheapest atmel ...
1
vote
0answers
56 views

Generate XCF file for Lattice Diamond from command line

I am writing a Makefile for Lattice Diamond and have come as far as to cover all steps from synthesis to bitfile. To program the FPGA (a MachXO3L in my case) I looked for a command line tool, and ...
3
votes
3answers
761 views

Programming of ICs in general (MCU / FPGA / Serdes IC) [closed]

I have a general basic question. Most of the Integrated circuits (apart from power IC) that are used in applications (Data transmission/communication IC) require some sort of programming or ...
0
votes
0answers
32 views

atmega328p is not detecting on USBasp programmer after verify 0 error?

I was trying to burn my atmega328p board which is designed for some wireless application. The ICs atmega328p, esp8266 12f, and ADM7171 are using the same Vcc. Here the Power supply is connected to ...
0
votes
0answers
59 views

Can't program STM32F4

I am really confused and helpless. I made a custom PCB with the STM32F446VE (LQFP100) chip and got it programmed (SWD). After that I made a second PCB where I wanted to solve some Problems regarding ...
0
votes
1answer
34 views

Flashing firmware onto NXP QN9020 via SEGGER J-Link

Here I am attempting to flash the firmware using SEGGER J-Flash Lite. Below is the ouput when attempting to connect via the SEGGER J-Link Commander. ...
0
votes
4answers
5k views

How to write an EPROM program

We've got some products that use 27C256 EPROMS. The guy who wrote the original programs (many years ago) is gone and we'd like to make changes and write some new programs for some new products and ...
8
votes
2answers
970 views

PIC12F675 GP4 doesn't work

I'm using a PIC12F675 for a project, and everything works fine except one thing. GP4 does not work as digital IO. I've looked at the configs and the code a lot, but couldn't find anything. Config: <...
0
votes
0answers
67 views

How to get analog input using PIC12F675

everyone. I'm new to embedded systems and I want to program a PIC12F675 for a project. I have most of the code figured, and there is only one thing left. It's the analog input. I tried some tutorials,...
28
votes
8answers
5k views

Why do we need a bootloader separate from our application program in microcontrollers?

Why do we need a separate program in the same flash program memory of a microcontroller, specifically STM32F103, which is called a bootloader? What is special about it to keep it separate from the ...
0
votes
1answer
47 views

PIC16F Byte Shift - Assembly Code

Need to shift 3bytes each in RAM buffer to the next 3 RAM locations in a circular manner. The below code is ok, but is there any compact method to do it? ...
-1
votes
2answers
138 views

STM32F4 series: what does the '->' operator? [closed]

Reading some C files related to programming an STM32F4 series Arm controller, I found the following instruction: ...
2
votes
1answer
144 views

How to program STM32f411RE chip?

I've developed a prototype using the STM NUCLEO (NUCLEO-F411RE) board and now that I am happy with design I am now in the process of testing everything together on my own PCB. All the other components ...
0
votes
0answers
13 views

Where to find StdPerieph Library for SPL programming with Nucleo-F746ZG?

I want to start SPL programming with Keil software. I did not find the StdPeriph Library for Nucleo-F746ZG board. Where to find the library on the ST website?
0
votes
1answer
94 views

Embedded Software Reliability Metric is short-term or long-term in time

If I test an embedded software (and the product based on this software) today and it fulfills all the customer requirements successfully at this point in time then I can safely say that this software ...
3
votes
4answers
1k views

Programming bare microcontroller chips

I'm an electronics hobbyist and I have done a lot of electronics projects using launchpads like MSP430G2553, Arduino and Tiva C Series, so I never faced any problems to upload code to these ...
1
vote
3answers
120 views

int functions with no return statement

In a course I am taking on embedded systems, I program LPC1768s which are based on ARM using C. The main functions are always of int return type. However, there ...
17
votes
3answers
33k views

Which programming languages are supported to program Arduino?

I would like to start to play with Arduino. I've read that C and C++ are the official languages but I've also found other way to communicate using Python or Java for example. Which programming ...
-3
votes
3answers
412 views

Differene between DS3231sn and DS3231mz

Which one is better? DS3231SN have accuracy ±2ppm and the other one have ±5ppm.What is actually meant by the accuracy and what are the other differences.? What type of internal oscillators are used by ...
0
votes
1answer
247 views

STM32 USB programming using the OTG interface [closed]

I'm new to ARM based STM32 controller. The Controller which I'm using STM32F427VIT6. It has USB OTG FS interface where I need to program it using the USB interface. Is it possible to program or I have ...
0
votes
1answer
53 views

ATTiny167 USB Programming

On Aliexpress I am finding many cheap development boards with ATtiny167 and a USB connector. From what I can gather these boards permit USB programming through USB emulation. Can anybody point me to ...
2
votes
3answers
417 views

Programming PIC18 with PICKit 3 and IPE

I am trying to to program a PIC18F4550 with IPE and PICKit 3. The steps I am following are as follows: First, write the code and compile it to obtain an .hex ...
1
vote
2answers
2k 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
0answers
985 views

TrueStudio flashing board gives “Unknown MCU found on target error”

I am attempting to flash a custom PCB using Atollic TrueStudio and a Nucleo board. I have the PCB connected to the SWD header on the Nucleo. In TrueStudio I have set the target device and am using ST-...
0
votes
2answers
198 views

Lattice LCMXO2-256HC-4SG32C CHECK_SECURITY_PROTECT_KEY error

Trying to progamm LCMXO2-256HC-4SG32C with this ebay progammer. The programmer works fine with LCMX02-1200HC-4TG144C, but with LCMXO2-256HC-4SG32C it gives me the following output: ...
0
votes
1answer
23 views

Using port 0 in AT89C52 without pull up resistors

So at my university professor gave us following scheme to program this double 7 segment display on the right. At start I tried to simply adress it using P0=(someData) although it didn't work. Then I ...