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.

CCS/TMS320F28032: how to configure GPIO's output level before code was initialed?

Part Number: TMS320F28032

Tool/software: Code Composer Studio

hi,

if we have download firmware into 280032, a GPIO was configured as an output.

then 280032 was powered on, but the code hasn't been initiated, what's the status of this GPIO?

can we configure its output status as what we want?

if yes, how to configure it?

Thank you 

Erwin

  • Erwin,

    by default all GPIOs are configured as inputs when the device starts. You can see this by looking at the GPADIR and GPBDIR registers.

    The GPxPUD registers determine if a pull-up is enabled by default, this changes for each pin. 

    You cannot configure the device to startup with a different GPxDIR or GPxPUD configuration. After startup your code will need to configure these settings.

    Regards,
    Cody