Hello to all!
It might not interesting to you but I need really help to make a simple repeater controller with on/off using LM567 as a decoder for 1750hz burst for about 10 secs. I am using PIC12F509. I can't figure it out!
Well here is my elemetary program
@ device pic12f509,intrc_osc,wdt_off,mclr_off,protect_off
Define OSCCAL_1K 1
'pin assignments
ptt var gpio.0 ' PTT pin
snd var gpio.1 ' sound pin
mute var gpio.2
cor var gpio.3
jumper var gpio.4 ' beep selector
ct var gpio.5 ' connected to pin 8 of LM567
'variables
x var byte
remote var bit
ini:
option_reg.5 = 0
trisio = %111000
pause 1000
begin:
if cor = 0 then tx '
ptt = 0 : mute = 1
pause 100
goto begin
tx:
ptt =1 : mute = 0
loop:
if cor = 1 then beep
pause 100
goto loop
beep:
mute = 1: pause 50
if jumper = 0 then sound snd,[ 115,12]
else
sound snd,[0,12]
endif
delay:
for x = 0 to 5
if cor = 0 then tx
pause 100 : next x
ptt = 0
goto begin
I tried to ask help to other forum but they ignored it.
regards!
kobie