Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

RTOS and AVR ATMega128...

Status
Not open for further replies.

venz

Full Member level 2
Joined
May 30, 2001
Messages
129
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Activity points
795
avr rtos

Does anyone have any experiance with a RTOS for ATMega128?
For example ucOS?

thanx in advance,

greetz, venz.
 

CADDevil

Member level 5
Joined
Jun 26, 2001
Messages
80
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
649
rtos avr

I am currently experimenting with uCOS-II on ATMega 103.
But I just started, so I am not sure if I will be able to help you.
What do you want to know ?
 

dacadc

Full Member level 2
Joined
Apr 22, 2001
Messages
146
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Location
Ukraine
Activity points
1,101
rtos for avr

I tested UCOS-II for AVR port, it works nice. But do not forget about external memory
 

venz

Full Member level 2
Joined
May 30, 2001
Messages
129
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Activity points
795
ucos avr

which AVR did you use?

What about external memory??

How is the performance?

greetz, venz.
 

dacadc

Full Member level 2
Joined
Apr 22, 2001
Messages
146
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Location
Ukraine
Activity points
1,101
ucos-ii avr

I used Atmega 128 16MHz and 64 kb external memory, UCOS consumed less 1 Kb, perfomance is good.
 

venz

Full Member level 2
Joined
May 30, 2001
Messages
129
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Activity points
795
atmega128 rtos

Any experiance with EhterNut NOT/OS?

greetz, venz.
 

002

Member level 1
Joined
Nov 12, 2001
Messages
32
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Italia
Activity points
162
rtos atmega

I work with atmel every day in C.
I don't understand as an Os can help me.
Can someone tell me the advantages for one as me?
 

CADDevil

Member level 5
Joined
Jun 26, 2001
Messages
80
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
649
rtos atmega128

uCOS-II is mainly a realtime preemptive multitasking kernel, not real OS.
It is good when your app. can be written as a number of parallel running tasks with different priorities.
Tasks are independent and communicate via mailboxes, semaphores etc.
 

002

Member level 1
Joined
Nov 12, 2001
Messages
32
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Italia
Activity points
162
atmega rtos

I already do this in C.

Every part of the main ago an operation.
Anybody part can stop the loop.
 

dacadc

Full Member level 2
Joined
Apr 22, 2001
Messages
146
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Location
Ukraine
Activity points
1,101
avr ucos

You can use cooperative RTOS with less overheads
 

venz

Full Member level 2
Joined
May 30, 2001
Messages
129
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Activity points
795
rtos mega128

what is the difference between cooperative & preemptive?
 

PigiPigi

Member level 2
Joined
May 1, 2002
Messages
43
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
271
uc/os avr

RTOS is selective and not alone choice!
 

CADDevil

Member level 5
Joined
Jun 26, 2001
Messages
80
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
649
ucos ii avr

venz: cooperative (non-preemtive) kernel means that the tasks must cooperate with each other to share CPU.

Preemptive kernel means that the taks with highest priority has always the control of CPU. If some action (e.g. interrupt) raise the priority of some task, this task immediately will have the CPU.

Preemptive kernels has better responsiveness and task level response is deterministic.
Cooperative kernels have also some advantages, like low interrupt latency.
 

dacadc

Full Member level 2
Joined
Apr 22, 2001
Messages
146
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Location
Ukraine
Activity points
1,101
avr ucos-ii

Please look UCOS documentation book, there are nice explanations
 

mupd

Junior Member level 1
Joined
May 10, 2001
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Ohai, New Zealand
Activity points
75
ucos-ii avr port

If you have a real-time application with many tasks, writing it without an RTOS is asking for trouble. (In fact you are really writing one yourself and you'll likely be sorry.) uCos-II comes as source and is easily configured to use only what is needed. It is remarkably inexpensive for what it does and it works well on small micros.
 

servopump

Member level 2
Joined
Feb 23, 2002
Messages
45
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Location
Italia
Activity points
355
cooperative rtos

Hi All,

I also am just starting to learn to use uCOS-II v2.52 for the PIC18. Does anyone have some example programs that I could look at to learn the proper programming style or technique?

Thanks in advance for your help

ServoPump
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top