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

No speed change between EC_IO and H4

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



Joined: 27 Nov 2005
Posts: 2

View user's profile Send private message

No speed change between EC_IO and H4
PostPosted: Wed Aug 23, 2006 9:14 pm     Reply with quote

Hello,
In the code below I'm toggling pin D2 and measuring with a scope.
When I swap EC_IO for H4 I don't see a speed difference on D2.
It should be 4x quicker no? The config bits are changing in Mplab.

Thanks, Pete

PCH 3.249
18f452
10mhz TTL osc to osc1
Using ICD2 and Mplab

Code:


#include <18F452.h>
#fuses H4,NOWDT,NOPROTECT,NOLVP,PUT

void main(){

for(;;){
          output_high(pin_d2);
          output_low(pin_d2);
         }

}
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Aug 23, 2006 9:22 pm     Reply with quote

http://www.ccsinfo.com/forum/viewtopic.php?t=20827
vwpete



Joined: 27 Nov 2005
Posts: 2

View user's profile Send private message

PostPosted: Wed Aug 23, 2006 9:54 pm     Reply with quote

Doh! I should have searched first. The reset was it.
Thanks for the quick help. I can go to bed now Smile

Pete
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