Other Parts Discussed in Thread: CONTROLSUITE, TMDSDOCK28069
Hello,
There is not an external XTAL for X1/X2 pin on our board. So I want to use OSC1CLK for PLL2 of USB. I'm referring source code below which uses XTAL for PLL2.
C:\ti\controlSUITE\device_support\f2806x\v151\F2806x_examples_ccsv5\usb_dev_serial\usb_dev_serial.c
However, it doesn't pass through the polling of the PLL2LOCKS bit of PLL2STS register.
SysCtrlRegs.PLL2CTL.bit.PLL2CLKSRCSEL = 2;
SysCtrlRegs.PLL2CTL.bit.PLL2EN = 1;
SysCtrlRegs.PLL2MULT.bit.PLL2MULT = 6;
while(!SysCtrlRegs.PLL2STS.bit.PLL2LOCKS);
There is no description about INTOSC1 below, but can I set PLL2CLKSRCSEL to 0 or 1(not 2 or 3)? Also, can I get the same effect on 0 and 1?
F2806x TRM (SPRUH18F) : Table 1-27. PLL 2 Configuration (PLL 2 CTL) Register Field Descriptions
The user would need to select X1 or GPIO_XCLKIN as clock source during their initialization process.
Regards,
Kazu