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 output_b command

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



Joined: 11 Feb 2005
Posts: 24

View user's profile Send private message

Problem with output_b command
PostPosted: Fri Jun 24, 2005 10:34 pm     Reply with quote

Hi,
I am a newbie to CCS C compiler. I want to try a led blink program. I have a problem with output_b command. The problem is I can get blinking led except the pin 3 of portb. The version of IDE is 3.6 and PCM is 3.050. Question

Thanks in advance,
ak


I used pic16f877 and the source code as follows:

#include <16F877.H>

#fuses XT,NOWDT,NOPROTECT

#use DELAY(clock=4000000)

#use fast_io(B)

void main()
{

set_tris_b(0x00);

OUTPUT_B(0x00); // Set all pins low

while(1)
{
OUTPUT_B(0xff); // on the I/O port pin
delay_ms(500);
OUTPUT_B(0x00); // on the I/O port pin
delay_ms(500);
}
}
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jun 24, 2005 11:25 pm     Reply with quote

Go to the CCS FAQ page. Look in the first section, at the question on
"Why isn't Port B, pin 3, working ?"
http://www.ccsinfo.com/faq/
akokyaw



Joined: 11 Feb 2005
Posts: 24

View user's profile Send private message

output_b problem
PostPosted: Sat Jun 25, 2005 6:20 am     Reply with quote

Thanks man. It helps a lot. Idea
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