Skip to main content

Questions tagged [c]

C is an imperative (procedural) systems implementation language. It was designed to be compiled using a relatively straightforward compiler, to provide low-level access to memory, to provide language constructs that map efficiently to machine instructions, and to require minimal run-time support. C was therefore useful for many applications that had formerly been coded in assembly language. From https://en.wikipedia.org/wiki/C_(programming_language).

0 votes
1 answer
104 views

As demonstrated by the image above, blocks are displayed on the LCD1, even though I've configured and programmed the Blue Pill STM32F103C8T6 board and connected it ...
Reza Jaferi's user avatar
0 votes
2 answers
60 views

I’m working with at32f403a. I’m trying to understand the flow of SPI communication. I’m using polling not interrupts in my implementation of an SPI_TransmitReceive ...
H.T's user avatar
  • 1
1 vote
1 answer
239 views

I am working on embedded software development for an electric vehicle. Here, i have the dbc file for full vehicle-can network now the problem is i need to write code for encoding and decoding the ...
Penumudi Varun's user avatar
1 vote
1 answer
117 views

Within an XC16 assembly code portion, I want to use a C variable as a literal. Here's a portion of my code : C function : int x=4; int *TrisCSX = (int*) 0x2C8; x ...
Zelig63's user avatar
  • 251
6 votes
1 answer
1k views

In a PIC24FV32KA302 C code, I want to add inline assembly. For this, I use, for instance, __asm("BSET PORTB,8");. When compiling, I get the following ...
Zelig63's user avatar
  • 251
2 votes
1 answer
173 views

I'm working with a simple non-preemptive task scheduler on a microcontroller The goal is to run several tasks periodically based on their defined rates. I'm currently studying embedded systems and ...
qw w's user avatar
  • 21
1 vote
0 answers
125 views

I am using a MSP430FR2355, a 16x2 LCD, and a SparkFun Triple Axis Accelerometer Breakout - LIS3DH (with Headers). My issue is that even though I can read the WHOAMI register of the LIS3DH, I can't get ...
Pixeled's user avatar
  • 89
-1 votes
1 answer
98 views

I have been working with pic microcontroller but this is my first time working with PWM to achieve breathing/fading effect on pin rb0. Please help me in achieving fading LED functionality on rb0. I ...
SOCIALIST POET's user avatar
1 vote
1 answer
138 views

I have successfully make my C code on Atmega328 to read my 2 rotary encoders. (More details here) I am having an issue with the encoder always incrementing by 2 sometimes 4. I'm not sure where the ...
Antone Bajor's user avatar
0 votes
0 answers
157 views

I am trying to modify some source code for this old digital power supply design based off the original schematic. The current schematic with the rotary encoders is this one: https://drive.google.com/...
Antone Bajor's user avatar
-2 votes
1 answer
140 views

Recently I have faced a problem that did not exist in my code before. When dividing any type of numbers by 10 or 100 or 1000, I get wrong decimals. For example: 30/100 = 0.29999999 I have tried 30.0/...
marisa's user avatar
  • 1
0 votes
0 answers
109 views

I am trying to get a 7-segment display to run off of an EFR32MG24 dev kit. I know the problem lies in the code, likely in the hex masks or the indexing. For troubleshooting, I have tried to adjust the ...
Kuro's user avatar
  • 11
1 vote
3 answers
238 views

Going through MISRA C 2012 rules, I Noticed one rule about dead code and was a little unclear about the definition of "dead code" Rule 2.2 States that "There shall be no dead code" ...
AK47's user avatar
  • 193
3 votes
2 answers
258 views

I want to generate 16 impulses, one for the freq. of 32 kHz and other for 64 kHz. I'm using a PIC16F887 and the freq. of the μC is 1 MHz, which mean 1 instruction cycle = 4 μs. All I want is for 32 ...
Tocila Flavius's user avatar
2 votes
1 answer
229 views

this is already the second time I encounter this strange problem: I am using an AVR microcontroller with microchip studio. I wanted to enter a debugging session with "Start debugging and break&...
pomm es's user avatar
  • 61

15 30 50 per page
1
2 3 4 5
112