PIC16F877的多任务 Salvo™ RTOS
ThisapplicationnotecoversaReal-TimeOperating
System(RTOS)runningonaPIC16F877.Theapplica-
tioniswritteninCusingtheHI-TECHCcompiler.
MPLAB
®
IDEisusedastheIntegratedDevelopment
Environment.ThisRTOSisunique,inthatitisintended
formicrocontrollerapplicationswherememoryis
severelylimited.Theapplicationrunsonaprototype
PCBthatmonitorstemperature,acceptsuserinputand
displaysimportanttemperatureinformation.MAN777Multi-TaskingonthePIC16F877withtheSalvoRTOSAuthors:ChrisValentiSYSTEMDESCRIPTIONMicrochipTechnologyInc.Theprototype'shardwareincludesa20MHzcrystal,fourthermistors,fourpotentiometers,aserialport,AndrewE.Kalman,Ph.D.EEPROM,four7-segmentLEDs,16-buttonkeypadPumpkin,Inc.andapiezobeeper.Thephrase,“normalconditions,”willbeusedfrequentlyinthisapplicationnote,indicat-INTRODUCTIO