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

16lf88 trouble getting started

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



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Feb 23, 2007 4:00 pm     Reply with quote

I tested the following program at both +5v and +3.0v and it works.
It blinks an LED on pin B0. It was compiled with vs. 3.249.
If it doesn't work for you, then I suspect you may be missing the
pull-up resistor on the MCLR pin or some other hardware problem.
Code:

#include <16F88.H>
#fuses INTRC_IO, NOWDT, NOBROWNOUT, PUT, NOLVP
#use delay(clock=8000000)

void main()
{

// Blink an LED.
while(1)
  {
   output_high(PIN_B0); 
   delay_ms(500);
   output_low(PIN_B0);
   delay_ms(500);
  }

}
jweller



Joined: 16 Oct 2006
Posts: 7

View user's profile Send private message

PostPosted: Sun Feb 25, 2007 11:09 am     Reply with quote

PCM programmer wrote:
I suspect you may be missing the
pull-up resistor on the MCLR pin


I'm not at work so I can't verify it right now, but I know your suspicions are dead on the money. I forgot the pullup.


this is what happens when they let software guys work with hardware Embarassed
jweller



Joined: 16 Oct 2006
Posts: 7

View user's profile Send private message

PostPosted: Mon Feb 26, 2007 12:04 pm     Reply with quote

Ok I added the pullup and my code still did not work. I am however able to compile and run your example code. Now that I've got something working, I can move forward. Thanks
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