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 CCS Technical Support

Search found 8 matches
CCS Forum Index
Author Message
  Topic: 18F2680 H4 External Clock Help
gling8313

Replies: 13
Views: 16608

PostForum: General CCS C Discussion   Posted: Mon Jul 23, 2012 2:48 pm   Subject: 18F2680 H4 External Clock Help
One quick way is to use the Configure Menu in MPLAB (after you compile)
and select Configuration Bits, and change it from "HS" to "HS oscillator,
PLL enabled". Then program the ...
  Topic: 18F2680 H4 External Clock Help
gling8313

Replies: 13
Views: 16608

PostForum: General CCS C Discussion   Posted: Mon Jul 23, 2012 11:55 am   Subject: 18F2680 H4 External Clock Help
Also, your compiler version is not compiling the H4 fuse correctly.
It's actually compiling it for the HS fuse. Because of that, your PIC
will run at 1/4 of the desired speed. It's a bug in your v ...
  Topic: 18F2680 H4 External Clock Help
gling8313

Replies: 13
Views: 16608

PostForum: General CCS C Discussion   Posted: Thu Jul 19, 2012 12:03 pm   Subject: 18F2680 H4 External Clock Help
Yeah I have the "Configuration Bits set in code" box ticked.
I will double check that I am indeed compiling for run and not debug.
I am running this on a custom homemade board.

Tha ...
  Topic: 18F2680 H4 External Clock Help
gling8313

Replies: 13
Views: 16608

PostForum: General CCS C Discussion   Posted: Wed Jul 18, 2012 4:54 pm   Subject: 18F2680 H4 External Clock Help
Oh my bad! Here is what I compiled:

#include"18f2680.h"
#include <can-18xxx8.c>

#fuses H4, NOLVP, NOMCLR, BROWNOUT, BORV43, NOWDT,NOPBADEN, PROTECT, CPB, WRTC, EBTRB, EBTR, C ...
  Topic: 18F2680 H4 External Clock Help
gling8313

Replies: 13
Views: 16608

PostForum: General CCS C Discussion   Posted: Wed Jul 18, 2012 3:17 pm   Subject: 18F2680 H4 External Clock Help
The compiler version is 3.224

And here is an LED loop I wrote to debug some code in another project. So hopefully you meant something like this:

#define LED_Debug PIN_A5


while(1& ...
  Topic: 18F2680 H4 External Clock Help
gling8313

Replies: 13
Views: 16608

PostForum: General CCS C Discussion   Posted: Wed Jul 18, 2012 3:02 pm   Subject: 18F2680 H4 External Clock Help
Update: I tried the NOFCMEN fuse anyways and disconnected the clock circuit. My board, however, still ran. :confused:
  Topic: 18F2680 H4 External Clock Help
gling8313

Replies: 13
Views: 16608

PostForum: General CCS C Discussion   Posted: Wed Jul 18, 2012 2:51 pm   Subject: 18F2680 H4 External Clock Help
Thanks for your reply! I double checked my code and the reason I didn't use NOFCMEN is because when I check the configuration bits in MPLAB, the fail-safe is disabled by default.

Does the chi ...
  Topic: 18F2680 H4 External Clock Help
gling8313

Replies: 13
Views: 16608

PostForum: General CCS C Discussion   Posted: Wed Jul 18, 2012 12:43 pm   Subject: 18F2680 H4 External Clock Help
I am currently developing using a PIC18F2680 and I wanted to increase the clock speed via an external crystal. I fabricated the external crystal circuit according to the datasheet with (2)15pf capaci ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group