[tuxdroid-svn] r1327 - firmware/rf/trunk
Status: Beta
Brought to you by:
ks156
From: jaguarondi <c2m...@c2...> - 2008-07-16 08:08:14
|
Author: jaguarondi Date: 2008-07-16 10:08:10 +0200 (Wed, 16 Jul 2008) New Revision: 1327 Modified: firmware/rf/trunk/defines.h Log: * Updated some parameters and comments. Modified: firmware/rf/trunk/defines.h =================================================================== --- firmware/rf/trunk/defines.h 2008-07-16 08:00:29 UTC (rev 1326) +++ firmware/rf/trunk/defines.h 2008-07-16 08:08:10 UTC (rev 1327) @@ -30,7 +30,7 @@ //**Define the used HOPPING SCHEME**// //#define HOPPING #define NOHOPP -#define TRX_CHANNEL 4 +#define TRX_CHANNEL 0 //#define CYCHOPP //**Define the used HOPPING SCHEME**// @@ -113,7 +113,7 @@ /* Part of the HEADER which is stored in the buffer. 2 bytes of the PREAMBLE * aren't stored but sent directly. */ #define STORED_HEADER (HEADER - 2) -#define PAYLOAD 75 /* Payload in bytes */ +#define PAYLOAD 73 /* Payload in bytes */ #define RF_BUFFER_SIZE (PAYLOAD + STORED_HEADER) /* USART bit to tick ratio: sys_clk / (8 * 1152e3) */ @@ -130,7 +130,7 @@ #define T_PWR_UP 0//69 /* 40us */ /* Programming (~20us) and PLL loop (>200us) */ #define T_LOOP 380 -/* Sending the HEAER and PAYLOAD */ +/* Sending the HEDAER and PAYLOAD */ //#define T_ACTIVE 1124 /* 650us */ #define T_MARGIN 20 #define T_ACTIVE (T_HEADER + T_PAYLOAD + T_MARGIN) @@ -151,9 +151,12 @@ /* There's a latency between the time the master sends the first byte of the * payload and the time the slave captures the last byte of the header. This - * value is better checked with an oscilloscope: the first byte of the preamble - * should be received 50us (T_RX_ON) after RX_ON is set. */ -#define T_LATENCY 10 + * value is can be checked with an oscilloscope: the first byte of the preamble + * should be received 50us (T_RX_ON) after RX_ON is set. This should be true + * for both master and slave. + * Another way is to check the minimum and maximum values that still work + * (checksum OK) and get the value in the middle. */ +#define T_LATENCY 25 //#define T_1ms 1728 [> Exactly -> 1000us <] //#define T_PWR_UP_TX 69 [> 40us <] |