|
发表于 2012-3-26 14:31:41
|
显示全部楼层
Options may be any of the following separated by commas:
clock=speed speed is a constant 1-100000000 (1 hz to 100 mhz).
This number can contains commas. This number also supports the following denominations: M, MHZ, K, KHZ. This specified the clock the CPU runs at. Depending on the PIC this is 2 or 4 times the instruction rate. This directive is not needed if the following type=speed is used and there is no frequency multiplication or division.
type=speed type defines what kind of clock you are using, and the following values are valid: oscillator, osc (same as oscillator), crystal, xtal (same as crystal), internal, int (same as internal) or rc. The compiler will automatically set the oscillator configuration bits based upon your defined type. If you specified internal, the compiler will also automatically set the internal oscillator to the defined speed. Configuration fuses are modified when this optio is used. Speed is the input frequency.
restart_wdt will restart the watchdog timer on every delay_us() and delay_ms() use.
AUX: type=speed Some chips have a second oscillator used by specific periphrials and when this is the case this option sets up that oscillator.
|
|