From: andreaskoepke Date: Thu, 13 Mar 2008 17:09:07 +0000 (+0000) Subject: after some extensive measurements: this seems to be the best compromise X-Git-Tag: release_tinyos_2_1_0_0~481 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=519c19dd71e2e0792e6cacc60e4eb333671d7816 after some extensive measurements: this seems to be the best compromise --- diff --git a/tos/platforms/eyesIFX/chips/tda5250/tda5250BusResourceSettings.h b/tos/platforms/eyesIFX/chips/tda5250/tda5250BusResourceSettings.h index 7826d2b7..327c0ea0 100644 --- a/tos/platforms/eyesIFX/chips/tda5250/tda5250BusResourceSettings.h +++ b/tos/platforms/eyesIFX/chips/tda5250/tda5250BusResourceSettings.h @@ -44,13 +44,10 @@ enum { divide by 18 -> 1004976 Hz */ #ifndef TDA5250_UART_BAUDRATE -#define TDA5250_UART_BAUDRATE 32768U +#define TDA5250_UART_BAUDRATE 23405U #endif enum { - /** for reference, not recommended for new experiments */ - UBR_1MHZ_35108=0x001C, UMCTL_1MHZ_35108=0xAA, // 35108 bit/s - /** use real frequency, use only settings that result in an even byte time */ UBR_1MHZ_10240=0x0062, UMCTL_1MHZ_10240=0x08, // 10240 bit/s UBR_1MHZ_10922=0x005C, UMCTL_1MHZ_10922=0x00, // 10922 bit/s @@ -64,9 +61,7 @@ enum { UBR_1MHZ_23405=0x002A, UMCTL_1MHZ_23405=0x7F, // 23405 bit/s UBR_1MHZ_27306=0x0024, UMCTL_1MHZ_27306=0x7B, // 27306 bit/s UBR_1MHZ_32768=0x001E, UMCTL_1MHZ_32768=0x5B, // 32768 bit/s -/** too much for only 50kHz frequency hub UBR_1MHZ_40960=0x0018, UMCTL_1MHZ_40960=0x55, // 40960 bit/s -*/ }; #include "eyesIFXBaudrates.h" diff --git a/tos/platforms/eyesIFX/chips/tda5250/tda5250RegDefaultSettings.h b/tos/platforms/eyesIFX/chips/tda5250/tda5250RegDefaultSettings.h index 561ecb5c..9559e779 100644 --- a/tos/platforms/eyesIFX/chips/tda5250/tda5250RegDefaultSettings.h +++ b/tos/platforms/eyesIFX/chips/tda5250/tda5250RegDefaultSettings.h @@ -45,13 +45,13 @@ /** regulate distance by switching the amplifiers */ // longest distance -#define FULL_RANGE 0x84F9 +#define FULL_RANGE 0x04F9 // shorter distance; low gain, high tx energy consumption (30m) -#define MED_RANGE_HP 0x84E9 +#define MED_RANGE_HP 0x04E9 // shorter distance; high gain, low tx energy consumption (25m) -#define MED_RANGE_LP 0x84F8 +#define MED_RANGE_LP 0x04F8 // shortest: low gain; low tx energy consumption (1m to 3m range) -#define TABLE_TOP 0x84E8 +#define TABLE_TOP 0x04E8 /** regulate distance using variable resistor, values for high tx power */ #define RF_HITX_DAMPING_0dB 255