<< Previous | Next >>

useClockDivider3000

void useClockDivider3000( int setting );

Description

Sets the expanded clock divider options for the Rabbit 3000 processor. Target communications will be lost after changing this setting because of the baud rate change. This function also enables the periodic interrupt in case it was disabled by a call to user32kHzOsc().

The peripheral clock is also affected by this function. If you want to divide the main processor clock and not the peripheral clock, you may use the function useClockDivider() to divide the main processor clock by 8. To divide the main processor clock by any of the other allowable values (2, 4, or 6) means using useClockDivider3000() and thus dividing the peripheral clock as well.

This function is not task reentrant.

Parameter

setting
Divider setting. The following are valid:

  • CLKDIV_2 - divide main processor clock by two

  • CLKDIV_4 - divide main processor clock by four

  • CLKDIV_6 - divide main processor clock by six

  • CLKDIV_8 - divide main processor clock by eight

Return Value

None.

Library

SYS.LIB

See Also

useClockDivider, useMainOsc, use32kHzOsc, set32kHzDivider


Dynamic C Functions << Previous | Next >> rabbit.com