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.

EBSR PPMODE field

Hi all,

I work with the eval board ezdsp5535. For my future application, I would like to use SPI peripheral and specific GPIO28 and GPIO29.

Quickly I see that I have to configure the PPmode Field from EBSR register to Mode 1 to use SPI and unfortunately mode 2 to use GPIO28 or 29. Later I will have to use many GPIO which are not mapped to the same PPmode configuration. My question is:

Is it possible to change the EBSR register when the application is running to switch between different PPMODE or is it not possible (that mean I have to choose a fix PPMODE at the boot process)?

If it is possible what is the sequence I have to follow in order to do that?

Thank you

Regards

  • Yes it is possible to change the EBSR register when the applicatuion is running, but you must clock gate each peripheral before the change and then reset each peripheral after the change.

    See 4.6.1 External Bus Selection Register (EBSR) in http://www.ti.com/lit/ds/symlink/tms320c5535.pdf

    "Before modifying the values of the external bus selection register, you must clock gate all affected peripherals through the Peripheral Clock Gating Control Register. After the external bus selection register has been modified, you must reset the peripherals before using them through the Peripheral Software Reset Counter Register."

    Peripheral Clock Gating Control Registers - PCGCR1 and PCGCR2 [1C02h and 1C03h]

    Peripheral Reset Control Register - PRCR [1C05h]

    Regards,
    Mark