 |
PRG_setRate |
Function (Macro) |
Sets the speed at which the programmable rate generator is incremented.
The programmable rate generator's speed can be controlled by this function.
Valid values for rate are as follows:
Value |
Speed |
0 |
OSC2/2^5 (highest rate) |
1 |
OSC2/2^9 (default) |
2 |
OSC2/2^12 |
3 |
OSC2/2^18 (lowest rate) |
Note: Before exiting your program, it is good practice to restore the
programmable rate generator to its previous value (determined by
PRG_getRate) so that the AMS does not
misbehave.
See also: PRG_getRate