PIC 8-Channel Sony SIRC Decoder Demo [Deleted]

Status
Not open for further replies.

Mike - K8LH

Well-Known Member
Mike - K8LH submitted a new article:

PIC 8-Channel Sony SIRC Decoder Demo - Sony Remote Control Signal Decoding Demo (PIC16F1827 & Assembly Language).


Read more about this article...
 
Can you please explain this area

movf TMR0,W ; pulse lo time (64-us ticks) |B0
addlw -(2600/64+1) ; test for ~2400 ± 200 usecs |B0
addlw 400/64+1 ; C=1 (2200..2600 usec range)? |B0
 

There's a page titled "" in the source code repository on PICLIST that's probably worth checking out. I'm using this method to test if the IR signal low and high pulse widths are within a given range. In this case, I'm checking for a value in the range of 2200 to 2600 usecs. Of course the numbers are being scaled by 64 to match TMR0 resolution of 64-usecs so what we're really looking for here is a TMR0 value in the range of 34 to 40 (64-usec 'ticks') to qualify a ~2400-usec "start" pulse.

I hope this helps. Mike
 
Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…