Foppie
Joined: 16 Sep 2005 Posts: 138 Location: The Netherlands
|
|
Posted: Tue Nov 01, 2005 6:34 am |
|
|
Quote: | Syntax: setup_timer_2 (mode, period, postscale)
Parameters:
mode may be one of: T2_DISABLED, T2_DIV_BY_1, T2_DIV_BY_4, T2_DIV_BY_16
period is a int 0-255 that determines when the clock value is reset,
postscale is a number 1-16 that determines how many timer resets before an interrupt: (1 means one reset, 2 means 2, and so on). |
so there needs to be 3 parameters, not 1. Hopefully this helps |
|