Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Hello everyone,
Could someone please explain semaphores in a way that's easy to understand, and perhaps provide some practical examples of how they're used in real-world scenarios within an OS?
Let's say we have a shared resource, like a printer, that multiple threads need to use...
Understood till this logic what to do next ?
#define MAX_SENTENCE_LENGTH 20
volatile char GPSmsg[ix];
void main(void)
{
init();
while(1)
{
if((strncmp("GPGSV",GPSmsg,5)==0)
{ // if found GPGSV
extract lat and lon etc.
}...
That's what I am asking for help understanding
->Remember that in the C language a string is terminated with a zero so think about how your string comparison will find the end of the message if the terminator is missing.
GPSmsg[ix]= '\0';
#define MAX_SENTENCE_LENGTH 20
volatile char...
I am trying to understand basic logic of GPS program. how the microcontroller read and Parse the GPS data
I have created following pseudocode. I am having difficulty in interrupt service routine. I am looking help to develop interrupt service route
#define MAX_SENTENCE_LENGTH 20
void...
I am intrested to know how do you plan for project where you are going to use embedded operating system. so far I know many people make flochart, state diagram before writing code
If you want to use operating system or RTOS for the project. How do you plan before writing code ?
Do you make...
I am trying to understand what happens if we change priority in code in given link https://www.digikey.com/en/maker/projects/introduction-to-rtos-solution-to-part-2-freertos/b3f84c9c9455439ca2dcb8ccfce9dec5
// task 1: blink an LED at one rate, Hight priority
void toggleLED_1(void *parameter)...
I am trying to understand meaning of following statement shown in page https://en.wikipedia.org/wiki/Process_state
I/O stand for input/ output device. can anyone give at least three real stuation to get idea
you repeated my question to me.
Till now i have not faced the problem in my project where i only need scheduling.
I don't think learning new technology will hurt. That's why I am looking for such project, in this only Preempative Scheduling is allowed.
I also want to ask you a question...
Hi Dora.
I have successfully sent data to PC and received data from PC using Uart Protocol. I have successfully sent data display. I have successfully read the analog input with the help of spi ADC. I have successfully read the analog input with the help of i2c ADC. And tried many more...
I am looking for a real world project that demonstrates Pre-emptive Scheduling. The information I have found on the internet so far only explains the pre-emptive in pieces. I understand what preemptive scheduling is, but I don't know how to apply it for a specific project.
In preemption, the...
My intent is to understand the description given in the Wikipedia page, that's why I showed of my tasks.
The Task in the system can be anything. I have taken some examples of Tasks in my list just to understand the description of page, they all are not related to the actual application, it is...
I have come across the Wikipedia page which explains the theoretical terms but I am having trouble understanding its real example.
https://en.m.wikipedia.org/wiki/Process_state
I just assume some task are (e.g. LED ON, LED OFF, read a button, display a message on an LCD screen, Motor ON...
How is the real time FFT spectrum displayed on the display. There is a total of 1024 samples, then the result of all these samples shown on the screen together, or the result is shown one by one.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.