Hi Matt,

On 02/06/2016 05:44 AM, Matthew Schinkel wrote:

I'll need help getting 16f1718 and alike to work, as I don't have one. Hopefully this will solve our servo lib issues.

I've tested the ticker lib and modified your sample for 18f2620 and 16f1718.

1a. With the 18f2620 and 16 MHz resonator I see a 1 KHz wave (981 Hz)
1b. With internal oscillator at 8 MHz too (971 Hz)
1c. Same with timer1 and 16 bits
1d. With TMR0 in 8-bits mode I get 3.58 KHz (8 MHz INTOSC)


2. The 16f1718 (all midrange PICs?) have no T0CON_T08BIT and T0CON_TRM0ON
So you must add "if defined(...)" for these. To be able to use this library I have
   added these in a local copy.
2a. TMR0 is 8 bits and gives a 3.66 KHz (internal oscillator 8 MHz)
      or 7.14 (16 MHz resonator)
2b. With TMR1 I get 1 KHz
Note: I did not touch the prescaler setting.

I looks like this library is in an experimental state. In my opinion it is not (yet) very user friendly. I would like to see a higher level of functionality. Depending of for which purposes you see this library used some of the code in your sample could go into the library. And the user should not have to specify things like prescaler and the width of the timer.

Regards, Rob.

--
*Rob H*amerling - http://www.robh.nl

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/jallib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to