Skip to content

Conversation

@Emp231
Copy link

@Emp231 Emp231 commented Nov 28, 2025

No description provided.

HAL_SPI_TransmitReceive(&hspi1, pTxData, pRxData, 3, HAL_MAX_DELAY);
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_8, GPIO_PIN_SET);
adcVal = ((pRxData[1] & 0x03) << 8) | pRxData[2];
pwmVal = 1000 + (adcVal * (2000 - 1000)) / 1023;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would revisit the sections in the bootcamp on the setup guide for the timer peripheral to ensure that you're using the right values here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants