摘要 |
PURPOSE: A method for implementing a software of an R2 signal system, is provided to efficiently detect an R2 tone with a semaphore, an object of a synchronization, and a flag variable, and form a proper synchronization among every task configuring a protocol with a queue. CONSTITUTION: A method for implementing a software of an R2 signal system comprises an R2 tone detection task(220) and an R2 signal processing task(230). The R2 tone detection task(220) periodically detects a tome received from a central processing unit(CPU,300) which directly transceives a tone for setup of a communication line, and confirms and reported the detected tone. And the R2 signal processing task(230) analyzes the reported tone and decides a corresponding transmission tone according as the confirmed tone is reported by the R2 tone detection task, and then demand a transmission of the decided transmission tone of the CPU.
|