This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

5529测量单极性方波的频率

430初学
我用5529测量DDS产生的方波频率是可以的(4Vpp,50Hz),DDS的方波是双极性的;但是我测一个单极性的方波就无法显示(Vpp可调,50Hz);
请问单极性的Vpp应该设置为多少?
寄存器配置如下:
P2REN |= BIT1;         // Enable P2.1 internal resistance
  P2OUT |= BIT1;         // Set P2.1as pull-Up resistance
  P2IES |= BIT1;         // P2.1Hi/Lo edge
  P2IFG &= ~BIT1;        // P2.1 IFG cleared
  P2IE |= BIT1;          // P2.1 interrupt enabled
还有为什么不是P2OUT &= ~BIT1;而且REN是必须的吗?