Skip to content

Heinz/spi task Review#6

Open
Heinzino wants to merge 18 commits into
masterfrom
Heinz/SPI_Task
Open

Heinz/spi task Review#6
Heinzino wants to merge 18 commits into
masterfrom
Heinz/SPI_Task

Conversation

@Heinzino
Copy link
Copy Markdown
Member

@Heinzino Heinzino commented Nov 2, 2024

Still need to run on main code

Main Loop

   float accelerationPedalPercent = getAccelerationPedalPercent();
CUBE_PRINT("Acceleration Pedal Position: %.2f%%\n", accelerationPedalPercent);

float brakingPedalPercent = getBrakePedalPercent();
CUBE_PRINT("Braking Pedal Position: %.2f%%\n", brakingPedalPercent);
osDelay(SPI_TASK_DELAY); //Delay to reach 100 readings/s

Info From Datasheet

SDO
This is the serial data output of the conversion result. The serial stream comes with MSB first. The MSB is clocked out
(changed) on the falling edge one SCLK after the sampling period ends. This results in four leading zeros after CS
SDO 5 becomes active. SDO is 3-stated once all the valid bits are clocked out (12 for ADS7866, 10 for ADS7867, and 8 for
ADS7868).

@Heinzino Heinzino requested a review from MacKante November 3, 2024 01:21
@Heinzino Heinzino closed this Nov 7, 2024
@Heinzino Heinzino reopened this Nov 7, 2024
@Heinzino Heinzino changed the title Heinz/spi task Review , NOT TESTED Heinz/spi task Review Nov 7, 2024
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