Detailed description: Infrared decoding program under ICCAVR (all source code/schematic diagram and PCB/chip data) The environment uses ICCAVR6.31A, MEGA8L, internal RC8M. The upd6121.pdf and S0101.Zip in the compressed package are infrared remote control chip data, LYJ_DDB is under Protel99SE, and the others are source programs. ************************************************************************************************1. First, you need to know which part of the operation is currently being executed. This is the role of iIrMode case 0://Step 1, wait for 9Ms of high level, otherwise always wait here, if successful, you can execute step 2 case 1://Step 2, wait for 4.5Ms of low level, if not satisfied, return to step 1 case 2://Step 3, receive user code and key code, and then judge and execute 2. To judge the duration of high and low levels, you must time it. iHight and iLow correspond to high and low levels respectively. We sample at 100us, and the corresponding value of 9Ms is 90 3. Use iPreBit to record whether the previous sampling was high or low. According to the current sampling level, you can judge whether it is flipped. When 0->1 is flipped, it is the end of 1Bit and the beginning of the next Bit***************************************************************************************************
You Might Like
Recommended ContentMore
Open source project More
Popular Components
Searched by Users
Just Take a LookMore
Trending Downloads
Trending ArticlesMore