Can one populate the external crystal and keep using the internal crystal?
I have written my code on depending on the internal crystal (10 MHz) with the Piccolo ControlCARD. Now I am building my own board and for the future use we may want to use the external crystal. So I don't want to change my code but would like to have the additional external crystal populated.
When I look at the schematics of the ControlCARD for R1.1 and R1.2, there is a slight difference. For R1.1 both R4 and X1 are not populated so TMS320F28035's 51st and 52nd pins are floating (X1-X2 pins) where as for R1.2 crystal (X1) , C30 and C31 are populated and R4 is not populated.
I used the sample code for HVACI_Sensorless_CLA_F2803x and the system clock speed is based in internal oscillator(10MHz)
// Switch to Internal Oscillator 1 and turn off all other clock
// sources to minimize power consumption
EALLOW;
SysCtrlRegs.CLKCTL.bit.INTOSC1OFF = 0;
SysCtrlRegs.CLKCTL.bit.OSCCLKSRCSEL=0; // Clk Src = INTOSC1
SysCtrlRegs.CLKCTL.bit.XCLKINOFF=1; // Turn off XCLKIN
SysCtrlRegs.CLKCTL.bit.XTALOSCOFF=1; // Turn off XTALOSC
SysCtrlRegs.CLKCTL.bit.INTOSC2OFF=1; // Turn off INTOSC2
EDIS;
So does this mean that I can design my board like Rev1.2 (populate X1, C30-31 and not populate R4) and I still can use my internal oscillator settings?