View previous topic :: View next topic |
Author |
Message |
Ospite Guest
|
Can CCS development board |
Posted: Wed Apr 11, 2007 3:55 am |
|
|
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
|
|
|
Ospite Guest
|
Crystal frequency |
Posted: Thu Apr 12, 2007 3:55 am |
|
|
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
|
|
Posted: Thu Apr 12, 2007 9:03 am |
|
|
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 |
Posted: Thu Apr 12, 2007 10:21 am |
|
|
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. |
|
|
|