Closed drtrigon closed 6 years ago
You can find a simple example here:
It just reads the AD channel 0 and show its value in the leds, at rate of 4Hz. The example is for the Alhambra I board, but the connection for the Alhambra II are the same
i am attaching here the example for the Alhambra II board
I am in the process of documenting everything. But in the meanwhile that example may help a little bit. The Alhambra II ADC converter is connected to the FPGA by the I2C bus
Thanks a lot! That is very helpful!
(Now have to merge picorv32 with this... ;))
Is an ADC example for Alhambra 2 available? May be one using picorv32?
I only found one for "MCP300x A/D controller (SPI master)" but as I understand is this the wrong chip and interface (SPI instead of I2C).