Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Timer questions (http://www.chiefdelphi.com/forums/showthread.php?t=43856)

Rick TYler 12-02-2006 17:47

Timer questions
 
I've been asked to find this out by our programmers. Is Timer1 setup with an internal oscillator? What's the frequency? Is an external oscillator necessary or legal?

Can you take over Timer0 if your aren't using PWMs 13 through 16? It's in last year's documentation, but we didn't see it in this year's.

Thanks in advance.

Eldarion 12-02-2006 18:09

Re: Timer questions
 
Quote:

Originally Posted by Rick TYler
I've been asked to find this out by our programmers. Is Timer1 setup with an internal oscillator? What's the frequency? Is an external oscillator necessary or legal?

Can you take over Timer0 if your aren't using PWMs 13 through 16? It's in last year's documentation, but we didn't see it in this year's.

Thanks in advance.

All the timers are based off of the microcontroller's crystal clock, which runs at 10MHz.

I didn't even know there was a Timer 0! :o

Mark McLeod 12-02-2006 18:21

Re: Timer questions
 
Quote:

Originally Posted by Rick TYler
I've been asked to find this out by our programmers. Is Timer1 setup with an internal oscillator? What's the frequency? Is an external oscillator necessary or legal?

Can you take over Timer0 if your aren't using PWMs 13 through 16? It's in last year's documentation, but we didn't see it in this year's.

Thanks in advance.

On the 8722 we have timers 0-3 available with the 10MHz internal (an external oscillator is not needed).
Using Timer0 holds for this year as well. You need to use FRC_alltimers.lib rather than FRC_library.lib in your project just like last year.

6600gt 12-02-2006 19:24

Re: Timer questions
 
There are actually 0-4 timers and 0 is not being used for the ccp modules. Kevin Watson's ADC code uses timer 2.
And toword the end of this thread(http://www.chiefdelphi.com/forums/sh...ad.php?t=43358) I have explained that the processor runs at 10MHz hence the 10 MIPS but the external oscillator runs at 40 MHz.(if you want to understand the hardware little bit better)

You can use all the timers using Kevin Watson's interrupts code.


All times are GMT -5. The time now is 01:34.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi