0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-04-28 06:11:24 +03:00

Test with TX filter disabled

This commit is contained in:
OneOfEleven 2023-12-04 21:33:09 +00:00
parent f433ff6bae
commit 1ea88af022
6 changed files with 13 additions and 13 deletions

View File

@ -86,7 +86,7 @@ ENABLE_SIDE_BUTT_MENU := 0
# Key Lock 400 B
ENABLE_KEYLOCK := 0
# panadapter 1.5kB
ENABLE_PANADAPTER := 1
ENABLE_PANADAPTER := 0
ENABLE_PANADAPTER_PEAK_FREQ := 0
# single VFO 1.5kB
ENABLE_SINGLE_VFO_CHAN := 1

View File

@ -1201,8 +1201,8 @@ void APP_end_tx(void)
#endif
}
// re-enable 300Hz TX HPF
BK4819_write_reg(0x2B, BK4819_read_reg(0x2B) & ~(1u << 2));
// re-enable TX HPF & LPF
BK4819_write_reg(0x2B, BK4819_read_reg(0x2B) & ~(1u << 2) & ~(1u << 1));
RADIO_setup_registers(false);

Binary file not shown.

Binary file not shown.

View File

@ -298,11 +298,11 @@ void FUNCTION_Select(function_type_t Function)
// 1of11 .. TEST ONLY
// if (g_current_vfo->p_tx->code_type == CODE_TYPE_NONE)
{
// const uint16_t reg = BK4819_read_reg(0x2B);
#if 0
BK4819_write_reg(0x2B, reg | (1u << 2)); // disable the 300Hz TX HPF
//BK4819_write_reg(0x2B, reg | (1u << 1)); // disable the TX LPF
#else
const uint16_t reg = BK4819_read_reg(0x2B);
// #if 0
// BK4819_write_reg(0x2B, reg | (1u << 2)); // disable the 300Hz TX HPF
BK4819_write_reg(0x2B, reg | (1u << 2) | (1u << 1)); // disable TX LPF & HPF
// #else
// BK4819_write_reg(0x2B, reg & ~(1u << 2)); // enable the 300Hz TX HPF
// TX 300Hz LPF
@ -320,9 +320,9 @@ void FUNCTION_Select(function_type_t Function)
//BK4819_write_reg(0x55, 0x31E7); //
//BK4819_write_reg(0x54, 0x8ED8); // +3dB
//BK4819_write_reg(0x55, 0x3232); //
BK4819_write_reg(0x54, 0x8D8F); // +4dB
BK4819_write_reg(0x55, 0x3359); //
#endif
// BK4819_write_reg(0x54, 0x8D8F); // +4dB
// BK4819_write_reg(0x55, 0x3359); //
// #endif
// TX 3kHz HPF
//BK4819_write_reg(0x74, 64002); // -1dB
@ -330,7 +330,7 @@ void FUNCTION_Select(function_type_t Function)
//BK4819_write_reg(0x74, 58908); // +1dB
//BK4819_write_reg(0x74, 57122); // +2dB
//BK4819_write_reg(0x74, 54317); // +3dB
BK4819_write_reg(0x74, 52277); // +4dB
// BK4819_write_reg(0x74, 52277); // +4dB
// #endif
}
// else

View File

@ -26,7 +26,7 @@
enum {
FM_DEV_LIMIT_LOWER_NARROW = 950,
FM_DEV_LIMIT_DEFAULT_NARROW = 1200, // 900
FM_DEV_LIMIT_DEFAULT_NARROW = 1200,
FM_DEV_LIMIT_UPPER_NARROW = 1600,
FM_DEV_LIMIT_LOWER_WIDE = 950,