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.

DRV8301-LS12-Kit and spare gio

Other Parts Discussed in Thread: DRV8301, MOTORWARE

Hi,

I've got a DRV8301-LS12 motor dev kit and I'm trying to find a couple of spare gio pins to use.  It's unclear from the schematics that came with the kit whether any of the connectors have spare gio available. 

The DRV8301 board has J12 with GPIO-28 and GPIO-29, but when I try to trace them back to the processor, I get nowhere.  On the DRV8301 schematic, GPIO-28 traces to the GPIO-28 (pin 43) on connector J1.  But on the CNCD schematic, pin 43 is labeled GPIO28/SCIRXDA/XZCS6n and is connected to a wire labeled SCIRX_Base which doesn't goto the processor (near as I can tell).

Can anyone help me find some spare gpio from the processor that I can connect to from the DRV8301 board?

Thanks in advance!

Mike

 

  • How about the DAC_PWM1-4 and Cap1-3 pins? They are connected to the epwm, ecap and NHET pins. And they are not used in our project.

    There are resistor and cap on the DAC_PWM pins, you might need to remove them if the IO speed is high.

    The buffer TXB0106PW on the Cap is a dual direction buffer. Should be fine but the Header side requires 5v.

    J20 on the DRV8301 also provide some spi IOs, but the direction of the signal is fixed.

    The GPIO28 and GPIO29 will be connected to LINTX and RX of the MCU if you turn on one of the DIP switchs (JTAG). But, this switch also controls the JTAG signal. Once turned on, you can no longer use the on board xds100v2, you have to use a external JTAG from the DRV8301 J20 JTAG connector.

    Regards,

    Haixiao

  • I really need gpio pins that I can quickly set /clear for timing analysis and debugging.

    Unless I'm missing something, I can't easily set & clear the pwm, cap, or nhet pins.  If I am missing somethings, please let me know.

    Thanks,

    Mike

  • Given the example of DAC_PWM1. It is located at DRV8301 J5-Pin15. On the control card side, it is connected to MCU pins ETPWM1A_GIOA5 and NHET11.

    In the Motorware you download from TI web, it sets to ETPWM1A by following in sys_main.c

    *(volatile unsigned int *) 0xFFFFEB18 = 0x04010110; // ETPWM1A 2[26], EQEP2I 2[4]

    Assume you want to use GIOA5, change that sentence to:

    *(volatile unsigned int *) 0xFFFFEB18 = 0x01010110; // ETPWM1A 2[26], EQEP2I 2[4]

    Now, you can treat this pin status as GIOA5 and control it through GIO registers.

    Let's me know if it does not work.

    Regards,

    Haixiao

  • This is works great.  Thanks you!