timer1 in dspic

Discussion in 'Embedded Systems and Microcontrollers' started by saman1969, Nov 13, 2012.

  1. saman1969

    Thread Starter New Member

    Nov 2, 2012
    15
    0
    I can not set timer 1 of dspic(33f256GP710) to one micro second. because in its related register(T1con) for setting timer there are 4 predetermined choice of timing (bit4,bit5:00-01-10-11) that each of them results in a duration of time for example "11" result about 1 second intervals and "00" result 2ms . I can not set the intervals of timer for example to 1.5 micro second. Is it not possible with timer1 or , is the problem with setting that I have done?
     
  2. tshuck

    Well-Known Member

    Oct 18, 2012
    3,531
    675
    You will need to preload the timer after each interrupt...

    This may help, though I don't know if it works for dsPICs...
     
Loading...