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 ...

learn more… | top users | synonyms

0
votes
1answer
20 views

Best way to simultaneously control two servos positioned horizontally and vertically?

I'm trying to set up a C program where a servo (servo1) sweeps to a position, waits a few seconds, moves to another position and repeats 4 more times. Another servo, positioned vertically, (servo2) is ...
1
vote
1answer
53 views

Bitwise operation for UART, AVR

I'm trying to work on UART for AVR. After setting the baud rate registers UBRRnX, I'm trying to configure the UCSRnA register. I'm trying to set the 2nd bit, U2XO. Which is the right way to do it? ...
0
votes
0answers
7 views

LPC4337 I2S Synchronized Word Select Signals

I am trying to setup the I2S peripheral on an LPC4337 device so that it will send and receive audio data in master mode. The problem I am having is that I would like to ensure that both the transmit ...
2
votes
1answer
30 views

TM4C123 UART is always in busy state

I am trying to configure UART0 on TM4C123G launchpad. All of my configuration registers are perfect. They've been written with desired values. But somehow, my busy flag is always 1 after first write ...
0
votes
1answer
26 views

Error interfacing GSM with Atmega32 using UART Interrupt?

I am interfacing GSM with atmega32 using uart interrupts. I am using an external interrupt which is fired when a user press a switch and uart receive interrupt to receive the response of GSM. CODE: ...
0
votes
0answers
23 views

how to programm TIVA C using Eclipse

I got a Tiva C board EK-TM4C123GXL and I want to program it using eclipse, my question is , is there any tutorial which explain how to do that on windows ? thanks ...
4
votes
1answer
140 views

Interrupt never fires

I'm new to embedded and I've been struggling with this for days. I just don't understand why this doesn't work. I'm using an ATxMega128A1. I want to use a timer overflow interrupt to left shift a bit ...
0
votes
1answer
25 views

Problem in GSM interfacing with 8051 (AT89S52)

I have been trying to interface GSM using the code and circuit from this link, since 2 days. only difference is that I am using AT89S52 and SIM900A module, but I am not getting any response like OK on ...
0
votes
0answers
23 views

PIC32 and I2C EEPROM interface problems

I am writing code for a PIC32MX250F128B to interface with the Microchip 24LC02B EEPROM with I2C interface. I have followed the datasheet of the EEPROM, the PIC32 and section 24 of the PIC32 family ...
1
vote
1answer
27 views

Error interfacing GSM sim900 with atmega32

Hi all I am trying to interface GSM SIM900 with atmega32. I have a written a code in which if a user press a push button, a call will be made to a pre defined number. If we want to change the pre ...
1
vote
1answer
47 views

PIC16F628A: 500ms delay (w/Timer 1) not as expected

TL;DR: See the last few lines (and the quote) at the bottom. Just a word about my background: I learned microcontrollers last semester with the 8051 and have been learning PIC microcontrollers over ...
0
votes
2answers
151 views

How to blink LEDs with different frequency?

I have a pic32mx and three LEDs. [datasheet pic32mx] (http://hades.mech.northwestern.edu/images/2/21/61132B_PIC32ReferenceManual.pdf) I need a function that gets the number of LEDs and frequency, and ...
1
vote
1answer
56 views

STM32F103 SPI Master example?

I want to use SPI master configuration and send some data just to capture it with Logic Analyzer. It seems that I cannot trigger on clock and capture anything. Using code from standard peripheral ...
0
votes
1answer
28 views

OpenOCD doesn't recognize the Chip ID

I have an issue with openOCD, I want to flash an : ATSAM4S2CA, and Iget this error : ...
0
votes
1answer
60 views

Extracting message content in SIM900

Hi all I am interfacing with GSM SIM900 with atmega32. I am trying to extract the message contents. User will send message like CHANGE7532167845 to SIM installed in GSM device. So to extract this I ...
0
votes
1answer
32 views

Problem with XC8, RX interrupt [PIC18F4550]

I have a problem with my interrupt and I don't know why. I want to use an interruption each time I receive a data from my RX port. So, I used the interrupt on the port RX of my microcontroller. My ...
1
vote
1answer
68 views

Error getting data from GSM SIM900

I am interfacing with GSM SIM900. I wrote a program so that I can read the SMS in SIM900. I have made a function to transmit and receive. Whenever msg comes, GSM responds with ...
0
votes
2answers
63 views

Printing SD Card File contents on LCD

This is a part of my program which reads data from SD card File and Display that on LCD screen. ...
0
votes
1answer
114 views

Error communicating with GSM SIM900 with AVR.?

I am trying to interface GSM SIM900 with AVR Controller. Till now I have done programming which transmit the command ATD and it makes a call to my cell. GSM response to this command by sending OK. I ...
-1
votes
1answer
72 views

Interfacing switch and LED

I am trying to write a program in which I am interfacing a switch and a LED. I want a program so that when I press the switch the LED turns on and when I press again that led turns off. Right now I ...
0
votes
1answer
61 views

Software control system. Which one is it?

I wrote a software which replaces a discrete closed loop PI control circuit and now I was wondering what kind of control system is this equivalent to? This code drives the PWM which regulates the ...
2
votes
2answers
60 views

Not getting correct values in I2C interfacing in Atmega

I'm very new to the concept of I2C and I've been having some problems interfacing I2C between 2 Atmega32(s). I have one Atmega32 as a Master to which an LCD screen is connected and another I2C as a ...
0
votes
2answers
64 views

How do PEEK and POKE work?

I have two macros: #define POKE(addr, val) (*(volatile unsigned int *)(addr) = (val)) #define PEEK(addr) (*(volatile unsigned int *)(addr)) What they do if I ...
1
vote
1answer
39 views

AVR: Interrupt build error

I am trying to learn how to use interrupts for a project using an Attiny85. I have written a simple program from what I have learned from tutorials. However when I try to build the program in Atmel ...
0
votes
2answers
103 views
-2
votes
1answer
32 views

Help some material or advise with rotary switch

I have 16 position rotary swith and netX microconntroller. Can someone hepl me give me example how to read position of a rotary swith.
0
votes
0answers
41 views

Hi-Tech PICC 9.81 and MPLABX

I have a license for - the now rather old - Hi-Tech PIC C-compiler (PIC10/12/16). I have used this compiler for many years integrated with MPLAB 8 with full success. Today I upgraded to MPLAB-X but I ...
0
votes
1answer
50 views

how to make a phase shift on PWMs

I want to generate 2 PWM on PC6 & PC7 on an STM32f10x , it work fine but , the problem that I have is that I want to make them phase shifted to each other , say 45° and I really don't how to do ...
0
votes
1answer
36 views

osdelay function stm32

I still work with stm32f407 and I have a question. When I write osDelay function for 2 seconds , it works 5 seconds. How can I fix this extra delay ? This osDelay function in cmsis_os.h library.
0
votes
0answers
24 views

Multilingual user interface Menu, GLCD and LPC1769

I would like create multilingual interface with menu. But I don't have idea how to do it. I some think, and best solve for this is maybe one list with word sorted by lagnuage in main program is one ...
1
vote
2answers
75 views

Running an LED blinking program on cc2530

I am trying to use the following code for blinking LED on CC2530, it would be great if someone could tell me what I am doing wrong? I know this is basic stuff but I cannot figure out what I am doing ...
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 ...
-2
votes
1answer
119 views

Embedded systems C/C++ [closed]

What are areas of C and C++ programming languages an embedded system engineer need to know the best? I know that not all the areas of these languages are used in embedded systems, so which are the ...
1
vote
1answer
126 views

Why ARM Cortex M0 prints incorrectly Hello World on UART?

I am new to ARM CORTEX M0. I am trying to use the Tx pin of UART as debug port. If I use the XDS200 debugger to step through the code, I am able to see the characters and I can see "Hello World" ...
0
votes
3answers
173 views

12 Hour delay for atmega16a

I am trying to turn on a LED for 5sec every 12 hours. I tried: ...
2
votes
1answer
65 views

understand the the setup of Timer on STM32f10X

I'm trying to understand how to correctly setup the timer on STM32f10x . The board is running with an external crystal of 16MHz , and I'm using the PLL : ...
1
vote
5answers
98 views

Inerfacing switch & led with any controller

I am trying to interface switch and led. I want to write a program in which if I press and release the switch led should glow and if I again press the switch led should turn off. I am not able to ...
-4
votes
1answer
74 views

From bitwise instructions to c code intuitively

I need to be able to recognize what an assembly code is doing. I can picture the basic instructions in C code in my head. But bitwise instructions such as ...
0
votes
1answer
48 views

_asm TBLRDPOSTINC _endasm,

I am using a PIC18f25K80 and an XC8 compiler. I have included the files from the MDD library. However, after compiling I get the following in the "FSIO.c" file: ...
2
votes
2answers
125 views

Timer PIC16 not working.. is it my code?

I'm new here as an OP, but I have been visiting this site for years. This time, just looking at other problems hasn't helped me. Hence, I sign up and just ask! I'm creating a countdown timer with 30 ...
0
votes
2answers
82 views

setting the frequency of a PWM on a STM32

I'm trying to write a function that takes a desired frequency of PWM and sets the timer based on this value: ...
4
votes
1answer
61 views

Number of address in AT24C16 EEPROM or is it duplicate?

I am working on EEPROM AT24C16 for a particular project. According to the datasheet it must have 2048 addresses and I should be able to write 1024 unsigned int into it [ 1 unsigned int per 2 ...
0
votes
1answer
48 views

ADC neglects input voltage (ATMega32)

In the following AVR code, why do I always see the same voltage for all pins of port A? I am using ATMega32. BTW, when I am grounding some pins of port A I do not see any change in the output. It ...
0
votes
0answers
75 views

STM32f4discovery DAC DMA HAL library

I have a problem with the configuration of DAC with DMA. DAC is working but when i want to connect it with DMA it doesn't work. Here is my code: ...
1
vote
1answer
55 views

Memory Leak in queue linked list, avr c

I am building a small command interpreter to be run on a microcontroller. To queue each command and its accompanying arguments, I am using a queue implemented as a singly linked list. All of the queue ...
0
votes
1answer
30 views

Problem with IAP

I'm using LPC1788 IAP to write to Flash and I'm a little confused on what's going on. I'm trying to write 8 bytes of data to Flash memory with 2 tehniques: 1) With one which is logical to me and it ...
0
votes
0answers
22 views

Unable to access clock while interfacing AT32UC3C2512C with Flash Atmel Studio

I'm trying to interface the controller (AT32UC3C2512C) with flash using SPI protocol. The IDE that I'm using was Atmel Studio. I have written a simple code in which I'm trying to read the manufacturer ...
0
votes
1answer
107 views

SIM908 GPS STATUS “Location Unknown” Error

I'm using a SIM908 module on a custom board and am having trouble getting the GPS location from it. Everything else works on the module. I can send SMS, make calls and send and receive data from a ...
0
votes
0answers
85 views

msp430 AES encryption/decryption using DMA

I'm having some difficulties implementing the AES encryption primitives for an msp430fr5969 micro controller following the indications described here. more particularly the AES CBC cipher mode. My ...
0
votes
0answers
34 views

Manual SDIO command

this is my first question here on SE. I am writing a C test program in a u-boot environment (meaning Linux has not booted yet) for a custom AM335x board. The requirement is that I send a command to ...