Adds BOM for PSDR2.6, also some notes on the schematic, and defining the pin for charge source control.

This commit is contained in:
Michael Colton 2016-06-09 00:35:57 -06:00
parent 8ad6b3ca50
commit 7a70b17276
6 changed files with 15 additions and 4 deletions

Binary file not shown.

Binary file not shown.

BIN
Hardware/PSDR2.6_BOM.xls Normal file

Binary file not shown.

View file

@ -162,7 +162,8 @@ extern const Gpio_Pin I2C_SDA;
extern const Gpio_Pin FLIP_FLOP_ENABLE; extern const Gpio_Pin FLIP_FLOP_ENABLE;
extern const Gpio_Pin RED_LED; extern const Gpio_Pin RED_LED;
extern const Gpio_Pin FIVE_VOLT_REGULATOR_ENABLE;
extern const Gpio_Pin CHARGE_POWER_SOURCE;
// extern const Gpio_Pin NC_1; // extern const Gpio_Pin NC_1;
// extern const Gpio_Pin DAC_SWITCHES; // extern const Gpio_Pin DAC_SWITCHES;

View file

@ -205,6 +205,9 @@ const Gpio_Pin RED_LED =
const Gpio_Pin FIVE_VOLT_REGULATOR_ENABLE = const Gpio_Pin FIVE_VOLT_REGULATOR_ENABLE =
{ GPIOE, GPIO_PIN_2 }; { GPIOE, GPIO_PIN_2 };
const Gpio_Pin CHARGE_POWER_SOURCE =
{ GPIOB, GPIO_PIN_8 };
//// timer pins //// timer pins
//const Timer_Pin LED_G = //const Timer_Pin LED_G =
//{ //{
@ -878,6 +881,13 @@ hal_setupPins (void)
gpioInitStructure.Pull = GPIO_NOPULL; gpioInitStructure.Pull = GPIO_NOPULL;
HAL_GPIO_Init (FIVE_VOLT_REGULATOR_ENABLE.port, &gpioInitStructure); HAL_GPIO_Init (FIVE_VOLT_REGULATOR_ENABLE.port, &gpioInitStructure);
HAL_GPIO_WritePin (FIVE_VOLT_REGULATOR_ENABLE.port, FIVE_VOLT_REGULATOR_ENABLE.pin, 0); HAL_GPIO_WritePin (FIVE_VOLT_REGULATOR_ENABLE.port, FIVE_VOLT_REGULATOR_ENABLE.pin, 0);
gpioInitStructure.Pin = CHARGE_POWER_SOURCE.pin;
gpioInitStructure.Speed = GPIO_SPEED_LOW;
gpioInitStructure.Mode = GPIO_MODE_OUTPUT_PP;
gpioInitStructure.Pull = GPIO_NOPULL;
HAL_GPIO_Init (CHARGE_POWER_SOURCE.port, &gpioInitStructure);
HAL_GPIO_WritePin (CHARGE_POWER_SOURCE.port, CHARGE_POWER_SOURCE.pin, 1); //High is for high current charging (I think 1A) Low is for 0.5A I think.
} }
// //

View file

@ -937,7 +937,7 @@ setFreq(vfoAFrequency);
setGainPot(128, 128); setGainPot(200, 200);
//testing Uart //testing Uart
configUartPeripheral(); configUartPeripheral();
@ -1816,7 +1816,7 @@ void TIM_Try(void)
TimHandle.Instance = TIM3; TimHandle.Instance = TIM3;
TimHandle.Init.CounterMode = TIM_COUNTERMODE_UP; TimHandle.Init.CounterMode = TIM_COUNTERMODE_UP;
TimHandle.Init.Period = 800; //was 1050. Can't remember what that works out to. I think 44kHz or so TimHandle.Init.Period = 1050; //was 1050, 800 works okay, not in AM though. Can't remember what that works out to. I think 44kHz or so
TimHandle.Init.Prescaler = uwPrescalerValue; TimHandle.Init.Prescaler = uwPrescalerValue;
TimHandle.Init.ClockDivision = 0; TimHandle.Init.ClockDivision = 0;
HAL_TIM_Base_Init(&TimHandle); HAL_TIM_Base_Init(&TimHandle);
@ -1838,7 +1838,7 @@ HAL_NVIC_EnableIRQ(TIMx_IRQn);
__TIM4_CLK_ENABLE(); __TIM4_CLK_ENABLE();
TimHandle4.Instance = TIM4; TimHandle4.Instance = TIM4;
TimHandle4.Init.CounterMode = TIM_COUNTERMODE_UP; TimHandle4.Init.CounterMode = TIM_COUNTERMODE_UP;
TimHandle4.Init.Period = 800; //was 1050 TimHandle4.Init.Period = 1050; //was 1050, 800 works okay, not in AM though.
TimHandle4.Init.Prescaler = uwPrescalerValue; TimHandle4.Init.Prescaler = uwPrescalerValue;
TimHandle4.Init.ClockDivision = 0; TimHandle4.Init.ClockDivision = 0;