#include "DSP280x_Device.h"
#include "DSP280x_Examples.h"char dat=0;void Init_Sci(void){ InitSysCtrl(); InitSciGpio(); SciaRegs.SCICCR.bit.SCICHAR=7; SciaRegs.SCICCR.bit.STOPBITS=0; SciaRegs.SCICTL1.bit.TXENA=1; SciaRegs.SCIHBAUD=0x01; SciaRegs.SCILBAUD=0x44; SciaRegs.SCICTL1.bit.SWRESET=1;}void delay(void){ long int i,j; for(i=0;i<10000;i++) for(j=0;j<1000;j++);}void main(void){ Init_Sci(); while(1) { SciaRegs.SCITXBUF=dat; dat++; if(dat>255) dat=0; delay(); } }