Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPI on DAQ-Board for HS Switches and ADCs #30

Open
Esouder opened this issue Sep 18, 2022 · 5 comments
Open

SPI on DAQ-Board for HS Switches and ADCs #30

Esouder opened this issue Sep 18, 2022 · 5 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers High Priority

Comments

@Esouder
Copy link
Member

Esouder commented Sep 18, 2022

Not sure of the state of SPI on the DAQ board. We need it to talk to the switches, ADCs, and TCs, Davin believes. This is necessary to use the new board for RCS.

The drivers are already implemented on the FC.

@SumairShergill
Copy link

October 23:

Pin 110 should be SCK but was defined as PTC5

Pin 109 should be CS0

Pin 111 = SOUT was ptc 6
Pin 112 = SIN

Pin 106 should be CS1

Pin 105 = CS2
Pin 104 = CS3

Pin 95 should be MOSI

Pin 96 should be MISO

Pin 90 = CS1
Pin 91 = CS0
Pin 92 = SCK1

@SumairShergill
Copy link

October 30:

SPI sending loop works but no oscilloscope readings

@davinbirdi davinbirdi changed the title SPI SPI on DAQ-Board for HS Switches and ADCs Oct 31, 2022
@davinbirdi
Copy link
Contributor

I kept on looking into this and I think we have have only set the pins on the chip and not setting up the peripheral on the board.

ie. we did this step:
image

But are potentially having issues here:
image

Let's look into this again on Thursday.

@davinbirdi
Copy link
Contributor

Had to reinstall that specific version of the SDK (v2.8.2) in oder to clear that error message in previous comment.

Am now able to update the driver files as RTOS-versions. I think what Sumair and I were doing was trying to program the chip to use RTOS functions whereas the actual hardware was setup to operate SPI in its polling configuration.

image

More Visible here:
image

Because I reinstalled my entire SDK, Git is saying that I modified a bunch of driver files and now I'm unable to compile...

@davinbirdi
Copy link
Contributor

Today we found that HS Switches require the RSTB pin to be held HIGH in order to use the SPI module on the chip. The DAQrevB Board is missing this electrical connection and requires a jumper in order to continue testing.

So far we have SPI outputting any byte stream we input working well with RTOS coming out of our chip.

Despite this setback of the hardware needing some extra work, we can try to communicate with the other devices on the board (i.e. the ADCs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers High Priority
Projects
None yet
Development

No branches or pull requests

3 participants