Sie sind auf Seite 1von 18

PICos18 RTOS

Original copy in Portuguese from Casainho Translated by Leveraging http://www.freetranslation.com/ Geoffrey Wu Taipei, Taiwan 2006/5/18
1

PICos18 RTOS Real Time Operation System LIP Linux Install Party ESTGA 27042006 - University of management and technical from gueda _ Portugal -

PICs - Program memory


PIC10F200 256 words flash PIC18F4520 16k words flash PIC18F4620 32k words flash PIC18C601 external memory, up to 1M words

LCD - alphanumeric

LCD - graphic

Infinity Loop Among Tasks


while (1) { void Task_1(void); void Task_2(void); void Task_3(void); }
Task_1

Task_2

Task_3

Infinity Loop with Interrupts


Task_1 interrupt_1 interrupt_1

Task_2

Task_3

Pre-emptive MultiTasking
RTOS

Task_1

Task_2

Task_3

- attribution of priorities to each task 8

Advantages of the RTOS


Simpler organization of the codes Easy implementation of new tasks, espansion of the program Each task runs as if standalone in the system Interaction between the task is managed by the RTOS easy debug

RTOSs Out there in the market


FreRTOS - www.freertos.org Salvo RTOS - www.pumpkininc.com uC/OS-II - www.micrium.com PICos18 - www.picos18.com

10

PICos18

Produced by French company Pragmatec, that develops electronic systems It follows an open standard OSEK/VDX used in the automobile and robotics industry GPL Licensed Open Source Drivers LCD graphic, RS232, I2C, SPI, One Wire, CAN, RTC, Temperature sensor, EEPROM, Compact Flash and PGA.

11

Manage task in the PICos18

Initiate task suspended -> ready Finish task running -> suspended

12

Manage events in the PICos18


Link/Create event Turn off/Put out event Wait event Know which event happened

13

Manage alarms in the PICos18


Create alarms Stop alarms Knowing the state of alarms

14

Manage resources in PICos18


Lock resources Unlock resources

15

Size of the PICos18


Program memory 2 KB Data memory - 0.5 KB

16

Installation of the PICos18


Install the IDE MPLAB Install the compiler C18 Install the PICos18 Build the Kernel for target MCU

17

References

Wikipedia - www.wikipedia.org Microchip - www.microchip.com FreeRTOS - www.freertos.org Salvo RTOS - www.pumpkininc.com uC/OS-II RTOS - www.micrium.com PICos18 RTOS - www.picos18.com

18

Das könnte Ihnen auch gefallen