13.07.2015 Views

DSP56xxx C Cross-Compiler User's Guide - Tasking

DSP56xxx C Cross-Compiler User's Guide - Tasking

DSP56xxx C Cross-Compiler User's Guide - Tasking

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Language Implementation 3–21typedef union /* PLL Control Register */{struct{unsigned MF : 12; /* 0: Multiplication Factor */unsigned DF : 4; /* 12: Division Factor */int XTLD : 1; /* 16: XTAL Disable */int PSTP : 1; /* 17: STOP processing State */int PEN : 1; /* 18: PLL Enable */unsigned COD : 2; /* 19: Clock Output Disable */int CSRC : 1; /* 21: Chip Clcok Source */int CKOS : 1; /* 22: CKOUT Clock Source */int rsvd : 1; /* 23: Reserved */} B;int I;} pctl_type;#define PCTL (*(pctl_type*) 0xFFFD) /* PLL Control Register */voidmain( void ){PCTL.B.PEN = 1;PCTL.I = 0x0010;}bset #18,x:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!