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

timerO interrupt problem

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



Joined: 27 May 2010
Posts: 6

View user's profile Send private message Send e-mail

timerO interrupt problem
PostPosted: Wed Jun 30, 2010 8:23 am     Reply with quote

hi everybody

I have a button and led circuit. But it didn't work properly.
I set up the circuit on the breadboard but when I push the button the led didn't work. When I take off the button's + cable, led works. What it must be? It's interesting my circuit works in Proteus with no problem.

Please help my problem I am new in pics and CCS.

Code:
http://rapidshare.com/files/404059201/Timer0_Kesmesi.rar.html
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Jun 30, 2010 11:46 am     Reply with quote

Quote:
It's interesting my circuit works in Proteus with no problem.

That's because Proteus doesn't simulate everything. It "allows" mistakes
to be made.

Download the 16F84A data sheet:
http://ww1.microchip.com/downloads/en/devicedoc/35007b.pdf
Look at this table:
Quote:

TABLE 6-2: CAPACITOR SELECTION
FOR CRYSTAL OSCILLATOR

It shows the oscillator fuse setting for some typical crystal frequencies.
Look at your crystal frequency, and find the correct fuse in the table.
Then edit your #fuses statement and fix the problem.
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