CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Can CCS development board

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Ospite
Guest







Can CCS development board
PostPosted: Wed Apr 11, 2007 3:55 am     Reply with quote

Someone can tell me clock speed 2510 and pic clock speed
because i want make by myself this board for simple use.
I don't have information about can speed that i can have if
I use example in compiler...
Thanks in advance
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Apr 11, 2007 11:25 am     Reply with quote

Go to the web page for that product and click on the picture of the board
to enlarge it.
http://www.ccsinfo.com/product_info.php?products_id=CANbuspb
You can then read the frequency of those two crystals -- it's etched on
the top of the crystals.
Ospite
Guest







Crystal frequency
PostPosted: Thu Apr 12, 2007 3:55 am     Reply with quote

Thanks,
My interesting is node B and i see 20Mhz Crystal that i thinks is
for 2510 /2515 but Crystal for PIC ?
It's the same clock or is in bottom layer?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Apr 12, 2007 9:03 am     Reply with quote

You can find the PIC frequency by looking at the CCS example file for
node B. Here's the location of that file:
Quote:
c:\program files\picc\examples\ex_can_ccs_b.c


In that file it says the PIC's clock frequency is 2.5 MHz.
Quote:

#include <16F876.h>
#fuses HS,NOPROTECT,NOLVP,NOWDT
#use delay(clock=2500000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)


That's not a normal frequency, so where do they get it ?
The answer is, from the CLKOUT pin of the MCP2510.
If you look in the MCP2510 data sheet in the Oscillator section, they say
that the divisor for the CLKOUT pin defaults to 8, upon power-on reset.
20 MHz / 8 = 2.5 MHz
That explains where the 2.5 MHz for the PIC comes from.
Ospite
Guest







Crystal frequency
PostPosted: Thu Apr 12, 2007 10:21 am     Reply with quote

Many Many thanks,
after you explain all is clear and now i can made my board.....
It's a pleasure have a "friend" like You.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group