【正文】
however, a roundrobin task switch is marked due to internal operating procedures. Waiting Tasks that are waiting for an event are in the Waiting state. If the event occurs which the task is waiting for, this task then enters the Ready state. The Debug – Breakpoints… dialog allows you to define breakpoints that stopthe program execution only when the task specified in the _TaskRunning_debug function argument is Running. Refer to “Predefined Functions” on page134 for a detailed description of the _TaskRunning_ debug function. The breakpoint at the function signalon stops execution only if lights is the current Running task. 。 explained in detail in the next table. Wait for event the task is waiting for。 max. 19 tasks active 16 RAM requirements 40 .. 46 bytes DATA 20 .. 200 bytes IDATA 7 bytes DATA 3 * task count IDATA (user stack) min. 650 bytes XDATA Code requirements 6KB .. 8KB 900 bytes Hardware requirements timer 0 or timer 1 timer 0 System clock 1000 .. 40000 cycles 1000 .. 65535 cycles Interrupt latency 50 cycles 20 cycles Context switch time 70 .. 100 cycles (fast task) 180 .. 700 cycles (standard task) depends on stack load 100 .. 700 cycles depends on stack load Mailbox system 8 mailboxes with 8 integer entries each not available Memory pool system up to 16 memory pools not available Semaphores 8 * 1 bit not available Overview of RTX51 Routines The following table lists some of the RTX51 functions along with a briefdescription and execution timing (for RTX51 Full). function Description CPU Cycles sr_recv_message Receive a message (call from interrupt). 71 (with message) isr_send_message Send a message (call from interrupt). 53 isr_send_signal Send a signal to a task (call from interrupt). 46 os_attach_interrupt Assign task to interrupt source. 119 os_clear_signal Delete a previously sent 57 signal. os_create_task Move a task to execution queue. 302 os_create_pool Define a memory pool. 644 (size 20 * 10 bytes) os_delete_task Remove a task from execution queue. 172 os_detach_interrupt Remove interrupt assignment. 96 os_disable_isr Disable 8051 hardware interrupts. 81 os_enable_isr Enable 8051 hardware interrupts. 80 os_free_block Return a block to a memory pool. 160 os_get_block Get a block from a memory pool. 148 os_send_message Send a message (call from task). 443 with task switch os_send_signal Send a signal to a task (call from tasks). 408 with task switch 316 with fast task switch 71 without task switch os_send_token Set a semaphore (call from task). 343 with fast task switch 94 without task switch os_set_slice Set the RTX51 system clock time slice. 67 os_wait Wait for an event. 68 for pending signal 160 for pending message Function Description These functions are available only in RTX51 Full. Additional debug and support functions in RTX51 Full include the following: Function Description oi_reset_int_mask Disables interrupt sources external to RTX51. oi_set_int_mask Enables interrupt sources external to RTX51. os_check_mailbox Returns information about the state of a specific mailbox. os_check_mailboxes Returns information about the state of all mailboxes in the system. os_check_pool Returns information about the blocks in a memory pool. os_check_semaphore Returns information about the state of a specific semaphore. os_check_semaphores Returns information about the state of all semaphores in the system. os_check_task Returns information about a specific task. os_check_tasks Returns information about all tasks in the system. CAN Functions The CAN functions are available only with RTX51 Full. CAN controllerssupported include the Philips 82C200 and 80C592 and the Intel 82526. MoreCAN controllers are in CAN Function Description can_bind_obj Bind an object to a task。 interval。 message from task or interrupt。 timeout。 附件 2:外文原文 (復(fù)印件) RTX51 RealTime Operating System RTX51 is a multitasking realtime operating system for the 8051 family. RTX51simplifies system and software design of plex and timecritical is a powerful tool to manage several jobs (tasks) on a single CPU. Thereare two distinct versions of RTX51: RTX51 Full which performs both roundrobin and preemptive task switchingwith 4 task priorities and can be operated with interrupt functions in supports signal passing。不過,它的輸入很少(通常有四個)而且通常沒有高級的觸發(fā)邏輯。 示波器是用于硬件調(diào)試的另一種試驗室設(shè)備,不過它可以在任何硬件上檢查任何電信號,不管是模擬的還是數(shù)字的。這個輸出語句會在處理器的一個或多 個引腳上產(chǎn)生特定的邏輯電平。例如:你可能想觀察處理器和它所連一個外設(shè)的總線交互信號。例如,你可以發(fā)出如下請求:“顯示輸入信號 1到 10 的值,但是直