Giter VIP home page Giter VIP logo

sakaserbia / freertos-project-18-from-systems-in-real-time Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 595 KB

This is my project from the subject Systems in real time, realized on MSP430 with FreeRTOS (Real Time Operating System).

License: GNU General Public License v3.0

Makefile 8.86% C 66.51% C++ 22.50% Assembly 0.60% Batchfile 1.52%
msp430 freertos etf ccs7 oe4srv queue mutex adc timer

freertos-project-18-from-systems-in-real-time's Introduction

About the project

This work present project number 18 for the school year 2016/2017 in the Systems in real time in the 4th year, Department of Electronics, School of Electrical Engineering, University of Belgrade. The basic idea for this work demonstrating the acquired knowledge from lab exercises and lectures about FreeRTOS (Real Time Operating System), Code Composer Studio 7 etc.

Text of the project

Realize the system that starts acquiring from channels A14 and A15 for every 100 ms with software timer.

In an interrupt routine, the conversion results are entered in line with Queue, which is protected by mutex, so when someone wants to read a message from the line, he must first take a mutex. The message should contain the information about the channel that was evaluated and the 12 bit value that was read.

The tasks xTask1 and xTask2 read messages from the line, where xTask1 reads only messages related to channel A14, and xTask2 reads only messages related to channel A15.

Therefore, it is necessary for the tasks to first check what is at the top of the line (peek), so if it finds that the message is intended for them, they then read the message and remove it from the line (receive).

Task xTask1 counts the average of the last 16 received bounces and immediately into the mailbox (Queue length 1) with overwrite.

Task xTask2 counts the average of the last 32 received bounces and immediately into the mailbox (Queue length 1) with overwrite.

At the push of the button S1 and S2, the task xTask3 reads the corresponding mailbox and displays the measured mean value on the multiplexed LED display.

Acknowledgment

I dedicate this project to Nikolina, whose notebooks I copied during the entire study. My real friend thank you from the heart for all.

Block scheme of the system

slika1

Synchronization and communication mechanism

slika2

Time diagram for task execution and interrupt routines

slika3

MSP430F5438A

received_10213299826712440

freertos-project-18-from-systems-in-real-time's People

Contributors

sakaserbia avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

koson

freertos-project-18-from-systems-in-real-time's Issues

Photo

Photo1
slika1

Photo2
slika2

Photo3
slika3

Photo4
received_10213299826712440

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.