Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 29, 2024, 12:05:26 12:05


Login with username, password and session length


Pages: [1]
Print
Author Topic: repeater on/off  (Read 3721 times)
0 Members and 1 Guest are viewing this topic.
amatuere
Junior Member
**
Offline Offline

Posts: 51

Thank You
-Given: 166
-Receive: 8


« on: February 20, 2009, 02:10:22 14:10 »

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. Sad

regards!
 kobie
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC