Tool/software: Code Composer Studio
Hello,
I was playing around with the F28035 simulink example file: "c28x_LedBlink_ert"
After the program was loaded, I clicked on the "Open project in Code Composer Studio" in the simulink "Diagnostic Viewer". In the CCS watch window, I was going through the register values and had a few questions (4 questions):
1) I have read the TI documentation "SPRUGL8C" (http://www.ti.com/lit/ug/sprugl8c/sprugl8c.pdf) and on page 97 - Table 72, I see that GPIOs 0 to 11 have their pull ups disabled, is this because the GPIOs 0 to 11 are PWMs and since PWMs are outputs the pull ups are disabled? (there are other peripherals on these GPIO pins, so why disable only the first 12 GPIOs)
2) On the same page of the document, why arent GPIOs 40 & 41 pull up disabled by default as well? After all, they are ePWM7A & ePWM7B respectively (based on "SPRS584L" page 20 - http://www.ti.com/general/docs/lit/getliterature.tsp?genericPartNumber=tms320f28032&fileType=pdf).
3) However in the CCS watch window for "c28x_LedBlink_ert", things are consistent, i.e. "GPAPUD" by default has a value 0x00000FFF (pull up disabled for GPIOs 0 to 11), similarly "GPBPUD" has a default value of 0x00000300 (pull up disabled for GPIO 40 & 41). However I can't seem to find the file that initializes the registers with the mentioned values, in fact the "DSP280x_Gpio.c" initializes the pull ups using the following two lines:
GpioCtrlRegs.GPAPUD.all = 0x0000;
GpioCtrlRegs.GPBPUD.all = 0x0000;
So there has to be another file overwriting these registers, could I be directed to that file/function? For instance the "GPxDIR" are overwritten in the "c28x_LedBlink_ert_test.c" file.
4) The "c28x_LedBlink_ert" toggles the GPIO pins 31 & 34, so that means that those GPIOs should be set as outputs, looking at the watch window I observe that "GPADIR" has a value of 0x80000000 (i.e. GPIO 31 = output) and "GPBDIR" has a value of 0x00000004 (i.e. GPIO 34 = output), so things are consistent. However shouldn't the pull ups be disbaled since these are outputs? Shouldn't "GPAPUD" be 0x80000FFF and "GPBPUD" be 0x00000304?
Thanks in advance


