RC5 is the IR transmission protocol developed by Philips. This was used for remots of TV & other equipments.
The PCAM+ kit is equipped with on board TSOP1738. The code below is used to decode the RC5 signal transmitted by the TV remote.
TV Remote is included with the PCAM+ product.
To complete the assignment you will need:
1. Product - PCAM+ (Practical Course For ATMEL Microcontrollers - Upgraded) 2. HandyProg-USB Programmer for 89S52 (Included with the PCAM+ kit) 3. RC5 TV Remote (Included with the Kit) 4. Single pin female to female connectors - 1 + 8
Port Pin P3.3 is connected to the output pin of TSOP1738, which is marked as IR38 on the PCAM+ board.
Connect 8 LEDs to Port P2 to see the decoded output.
8 LEDs will show binary value of the Switch pressed on TV remote.
IMP: Use remote which is supplied with the kit. Other remotes from market will not work.
Below is the source code written in 8051IDE:
VAR1 equ 07h ;Variable for delay VAR2 equ 08h ;Variable for delay TEMP equ 10H ;Temp variable COUNT equ 11H ;Count variable ADDR equ 12H ;Device address received from RC5 CMD equ 13H ;Command value received from RC5 FLIP bit 00H ;Flip bit TOG bit 01H ;Temp bit for flip IR equ P3.3 ;IR Receiver connected to this pin
MOV SP,#60H ;Stack pointer initialization CLR TOG ;Clear temp bit
EmbeddedMarket.com Address: 205, Decision Tower, Next To Citypride, Satara Road, Pune 411037 India Ph +91 20 24228818
Note - Do not visit OFFICE address without online order. Read this notification for details