Quantcast
Channel: MSP 低功耗微控制器论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 3634

16位 MSP430FR2353 芯片P1.7引脚配置成VREF+输出2.5V 如何配置?

$
0
0

16位  MSP430FR2353芯片P1.7引脚配置成VREF+输出2.5V 如何配置?

下面是我的配置

  WDTCTL = WDTPW + WDTHOLD;                 // Stop watchdog timer
  PM5CTL0 &= ~LOCKLPM5;                     // Disable the GPIO power-on default high-impedance mode
                                            // to activate previously configured port settings
  P1SEL0 |= BIT7;
  P1SEL1 |= BIT7;
  // Configure reference module
  PMMCTL0_H = PMMPW_H;                                      // Unlock the PMM registers
  PMMCTL2 = INTREFEN | REFVSEL_2 | EXTREFEN_1;              // Enable internal 2.5V reference
  while(!(PMMCTL2 & REFGENRDY));                            // Poll till internal reference settles
,但是测量时仅仅测量出来1.2V 我想输出2.5V 不知道怎么配置下  能否提供下例程

Viewing all articles
Browse latest Browse all 3634

Trending Articles