This is a functional prototype of a upcoming Byonics product in our T-Hunting / RDF product line, alng with the PicCon and MicroFox 15. It is an TDOA (Time Difference Of Arrival) antenna switcher that, when combined with a radio receiver, will tell the direction to a transmitter via LEDs. The initial prototype does not yet have the LEDs, but is still useful, in that it generates an audible tone on an 2-meter FM receiver when the two antennas are not the same distance from the transmitter, and thus receiving the signal out of phase from each other. That tone will fade away when the two antennas are rotated as they become equidistant from the transimtter, and fall into phase.
;________________________________________________________________________ ; ; T D O A 0 . A S M ;________________________________________________________________________ ; ; Byonics / Byon Garrabrant N6BG byon@byonincs.com Feb 20 2014 ;________________________________________________________________________ LIST P=PIC12F675 include "P12F675.INC" __CONFIG _INTRC_OSC_NOCLKOUT & _CP_OFF & _PWRTE_ON & _WDT_OFF & _MCLRE_OFF ;________________________________________________________________________ cblock H'20' ; system variables delay1 endc ORG 0 ; start code call H'3FF' bsf STATUS, RP0 ; Select Bank 1 movwf OSCCAL bcf STATUS, RP0 ; Select Bank 1 goto main ;________________________________________________________________________ delay ; delay 256*3+3 ins decfsz delay1, F ; about 780 us goto $-1 return #define OUT_PIN GPIO, 1 main movlw H'07' movwf CMCON bsf STATUS, RP0 ; Select Bank 1 clrf ANSEL bcf OUT_PIN ; make an output bcf STATUS, RP0 ; Select Bank 0 mainLoop bsf OUT_PIN ; output high call delay ; delay about 780 us goto $+1 ; to match goto below bcf OUT_PIN ; output low call delay ; delay about 780 us goto mainLoop END