您好,看到TI的说明书有下面一段
XIN and XOUT pins are set to general-purpose I/Os and XT1 remains disabled until the I/O ports are
configured for XT1 operation.
• When available, XT2IN and XT2OUT pins are set to general-purpose I/Os and XT2 is disabled.
As previously stated, FLL operation with XT1 is selected by default, but XT1 is disabled. The crystal pins
(XIN, XOUT) are shared with general-purpose I/Os. To enable XT1, the PSEL bits associated with the
crystal pins must be set.
请问msp430F6726的XIN and XOUT和P口复用吗?要设置PSEL吗?
还有msp430F6726的AUXVCC1、AUXVCC2、AUXVCC3接地,VDSYS、VASYS、DVSYS通过电容接地,VDSYS、VASYS、DVSYS不接电源可以吗?
Leon Yan:
请问msp430F6726的XIN and XOUT和P口复用吗?要设置PSEL吗?
If the PSEL bit associated with XIN is cleared, both XIN and XOUT ports are configured as general-purpose I/Os, and XT1 is disabled.
5、6系列有的MCU是可以这样设置的,比如5438A。
但是对于6726,这两个引脚是无法用作GPIO的。
还有msp430F6726的AUXVCC1、AUXVCC2、AUXVCC3接地,VDSYS、VASYS、DVSYS通过电容接地,VDSYS、VASYS、DVSYS不接电源可以吗?
如果你没有使用的话,AUXVCC1、AUXVCC2、AUXVCC3需要接地,而且软件上要设置 AUXxMD =1 AUXxOK = 0,从下面的图中可以看到VDSYS、VASYS不需要连接电源。DVSYS还需要确认。
xiang ji:
回复 Leon Yan:
void main(void)
{
//SetVCore(3);
WDTCTL = WDTPW | WDTHOLD; // Stop WDT
//AUXCTL0=0xA50f;
//UCSCTL4 |=SELA__DCOCLK;
AUXCTL0 = AUXKEY;
AUXCTL1 |= AUX2MD;
AUXCTL1 |= AUX1MD;
AUXCTL1 &= ~AUX1OK_L;
AUXCTL1 &= ~AUX2OK_L;
UCSCTL6 &=~XT1OFF;
UCSCTL6_L |= XT1DRIVE_3;//XT1DRIVE1_L+XT1DRIVE0_L; // Highest drive setting for XT1 startup
UCSCTL6 |=XCAP_1;
//UCSCTL4=0;
do
{
UCSCTL7 &= ~(XT2OFFG | XT1LFOFFG | DCOFFG);
// Clear XT2,XT1,DCO fault flags
SFRIFG1 &= ~OFIFG; // Clear fault flags
} while (SFRIFG1 & OFIFG);
……
以上的软件是否可以使XT1起振呢?