Abdulaziz
09/26/2022, 8:29 AMArman Avetisyan
09/26/2022, 9:31 AMArman Avetisyan
09/26/2022, 9:32 AMAbdulaziz
09/26/2022, 9:41 AMArman Avetisyan
09/26/2022, 9:48 AMAbdulaziz
09/26/2022, 9:56 AMArman Avetisyan
09/26/2022, 10:12 AMTim Edwards
09/26/2022, 6:58 PMAbdulaziz
09/26/2022, 9:11 PMTim Edwards
09/26/2022, 9:32 PMgpio_analog
(only use gpio_noesd
if you cannot tolerate a 150 ohm resistor in series with the input). But "put into analog mode" means to set the default GPIO configuration for that pin (and/or set the GPIO configuration from software) to turn off the digital input and output buffers. That's required to use the GPIO pin as an analog signal.
For the digital inputs, there is (on the caravan
version of the chip) a io_in_3v3
signal as well as the `io_in`; the first one is a copy of the 2nd, in the high voltage domain. You can make use of either signal, or both.
You can configure the GPIO as a user-controlled input when getting your signal from off-chip. You can then alternatively configure the GPIO (through software) as a management-controlled digital output, but with the input buffer turned on. The management SoC will then control the pad value, but the user project will still be able to read the pad input, so that you can emulate the external signal from software.Abdulaziz
09/27/2022, 1:23 AMTim Edwards
09/27/2022, 2:28 AMAbdulaziz
09/27/2022, 4:45 AMArman Avetisyan
09/27/2022, 7:34 AMAbdulaziz
09/27/2022, 7:39 AMArman Avetisyan
09/27/2022, 7:45 AMAbdulaziz
09/27/2022, 7:58 AMAbdulaziz
09/27/2022, 8:14 AMArman Avetisyan
09/27/2022, 9:03 AMThe way I am doing it is to couple a level shifter (lv2hv) between the decoder input and io_in pad for each of the four inputs. (since they are hv and the soc operate at 1.8V).You dont need level shifter, you can just connect to io_in_3v3
But I don’t really understand when you say configure the gpio as management-controlled digital output. Shouldn’t be configure the gpio as management-controlled digital input?Because in order to drive the pad from mgmt you need to enable the output drivers. The input is going to match the output signal.
Also, how to configure the gpio as user-controlled input, via software too?Via software for RISC-V CPU of the mgmt area. The software is located on external SPI Flash, if I remember correctly. In next MPW the support for design time configuration might be added, but I dont have any details regarding that.
Abdulaziz
09/28/2022, 1:44 AM