Hola Nigel,
I am about to implement my own IR receiver / decoder based on a PIC.
Could you please explain the reason of this section of your code?
I can not understand :cry: "waste time to scale pulse width to 8 bits "
What is the calculation involved?
Thanks for your time. :!:
I am about to implement my own IR receiver / decoder based on a PIC.
Could you please explain the reason of this section of your code?
Code:
goto Still_High
Next nop
nop
nop
nop
nop ;waste time to scale pulse
nop ;width to 8 bits
nop
nop
nop
nop
nop
nop
incf LoX,f
btfss IR_PORT, IR_In
goto Next ;loop until input high again
; test if Zero, One, or Start (or error)
I can not understand :cry: "waste time to scale pulse width to 8 bits "
What is the calculation involved?
Thanks for your time. :!: