Wavebubble 2010 Hardware Test
Functions

test.h File Reference

Go to the source code of this file.

Functions

void test_led (void)
void set_sawtooth_low (void)
void set_sawtooth_high (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 delay_ms (uint16_t ms)
void test_pll1 (void)
void test_pll2_rf (void)
void test_pll2_if (void)

Detailed Description

Hardware test header file


Function Documentation

void delay_ms ( uint16_t  ms)

Milliseconds delay function

Used microseconds delay function from avrlibc

Parameters:
msNumber of Milliseconds to delay
void set_resistor ( uint8_t  rnum,
uint8_t  rval 
)

Set digital potentiometer

Parameters:
rnumNumber of potentiometer, 0 or 1
rvalResistor value to set, 0 - 255

References SPICLK, SPICLK_PORT, SPICS, SPICS_PORT, SPIDO, and SPIDO_PORT.

void set_sawtooth_high ( void  )

Set NE555 high frequency mode

Enable 20KHz sawtooth

References FREQSET, FREQSET_DDR, and FREQSET_PORT.

void set_sawtooth_low ( void  )

Set NE555 low frequency mode

Enable 100Hz sawtooth

References FREQSET, FREQSET_DDR, and FREQSET_PORT.

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  )

Test power/program indicator LED

References delay_ms(), LED, and LEDPORT.

Referenced by main().

void test_pll1 ( void  )

Test PLL

Oscillate PLL DATA pin at 5 Hz.

References delay_ms(), and pll_tx().

Referenced by main().

void test_pll2_if ( void  )
void test_pll2_rf ( void  )
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().