DTMF and PIC for Remote Control
Recently started playing with PICs and am just fascinated at what they can do.
I am trying to build a simple remote control system for an amateur radio remote receiver using a DTMF decoder chip like an 8870 and a PIC such as a 16F877A. Does anyone have a code example of how the PIC would handle the input lines from the DTMF decoder? There is a valid digit line and 4 "decode" lines from the decoder. All I need is the BASICPRO program which would strobe the input lines, and when the valid signal is received determine which digit it represents. I can write the code for passwords, and determining what function the received number is to execute. I have looked through the code example part of the site and found one for a matrix keypad, but it does not include the use of a "valid" signal line.
There is at least one example on the web, but it is written in assembly language and I got too discouraged trying to "decode" it.
Thanx
Was DTMF, now TV IR controller.
DTMF now working satisfactorily. Thanks for all your help.
Next project, how to emulate TV IR remote function?
I want to replicate two Video remote control functions viz Fast Forward and Play. Where is the best place to start?
I thought I could copy the IR output, via digiscope, and implement in PIC?
This involves a lot of work to program in all the pulse train so recorded?
Mike
DTMF decoder using 16F628A
I have new coding problem, using TMR0 I do not understand........put simply
Code:
loop1:
if intcon.2 = 0 then loop1
intcon.2 = 0
clicks=clicks+1
if clicks >=1900 then
clicks=0
high pin11:pause 100:low pin11 'Flash LED for 10th of second
secs=secs+1
endif
if secs>=5 then
high pin10:pause 100:low pin10
gosub nowt
secs=0 'Reset secs
endif
goto loop1
end
nowt:
return
But fails if
gosub nowt
endif
goto loop1
end
nowt:
secs=0 'Reset secs
return
The inclusion of any code in the sub-routine at nowt: causes whole to fail?