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

pic16f767 running very slow.

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







pic16f767 running very slow.
PostPosted: Wed Sep 01, 2004 10:31 am     Reply with quote

Here is the setup. I wrote some code for a PIC16f876 now I'm trying to run it on a PIC16f767 (nanowatt). When I run the that code a 767, it runs super slow. I can see that its running the code by the LEDs turning on/off, but its just super slow. I can run the same code on the 876 and it works fine. The only thing I have changed in the code is the header file. I am also using the same test board for each of the chips.

Anyone have any ideas?

Nick
valemike
Guest







PostPosted: Thu Sep 02, 2004 6:53 am     Reply with quote

Since no one has answered this yet, I guess not many people use the 16F767 and thus can't share any experiences with you.

I took a glance at description of the 16F767 and noticed that it does have internal oscillators.

Can it be that you are really running off your internal oscillator? You can find out by pulling out your crystal, and see if the code still runs. Or you can simply change the delay (clock=4000000) directive and see if your code then runs faster.

However, what i'm saying doesn't really make sense since you say that you are using the same code, and I assume that you didn't change your #fuses statement where you select between HS, XT, INTRC, INTOSC, etc.

If you are using Microchip's MPLAB, then take a look at the pulldown menu to see what configuration bits are really being set.

I'd look at these things first before I read the manual. Good luck.
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