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

interrupt 5us with a 16f877

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



Joined: 05 Sep 2005
Posts: 1

View user's profile Send private message MSN Messenger

interrupt 5us with a 16f877
PostPosted: Mon Sep 05, 2005 3:56 am     Reply with quote

I want to create a interrupt timer 1 -5us

could you help me ?
Ttelmah
Guest







PostPosted: Mon Sep 05, 2005 4:25 am     Reply with quote

Forget it.
The chip is just not capable of this sort of speed. You might just be able to 'bodge' something, using assembler, but you are not going to be able to do anything else (so there is no point in using an interrupt). The fastest version of this chip, clocks at 20MHz. This give 5 instructions in a 1uSec period, or 25 in a 5uSec period. The typical interrupt handler will involve 50 instructions in saving registers and restoring them, plus how ever many are needed for the code itself.
If you just need to 'time' something, look at the CCP modules, which are designed to do exactly this in hardware.

Best Wishes
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