CCS6.0显示AD波形利用CCS6.0 实时显示两路AD转换结果,用波形的显示的设置步骤如下:1、打开CCS6.0, 打开AD工程,如图:程序如下:#include myapp.h#include csedu.h#include scancode.hvoid InitADC();void wait( unsigned int cycles );void EnableAPLL( );unsigned int nADC0256,nADC1256;main()int i;unsigned int uWork;EnableAPLL();SDRAM_init();InitADC();PLL_Init(132);while ( 1 )for ( i=0;i256;i+ )ADCCTL=0x8000; / 启动AD转换,通道0douWork=ADCDATA; while ( uWork&0x8000 );nADC0=uWork&0x0fff;for ( i=0;i25