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.

DRV8305-Q1EVM: Push button

Part Number: DRV8305-Q1EVM

Hi Team,

Our customer would like to know how to use the push button on the EVM board to run the motor on the Lab02b project. 

I looked at the EVM User's guide and found the instruction on how to set the function of the push button via J6 jumper.

Could you also share how to set push-button function via software?

Thanks and Regards,

Marvin

  • Hi Marvin,

    Looks like J6 jumper allows to connect the PUSH button from an MCU_RESET to PUSH, which connects to ADCINB6 or AIO14 on this microcontroller. 

    I think AIO14 is a general purpose I/O. I am not a C2000 expert, but what I would do is initialize this an input, and then add a line of code that waits for this button to be pressed to execute lab 2b. Usually a flag that runs the project is called Flag_Run_Identify, so you could replace this line with code that uses this variable with a

    while(buttonPress == 1);

    that waits for buttonPress to be logic low to proceed with the code. I would also ensure software debouncing as well to ensure it detects a correct button press. 

    Thanks,
    Aaron