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

CLOSED-Custom IP register address location

In my current IP, I am trying to transmit the data(data1 and data2,each 32bit) from the PS to the custom IP.At first, I wrote the data1 to the base address 0x43C00000 and read at slv_reg0 and it is ...
0
votes
1answer
61 views

ADC with DMA not working

I am using dsPIC33EP512MU810 to simultaneous sample 4 signals from a mic and display the samples on the on-board tft screen on the EasyPIC Fusion v7 development board. I was successful in acheiving ...
0
votes
0answers
39 views

STM32F030F4P6 - Application Not Starting

I have been developing code to control an LCD using STM32F030F4P6 mcu. So far everything was working fine. However I just added some new code with timer, and now when I uploaded the updated code, ...
1
vote
1answer
98 views

Faulty display behavior using a Atmega328 due to (wrong?) logic voltage level

I have built a little circuit using a Atmega328P to drive a DD-32645C-2A display using a connector board. The display uses a SSD1303 driver. So here is my circuit: Pretty straight forward, I ...
0
votes
1answer
72 views

STM32F4 HAL I2C only sends address

I am working on a project where I need to set a simple LCD. This LCD use the 'ST7032i' chip to control the LCD. I want to control the LCD over an I²C interface. As controller I use a STM32F4 ...
0
votes
1answer
41 views

IEEE 754 standard and C language float data type [closed]

Is IEEE single precision floating point numbers equal to the float data type numbers in C language. Is there a way to check this
2
votes
0answers
68 views

XC8 pointer issue

I am struggling with the following code: ...
0
votes
1answer
30 views

Xilinx XPS : On what bases the AXI master changes AWSIZE/ARSIZE…?

I have built my system with AXI interface using AXI4 From XILINX PLATFORM STUDIO(XPS). I used 32 bit data and address buses.I am facing problem with respect to xSIZE. In firmware(SYSTEM C), I have 8 ...
0
votes
0answers
17 views

Can server send response from a different process and socket? [migrated]

After server, which is listening on port X, receives a request from the client, can it send response from a different process and a socket with sendto call. Please note that the client also sends ...
4
votes
1answer
42 views

How to check beacon's signal strength - nRF52832?

I want to check beacon's RSSI using my nRF52832 (PCA10040) and if the signal is strong then send beacon's MAC over UART to WiFi module. I'm having hard time understanding Nordic Semiconductor's ...
0
votes
0answers
56 views

STM32F107 and mems LIS3DH spi data exchange problems

I'm trying to configure LIS3DH chip via SPI interface. Here is my code: ...
0
votes
0answers
54 views

Question about data transition in UART - Using HAL Drives - STM32F4

*Anwser at the end. I am working with SMT3240G-EVAL, I am working on a project in which I want to be able to send and receive messages using UART. I am starting with embedded development so I don’t ...
-1
votes
0answers
70 views

Problem sending with UART-DMA HAL Library STM32

*****Go to the edits to see what i did. Hello I hope someone can help me with this problem I am having, I have been trying to send and receive an array of bytes of different sizes using UART and DMA....
1
vote
1answer
95 views

JPEG compression on Cortex M4

Is it possible to perform JPEG compression on a Cortex-M4 MCU? Are there existing libraries that can do this and can accept a 10-bit RAW RGB?
0
votes
0answers
18 views

Xbee ansi c with stellaris

I've been working with xbee and the stellaris launchpas, specifically with the tiva123. I would like to know how do I add the xbee ansi C library into my ccs project, as this library doesn't support ...
-1
votes
0answers
16 views

C while loop between number range [migrated]

How do I set up a while loop to loop if a variable is between a range? For example if a number is <100 or >1500 than loop. I tried the below but it didn't work... ...
0
votes
0answers
30 views

ESP8266 not able to communicate over serial connection with arduino UNO [migrated]

This is the code I uploaded in Arduino UNO: ...
11
votes
3answers
2k views

What resides in the different memory types of a microcontroller?

There are different memory segments to which various types of data are put into from C code after compilation. I.e: .text, .data,...
0
votes
1answer
43 views

Loading a HEX file with PICkit 2

I'm trying to upload a hex file, generated from multiple C source files with xc8 in Proteus, into a PIC18F4520. Usually, I don't have any problems doing this but ...
0
votes
0answers
37 views

STM32 communicating with LCD module HY28B

I'm currently in trouble with displaying something on the HY28B LCD module . I configured my LCD module in 16bits mode by soldering the right short at the right place and I'm using an STM32 discovery ...
0
votes
0answers
46 views

Using the interrupts of ATmega16

I am using CodeVisionAVR and I'm trying to write an ISR which should do a specific job for me. the problem is that first time that the ISR is called, it works properly but for next time it does not. ...
-1
votes
0answers
21 views

Detect shorts in wire bundle with ATmega8515

I'm using AVR ATmega8515. My IDE is Eclipse. It's similiar to Remember the iteration when a condition was met but I want to test multiple ports in negative logic at once. I'm trying to make short ...
0
votes
1answer
44 views

FIFO ASF drivers and USART avr problem sending and recieve data via rs232 connection

I'm working to send frame of 8 bytes to Micro-controller Xmega128a1 (via RS485). The frame looks like this: {header1,header2,CMD,D1,D2,D3,D4,CRC} For example: <...
0
votes
1answer
58 views

RTC in MSP430 microcontroller

I'm trying to generate a 15 minutes alarm using RTC in MSP430F5438A microcontroller from Texas Instruments. What values should I put in the Interrupt registers. I have tried putting 0x95 in RTCAMIN ...
-1
votes
2answers
72 views

Methods of testing interrupts

I am maintaining and developing software in C for S12X micro controllers. The ISR for each interrupts (like I2C, Timer Interrupts etc) are very lengthy, like around 20 to 30 lines with several ...
0
votes
1answer
55 views

PIC18F2550 PWM Square wave generator

I am trying to generate a square wave on 50% Duty Cycle using my PIC18F2550. The signal is to be outputted through a loudspeaker. The frequency does not really matter, as long as it is in the hearing ...
-5
votes
1answer
86 views

Atmel studio coding [duplicate]

I am new to atmel studio, and want to know the best way to code this example: What is the difference between using: DDRG |= (1<<DDRG3) vs ...
1
vote
1answer
32 views

UART issue with receiving a char

Currently I am working with two MSP430G2553 Microcontrollers for a school project and I have to use UART to have them communicate with each other. The transmit MSP430 is to send a character whenever a ...
1
vote
1answer
78 views

Digital filter implementation in C (embedded)

I am a recent grad and my new project at work deals with taking the signal from an electret microphone and getting SPL values for 10 standard frequency bands. The analog amplification/conditioning is ...
0
votes
0answers
60 views

Can't get I2C to work with DS3231 and MSP430 due to hanging issues

I am currently using an MSP430G2 processor. I am trying to get I2C communication between it and a DS3231 timer chip to work properly. ...
0
votes
2answers
86 views

Integer division and scaling an input

I'm trying to get my head around integer division. I'm entering a decimal number between 100 and 6300 into my program, I then need to scale this number by 100 and output the result as a 6-bit number. ...
5
votes
3answers
390 views

Writing to pins on a port without affecting other pins on that port

I'm outputting a 6-bit number on PORTA (RA0-RA5), how do I write to those bits without messing up what is already on RA6 and RA7? For example if I want to output 0x3F on bits RA0-RA5. If I use ...
-9
votes
1answer
70 views

How to interface water sensor to LPC2148 ARM 7 kit? [closed]

I am making a prototype of automatic car wiper system using lpc2148 kit as a part of my course project, but I am unable to find the code (.c format) to configure the water sensor. There are some code ...
1
vote
1answer
296 views

Programming pattern to generate VGA signal with micro-controller?

I want to generate VGA signal with micro-controller (like TI Tiva ARM which runs at 90/120Mhz speed). I'm not sure how to make accurate timings with micro-controller. Which programming pattern I need ...
0
votes
2answers
129 views

Moving from assembly to C [closed]

About four years ago i stumbled upon some electronics projects on the internet and ever since i fell in love with it. So I started at basic circuits then moved to analog circuits and spent very little ...
0
votes
1answer
38 views

can't figure out why dsPIC digital input is not working

Having trouble getting a basic digital input to work correctly. Just trying to use it as an additional condition for an LED flasher to work. Right now their example code works just fine but when I ...
4
votes
3answers
199 views

I2C communication won't start unless SDA pullup resistor is reinserted

I'm working on a project where a PIC12LF1552 microprocessor is using I2C to talk to a TMP75 temperature sensor. Like the title says, a very strange issue keeps happening. Overview Every time I ...
0
votes
1answer
85 views

How to Sycnhronize STM32F4 Clock with PC Clock

I'm using 3 STM32F401RE to synchronize their clocks. My desired accuracy is of 1ms and even lesser like 0.1ms. This device is connected to PC via USB port. Question 1 : So I would like to know if I ...
1
vote
1answer
103 views

How to count using Interrupts

I have an issue where I want to count how many times I hit a switch using an interrupt. I tried placing the count variable inside the main but it claims that count does not exist. I put count inside ...
8
votes
4answers
3k views

Run code once in lifetime of an embedded C program

How can I make a code snippet run only once in the lifetime of a program? It can be turned off and turned on many times. The only option to run the code snippet again must be flashing the board again. ...
2
votes
0answers
57 views

Implementing periodic sensor data storage and GPRS transmission

I am using custom hardware driven by a TIVA TM4C (specifically, TM4C123GXL) to control a microgrid with battery energy storage, solar panels, four loads controlled by relay, and a SIM900 GSM GPRS ...
0
votes
2answers
86 views

MSP430FR4133 timer interrupt

I am trying to use the timers on the microcontroller in order to count up to 10us then add 1 to the int timer. I intend to use this in a project I am doing where I count the time between pulses from a ...
1
vote
1answer
22 views

MSP430F6736A UART configuration via Code Composer

Using embedded proggraming, Code Composer Studio 6.0.1, Trying to configurate UART to communicate between MSP430F6736A and my PC. Using USB/RS485 converver(2 vire (A,B)). For sending data using ...
1
vote
2answers
64 views

avr-gcc float macro error

When I try to compile some code with macro definition at the following definition # define _SPEED_FACTOR0 0.9 //or any float value I get the error floating ...
0
votes
1answer
46 views

What are the (mathematical) restrictions of a TMS320C6713 DSP?

I have a function that computes the sum of even numbers in a Fibonacci sequence less than a boundary. Should I be worried about this calculation? Can the TMS320C6713 handle it? When I run the ...
2
votes
2answers
85 views

Systick interruption doesn't trigger when handling another interrupt

I am experimenting with the STM32f4 discovery and i tried to use a delay (based on SYSTICK) in an ...
14
votes
4answers
3k views

C standard libraries on bare metal

I am mostly doing development on devices that have ported Linux so the standard C library provides lots of it's functionality through implementing system calls which have a standardised behaviour. ...
6
votes
0answers
145 views

TMS320 Floating Point (Texas Instruments DSP from '98)

Background Is there anybody here who is an EE with programming experience who has worked with the Texas Instruments TMS320 C3X-series DSP? I am currently doing some work with the C3X for a project. ...
5
votes
4answers
1k views

Why do people use (1 << PA0) when setting port?

In AVR Tutorials I often see: DDRA |= (1 << PA0); PORTA |= (1 << PA0); used instead of: ...
0
votes
1answer
85 views

Problem with lcd - pic interface

I wrote the following code to display a blinking text on an lcd. The code works properly on the simulator but the real lcd doesn't display anything. I attached the circuit diagram I used to connect ...