Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 11, 2016, 12:42:27 12:42


Login with username, password and session length


Pages: [1]
Print
Author Topic: Using OSA RTOS?  (Read 9665 times)
0 Members and 1 Guest are viewing this topic.
devfirat
Junior Member
**
Offline Offline

Posts: 41

Thank You
-Given: 6
-Receive: 38

ße Different Everytime!


WWW
« on: May 15, 2011, 12:11:15 00:11 »

Nowadays i want to work on RTOS. Lots of people suggest OSA RTOS. I read instruduction and examples but i didnt built one program yet.
Can you help me in these questions?

First, where will unrar to RTOS files?
Second, i'm using C18, do you send me one example?
Third, i prefer MPLAB X, but i also use MPLAB old version.

I use 18F2520

Thanks..
Logged

5dads
Inactive

Offline Offline

Posts: 3

Thank You
-Given: 19
-Receive: 0


« Reply #1 on: May 15, 2011, 07:23:27 07:23 »

Just open and compile the example files that come in the OSA RTOS download. Every one I have tried compiled without error, and the few that I have tried in hardware worked as documented.

Once you have one of their examples working, you can start modifying it for your own desires.
Logged
devfirat
Junior Member
**
Offline Offline

Posts: 41

Thank You
-Given: 6
-Receive: 38

ße Different Everytime!


WWW
« Reply #2 on: May 15, 2011, 09:39:56 09:39 »

Just open and compile the example files that come in the OSA RTOS download. Every one I have tried compiled without error, and the few that I have tried in hardware worked as documented.

Once you have one of their examples working, you can start modifying it for your own desires.

I know that but, can you show me my questions' answers step by step??
Because i dont understand where do i unrar the files?
I always get an error. I cant try example because of that.
« Last Edit: May 15, 2011, 09:42:45 09:42 by devfirat » Logged

devfirat
Junior Member
**
Offline Offline

Posts: 41

Thank You
-Given: 6
-Receive: 38

ße Different Everytime!


WWW
« Reply #3 on: May 16, 2011, 02:40:38 02:40 »

Solved!

http://www.youtube.com/watch?v=5Y9nkQ1x0yI
Logged

sughoi
Junior Member
**
Offline Offline

Posts: 63

Thank You
-Given: 221
-Receive: 53


know thyself because what else is there to know


« Reply #4 on: May 16, 2011, 04:34:37 04:34 »

Dear devfirat,

could you please upload your source code?

best regards, sughoi
Logged
devfirat
Junior Member
**
Offline Offline

Posts: 41

Thank You
-Given: 6
-Receive: 38

ße Different Everytime!


WWW
« Reply #5 on: May 17, 2011, 01:40:13 01:40 »

You can look at here: http://www.fxdev.org/rtosa-giris-osa-rtos/

You can translate it to English.
Logged

sughoi
Junior Member
**
Offline Offline

Posts: 63

Thank You
-Given: 221
-Receive: 53


know thyself because what else is there to know


« Reply #6 on: May 17, 2011, 07:39:37 07:39 »

Dear devfirat

Thank you very much for the article. I will use OSA instead of FreeRTOS. By the way Turkish is OK no need to translate in to English.

best regards, sughoi
Logged
devfirat
Junior Member
**
Offline Offline

Posts: 41

Thank You
-Given: 6
-Receive: 38

ße Different Everytime!


WWW
« Reply #7 on: May 17, 2011, 06:13:40 18:13 »

Everyone, works with RTOS, tells me to use FreeRTOS.
I'm new at this but i can tell OSA is good for beginning. Wink
Logged

sughoi
Junior Member
**
Offline Offline

Posts: 63

Thank You
-Given: 221
-Receive: 53


know thyself because what else is there to know


« Reply #8 on: May 17, 2011, 09:14:00 21:14 »

Dear devfirat

I'm also new in RTOS field and I know that the worse thing at RTOSs is configurations. It takes a lot of time but once you understand it, it becomes so east to use.

Best regards, sughoi
Logged
devfirat
Junior Member
**
Offline Offline

Posts: 41

Thank You
-Given: 6
-Receive: 38

ße Different Everytime!


WWW
« Reply #9 on: May 17, 2011, 10:51:45 22:51 »

I'm confusing about using small delay.
If I want 30us delay, or something like that. What should I do about it?

I always use ADC or LCD and like that. And I must always use delay function.

Can I combine this delay functions with RTOS?

I know about RTOS tick and how to use it. I dont mean that.
Logged

sughoi
Junior Member
**
Offline Offline

Posts: 63

Thank You
-Given: 221
-Receive: 53


know thyself because what else is there to know


« Reply #10 on: May 18, 2011, 09:06:25 09:06 »

It is also a problem for me. If you ask my opinion may be you can prefer CCS compiler and its RTOS. Also you can find a book that gives a few clear example of CCS RTOS. The book is below;

Dogan Ibrahim - Advanced PIC Microcontroller Projects in C: From USB to RTOS with the PIC 18F Series

http://www.4shared.com/document/OZyhKrds/Advanced_PIC_Microcontroller_P.htm?aff=7637829

Best Regards, sughoi
Logged
devfirat
Junior Member
**
Offline Offline

Posts: 41

Thank You
-Given: 6
-Receive: 38

ße Different Everytime!


WWW
« Reply #11 on: May 21, 2011, 04:38:39 16:38 »

I don't like and prefer his books. Thanks by the way.

Some people tells me use C++ if you want to work on RTOS professionally.
Logged

sughoi
Junior Member
**
Offline Offline

Posts: 63

Thank You
-Given: 221
-Receive: 53


know thyself because what else is there to know


« Reply #12 on: May 21, 2011, 07:30:20 19:30 »

dear, devfirat

If you want to choose C++ than go ahead. but I know that small size microcontrollers are a good target for C++. so it seems to me that you want to focus on powerful processors.

Anyway, please inform time to time. Also it can be a good work of study for me.

best regards, sughoi
Logged
robban
Senior Member
****
Offline Offline

Posts: 265

Thank You
-Given: 34
-Receive: 38


Warrior


WWW
« Reply #13 on: June 06, 2011, 09:29:53 21:29 »

I use a 18F97J60 running at 40MHz. I'm experimenting with Pragmatec PIC18OS (open source) and the latency time is 50us but interrupt time is 1 ms, managed by an internal RTC.
You can use these defines:
/* MAGIC : Tmr0.lt = 65536 - (CPU_FREQUENCY_HZ/4/1000 - 232)          */
#define _10MHZ   63320
#define _16MHZ   61768
#define _20MHZ   60768
#define _32MHZ   57768
#define _40MHZ    55768
It should be placed in Yr Interrupt.c file (if You have any!)
Have a look in Yr. datasheet for INTCONbits.TMR0IF or whatever it's called for Yr. PIC. There you also have alternative timer settings

Try it...
« Last Edit: June 06, 2011, 09:32:28 21:32 by robban » Logged

Code Warrior
devfirat
Junior Member
**
Offline Offline

Posts: 41

Thank You
-Given: 6
-Receive: 38

ße Different Everytime!


WWW
« Reply #14 on: March 06, 2012, 10:10:05 22:10 »

This RTOS works very good with Atmel AVR microcontrollers Wink
Logged

Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC