Questions tagged [programming]

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

related tags:

780 questions
55
votes
5 answers

Programming microcontrollers: JTAG, SPI, USB oh my!?

I've noticed, with regards to microcontrollers, there are several way to program them. I am sorta familiar with USB as my Arduino's can be programmed via USB. What is a JTAG or SPI interface? Ultimately I know that these interfaces provide a means…
jdiaz
  • 1,933
  • 4
  • 21
  • 20
35
votes
2 answers

What is bit banging

I am new to microcontroller programming. I am using ATmega32-A controller and CodeVisionAVR compiler. I am using the waveform generator(AD9833) to generate a sinewave signal using SPI communication. I am able to generate the sinewave successfully.…
verendra
  • 1,223
  • 2
  • 14
  • 23
33
votes
8 answers

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 main application program? Generally speaking, does…
alt-rose
  • 1,441
  • 14
  • 29
28
votes
3 answers

FPGA programming, where to begin

I'm a software developer (C, C++, objective-c, java ...) and I am interested in learning to program FPGAs. Now the question may appear simple to you but please do take time to help me on this one as I'm kind of stuck right now. My company has asked…
Anila
  • 405
  • 1
  • 5
  • 6
22
votes
10 answers

Programming languages for electronics engineers

I am an Electronics and Communications Engineering student, before I got to college, I have been interested in programming and computer applications. I had focused on designing Windows applications and learning its techniques, but now, I feel that…
Siraj Muhammad
  • 572
  • 2
  • 6
  • 22
21
votes
6 answers

LTspice automation

I have a battery-powered boost converter and I'm attempting to measure the maximum input (battery) voltage droop under various load conditions of high current draws (different duty-cycles/periodicities) in addition to over several battery types…
Joel B
  • 3,477
  • 2
  • 29
  • 37
21
votes
8 answers

STM32 & ST-LINK - Cannot connect to MCU after successful programming

I have built my own board with STM32F7-45VGT6. I have successfully programmed it with ST-LINK v2 (not the original one though) and now I cannot even connect with MCU. I use ST-Link Utility from ST and SWD interface. It can be the case that I use SWD…
zupazt3
  • 1,567
  • 4
  • 17
  • 27
21
votes
5 answers

How different are 8-bit microcontrollers from 32-bit microcontrollers when it comes to programming them

Right, so we have 8-bit, 16-bit and 32-bit microcontrollers in this world at the moment. All of them are often used. How different is it to program 8-bit and 16-bit micrcontrollers? I mean, does it require different technique or skill? Lets take…
quantum231
  • 11,218
  • 24
  • 99
  • 192
20
votes
5 answers

Survey of High-Level Language Interpreters/Compilers for Microcontrollers

I would like to generate a list of high-level language interpreters and compilers (e.g. something that compiles LISP to C code) for microcontrollers. I've done a bit of research so far that I will document here: List of projects for running Python…
terrace
  • 1,334
  • 1
  • 15
  • 28
19
votes
8 answers

Is it possible to draw circuits through code?

Is there a better way not by writing netlist files. something like: Define Battery1 As a Battery Define Resistor1 As a Resistor Connect Battery1 First Terminal to Resistor1 Second Terminal Connect Resistor1 First Terminal to Battery1 Second…
user37421
  • 293
  • 2
  • 9
17
votes
5 answers

Cycle counting with modern CPUs (e.g. ARM)

In many applications, a CPU whose instruction execution has a known timing relation with expected input stimuli can handle tasks that would require a much faster CPU if the relationship were unknown. For example, in a project I did using a PSOC to…
supercat
  • 45,939
  • 2
  • 84
  • 143
17
votes
3 answers

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 languages are supported to program Arduino? Are there…
systempuntoout
  • 545
  • 3
  • 5
  • 12
15
votes
11 answers

Why is Embedded Strictly C/C++

I didn't like this question since it can't be easily answered but perhaps I can rephrase: "What keeps Embedded from changing languages?" For instance, we pretty much see C/C++ for embedded (I think i've heard ADA mentioned before too? correct me if…
user3073
14
votes
10 answers

Do Electrical Engineers use microcontrollers?

I've always loved to program, and I just recently became interested in electronics and programming microcontrollers. It is very fun, but I am wondering if I am learning something useful that can get a job in when I grow older. I am wondering whether…
IronApe
  • 383
  • 1
  • 4
  • 7
13
votes
8 answers

Functional Programming with MCU(s)

Functional languages like Haskell, LISP, or Scheme allow a programmer to work quickly using the functional programming paradigm. They do have their inefficiencies, but my application places greater emphasis on programmer efficiency than efficiency…
J. Polfer
  • 3,780
  • 2
  • 27
  • 33
1
2 3
51 52