This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DS90UB953-Q1: How to config GPIO0-3 of UB953 as Forward GPIO to UB954?

Part Number: DS90UB953-Q1

 Dear Sir,

Dear Sir,

I found we can use DATAPATH_CTL1(0x33) in UB953 side to config the number of GPIOs forward to UB954, but I can not find the register which can define those GPIOs forward to UB954.

e.g. gpio0 and gpio3 are input pins in ub953 side, two gpios shall be forward. we can set 0x06 for DATAPATH_CTRL(0x33) in UB953 side.

and I want to select gpio0 and gpio3 are these two forward GPIOs(not gpio1 or gpio2), it seem no any register in UB953 side for this purpose?

Does anyone know how to config gpio0 &gpio3 as forward gpios in this case?

Thanks.

  • Hello Tiger,

    if you want to configure GPIO 0 & 3 as inputs on the 953 and outputs on the 954 then plz try the followings:

    on 954:
    0x4C = 0x01
    0x0F = 0x76
    0x10 = 0x01
    0x13 = 0x61
    0x59 = 0x02

    on 953:
    0x0E = 0x69
    0x33 = 0x06
  • Dear Hanzeh,

    Thanks for your feedback, I still have something to be confirmed, see my comments below.

    on 954:
    0x4C = 0x01
    //0x0F = 0x76 // in fact ,I just want to detect GPIO0 and GPIO3 rise and fall event,(FC_GPIO_ICR, and IFC_GPIO_STS), I don't want to forward gpio0 and gpio3(ub953 side) on GPIO0-6 (ub954 side), so, 0x0f and the following 0x10 and 0x13 registers are useless, and GPIO0-GPIO6( UB954 side) can be used as other function, can I do this by this way?
    //0x10 = 0x01
    //0x13 = 0x61
    //0x59 = 0x02 // according to datasheet of ub954, it is autoloaded from UB953 (0x33), don't need set again, is it right?

    So, I can initialize FC_GPIO_ICR, and IFC_GPIO_STS(GPIO0 and GPIO3 fall or rise enble) and get FALL or RISE even, don't need forward gpio0 and gpio3 on any gpio0 -gpio6 in UB954 side. is it right?

    on 953:
    0x0E = 0x69 // so , if GPIOs are configured as input, and Forward count is also two, gpio0 and gpio3 will be forward to UB954
    0x33 = 0x06


    Thanks.
  • Hello Tiger,

    yes, by using reg 0xDC you can get Forward channel GPIO interrupt status. And by using reg 0xDD you can detect falling edge or rising edge on FC GPIOs.