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

problem with oscillator

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



Joined: 31 Aug 2014
Posts: 6

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

problem with oscillator
PostPosted: Wed Nov 05, 2014 4:38 pm     Reply with quote

hi
When i make a new project and run it with proteus it shows that one of the oscillator pin as gray. I guess it means float and the circuit doesn't work.

I don't know if the problem is from the ccs code or from proteus, i have previous projects and its work fine.

here is the ccs code
Code:

#include <16f876a.h>
#use delay(clock=10000000)
#fuses HS,NOWDT,NOLVP,NOPROTECT

#include "nokia.c"

//************************************************
//MAIN
//************************************************

void main()
{
   setup_adc_ports(NO_ANALOGS);
   setup_adc(ADC_OFF);
   setup_spi(SPI_SS_DISABLED);
   setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
   setup_timer_1(T1_DISABLED);
   setup_timer_2(T2_DISABLED,0,1);

   //_______start main menu_______

   set_tris_b(0x07);
   output_b(0x00);

   nokia_init();

   while(1)
   {
      nokia_gotoxy(1,1);
      printf(nokia_printchar," Praying Time ");
      nokia_gotoxy(1,2);
      printf(nokia_printchar,"    system  ");
      delay_ms(2000);
   }

   
} //end main

I want to add a picture for the simulated circuit showing the gray pin but i don't know how.
temtronic



Joined: 01 Jul 2010
Posts: 9220
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Nov 05, 2014 5:08 pm     Reply with quote

Proteus is well known to be 'busted'. Full of errors,flaws, and faulty DRCs.
Though I may sound like a broken record...get a real PIC, a breadboard and wire up real components and test your code that way.

Since you say 'other projects worked', go back to the last known good project, make ONE change, recompile,retest and see what happens..

You couldn't pay me to begin to try to fix Proteus, life is way too short !

Jay
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Wed Nov 05, 2014 5:08 pm     Reply with quote

this post may be illuminating.

http://www.ccsinfo.com/forum/viewtopic.php?t=47549
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Nov 05, 2014 5:30 pm     Reply with quote

Regarding the image posting question, go here:
http://postimage.org/
Upload your image. Select family safe. Then click the first button for
Hotlink to Forum to get a link to the image.
Then go to the CCS forum and type Ctrl-V to paste the link into a post.

If that website doesn't work in your country, then use Google to find
another free image hosting site for forums.
Ttelmah



Joined: 11 Mar 2010
Posts: 19492

View user's profile Send private message

PostPosted: Thu Nov 06, 2014 1:25 am     Reply with quote

Also, the pin being grey, wouldn't stop it working.

Proteus _ignores_ the oscillator, and just accepts what you tell it in it's setup. So long as you tell it the chipp is being clocked at 10Mhz, it'll accept this even if the clock couldn't work. This is one of it's problems.

You don't tell us what pins you are trying to use to talk to the Nokia display, but I'd guess that possibly RC3, RC4, or RC5 are involved?. If so, there is a line wrong in your code, that would stop these from working....
khalid ezz



Joined: 31 Aug 2014
Posts: 6

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

PostPosted: Mon Nov 10, 2014 10:01 am     Reply with quote

i am sorry about being late

this is the image link:
http://s21.postimg.org/g9wit6ucn/crystal_problem.jpg

and the pins i used to connect nokia lcd
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Nov 10, 2014 12:25 pm     Reply with quote

That's a ISIS issue. We can't solve that. You need to post your question
on the ISIS forum and ask them about it:
http://support.labcenter.co.uk/forums/viewforum.php?f=8
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