Wavebubble 2010 Hardware Test
|
Functions | |
void | delay_ms (uint16_t ms) |
void | test_led (void) |
void | set_sawtooth_high (void) |
void | set_sawtooth_low (void) |
void | set_resistor (uint8_t rnum, uint8_t rval) |
void | test_resistors (void) |
void | test_powerswitch1 (void) |
void | test_powerswitch2 (void) |
void | test_dc (void) |
void | test_vcos (void) |
void | test_pll1 (void) |
void | test_pll2_rf (void) |
void | test_pll2_if (void) |
Hardware test functions
void delay_ms | ( | uint16_t | ms | ) |
Milliseconds delay function
Used microseconds delay function from avrlibc
ms | Number of Milliseconds to delay |
Referenced by test_dc(), test_led(), test_pll1(), test_pll2_if(), test_pll2_rf(), test_powerswitch1(), test_powerswitch2(), test_resistors(), test_vcos(), tune_if(), tune_rf(), and tune_rf_band().
void set_resistor | ( | uint8_t | rnum, |
uint8_t | rval | ||
) |
Set digital potentiometer
rnum | Number of potentiometer, 0 or 1 |
rval | Resistor value to set, 0 - 255 |
References SPICLK, SPICLK_PORT, SPICS, SPICS_PORT, SPIDO, and SPIDO_PORT.
Referenced by main(), test_pll2_if(), test_pll2_rf(), test_resistors(), test_vcos(), tune_if(), tune_rf(), and tune_rf_band().
void set_sawtooth_high | ( | void | ) |
Set NE555 high frequency mode
Enable 20KHz sawtooth
References FREQSET, FREQSET_DDR, and FREQSET_PORT.
Referenced by main(), and tune_rf_band().
void set_sawtooth_low | ( | void | ) |
Set NE555 low frequency mode
Enable 100Hz sawtooth
References FREQSET, FREQSET_DDR, and FREQSET_PORT.
Referenced by main(), test_pll2_if(), test_pll2_rf(), and tune_rf_band().
void test_dc | ( | void | ) |
Test variable DC generation via PWM
PWM outputs will run contrary.
References delay_ms().
Referenced by main().
void test_led | ( | void | ) |
void test_pll1 | ( | void | ) |
void test_pll2_if | ( | void | ) |
Test PLL
Test IF stage of PLL.
References BANDWADJ2_RES, delay_ms(), in_char, pll_init(), pll_set_if, POWERCTL1, POWERCTL1_PORT, POWERCTL2, POWERCTL2_PORT, set_resistor(), and set_sawtooth_low().
Referenced by main().
void test_pll2_rf | ( | void | ) |
Test PLL
Test RF stage of PLL.
References BANDWADJ1_RES, delay_ms(), in_char, pll_init(), pll_set_rf, POWERCTL1, POWERCTL1_PORT, POWERCTL2, POWERCTL2_PORT, set_resistor(), and set_sawtooth_low().
Referenced by main().
void test_powerswitch1 | ( | void | ) |
Test VCO1 power switch
Cycle VCO1 power every 2s.
References delay_ms(), POWERCTL1, POWERCTL1_PORT, POWERCTL2, and POWERCTL2_PORT.
Referenced by main().
void test_powerswitch2 | ( | void | ) |
Test VCO2 power switch
Cycle VCO2 power every 2s.
References delay_ms(), POWERCTL1, POWERCTL1_PORT, POWERCTL2, and POWERCTL2_PORT.
Referenced by main().
void test_resistors | ( | void | ) |
Test digital potentiometers
Perform potentiometer sweep. Potentiometer will run contrary.
References BANDWADJ1_RES, BANDWADJ2_RES, delay_ms(), and set_resistor().
Referenced by main().
void test_vcos | ( | void | ) |
Test VCOs
VCOs will be tuned over the whole bandwidth.
References BANDWADJ1_RES, BANDWADJ2_RES, delay_ms(), POWERCTL1, POWERCTL1_PORT, POWERCTL2, POWERCTL2_PORT, and set_resistor().
Referenced by main().