+// this task runs on the rising egde of pck0 clock (24Mhz) and creates ant_lo\r
+// which is high for (divisor+1) pck0 cycles and low for the same duration\r
+// ant_lo is therefore a 50% duty cycle clock signal with a frequency of\r
+// 12Mhz/(divisor+1) which drives the antenna as well as the ADC clock adc_clk\r
+always @(posedge pck0)\r
+begin\r
+ if(pck_divider == divisor[7:0])\r
+ begin\r
+ pck_divider <= 8'd0;\r
+ ant_lo = !ant_lo;\r
+ end\r
+ else\r
+ begin\r
+ pck_divider <= pck_divider + 1;\r
+ end\r
+end\r
+\r
+// the antenna is modulated when ssp_dout = 1, when 0 the\r
+// antenna drivers stop modulating and go into listen mode\r