Go to Post Each match is a learning experiance - the only thing you can do is get better. - SuperJake [more]
Home
Go Back   Chief Delphi > Technical > Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 29-01-2008, 11:08
TechnocratiK TechnocratiK is offline
Registered User
AKA: Patrick Diez
None #0296 (Northern Knights)
Team Role: Programmer
 
Join Date: Sep 2003
Location: Montreal, Canada
Posts: 22
TechnocratiK is an unknown quantity at this point
PIC18F8722 TIMER2 Frequency?

So I was reading over Kevin Watson's gyro code (found here) and his code seems to suggest that TIMER2 has a clock frequency of 10 MHz. Is this external to the PIC on the IFI board? From the 18F8722 datasheet, it seems that the internal clock is at 8 MHz, not 10 MHz. What is the source for the TIMER2 oscillator, and what is its frequency?
__________________
TechnocratiK out.
  #2   Spotlight this post!  
Unread 29-01-2008, 11:22
Los Frijoles's Avatar
Los Frijoles Los Frijoles is offline
Stormin' Mormon
AKA: Kevin Cuzner
FRC #2062 (C.O.R.E.)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Waukesha, WI
Posts: 27
Los Frijoles has a spectacular aura aboutLos Frijoles has a spectacular aura about
Send a message via AIM to Los Frijoles
Re: PIC18F8722 TIMER2 Frequency?

The PIC in the controller is running at 40mhz and since it takes 4 clock ticks to execute 1 instruction cycle, it runs at 10 mips (million instructions per second). With a no prescaler, Timer2 runs at 10mhz. However, if a prescaler is set (recommended), it can run alot slower if need be. Look at the datasheet on Microchip.com.

The PIC in the robot runs off a crystal and the timer2 source is usually the instruction cycle clock.
__________________
Community Of Robotic Engineers 2062





Blender totally pwns 3DS Max...

My life is here and here.

Cuznersoft Hardware and Software Development
  #3   Spotlight this post!  
Unread 29-01-2008, 11:26
mluckham's Avatar
mluckham mluckham is offline
Registered User
FRC #0758 (Sky Robotics)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Ontario, Canada
Posts: 116
mluckham will become famous soon enoughmluckham will become famous soon enough
Re: PIC18F8722 TIMER2 Frequency?

It is 10 MHz, I know because I developed some code programming the timers.

Here is the datasheet
http://www.ifirobotics.com/rc.shtml#Specifications
  #4   Spotlight this post!  
Unread 29-01-2008, 12:54
TechnocratiK TechnocratiK is offline
Registered User
AKA: Patrick Diez
None #0296 (Northern Knights)
Team Role: Programmer
 
Join Date: Sep 2003
Location: Montreal, Canada
Posts: 22
TechnocratiK is an unknown quantity at this point
Re: PIC18F8722 TIMER2 Frequency?

Awesome. Thanks a lot.
__________________
TechnocratiK out.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PIC18F8722 A1 Errata Sheet Released kmcclary Programming 14 20-10-2006 22:18
PWM Frequency Guy_E VEX 14 05-10-2006 23:20
PIC18F8722 Errata & High Priority Interrupts Joe Ross Programming 7 05-03-2006 00:14
PIC18F8722 - New 2006 RC MPU, 4x more program memory! kmcclary Programming 16 08-01-2006 14:22


All times are GMT -5. The time now is 05:55.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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