/*
* __delay32() provides a 32-bit delay routine which will delay for the number
* of cycles denoted by its argument. The minimum delay is 12 cycles
* including call and return statements. With this function only the time
* required for argument transmission is not accounted for. Requests for
* less than 12 cycles of delay will cause an 12 cycle delay.
*/
extern void __delay32(unsigned long cycles);
/*
* __delay_ms() and __delay_us() are defined as macros. They depend
* on a user-supplied definition of FCY. If FCY is defined, the argument
* is converted and passed to __delay32(). Otherwise, the functions
* are declared external.
*
* For example, to declare FCY for a 10 MHz instruction rate:
*
* #define FCY 10000000UL
*/
System Clockでは,CPDIVレジスタの設定で,1/1分周とし,その後1/3されて,
PLL Output for System Clockとしています。
つまり,システムクロックは,32MHzとなることを期待しています。
しかし,実際にタイマーでキャプチャしてみると,16MHzとなっています。
割込み無しで,__delay_ms(xxx);の動作を試すと,やはり16MHzで動作して
いるようです。