This application report describes the use of Timer_A3 to decode RC5 and SIRC TV IR remote control signals. The decoder described in this report is interrupt-driven and operates a background function using specific features the Timer_A3. Only a small portion of the MSP430 CPU?s nonreal-time resources is used. Specific hardware bit-latching capabilities of the Timer_A3 module are used for real-time decoding of the IR data signal, independent
and asynchronous to the CPU. CPU activity and power consumption are kept to an absolute minimum level. The Timer_A3 decoder implementation also allows other tasks to occur simultaneously if required. The solutions provided are written specifically for MSP430x11x(1) and MSP430x12x derivatives, but can be adapted to any other MSP430 incorporating Timer_A3.
電視遙控器設(shè)計(jì)基於MSP430
Yacc說(shuō)明及使用文檔
yacc(Yet Another Compiler Compiler),是Unix/Linux上一個(gè)用來(lái)生成編譯器的編譯器(編譯器代碼生成器)。yacc生成的編譯器主要是用C語(yǔ)言寫(xiě)成的語(yǔ)法解析器(Parser),需要與詞法解析器Lex一起使用,再把兩部份產(chǎn)生出來(lái)的C程序一併編譯。yacc本來(lái)只在Unix系統(tǒng)上才有,但現(xiàn)時(shí)已普遍移植往Windows及其他平臺(tái)。