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

input_b error, this dont read 0x00 from all port bits

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







input_b error, this dont read 0x00 from all port bits
PostPosted: Wed Jan 12, 2005 8:55 pm     Reply with quote

hi..

i need read from port b or portd the value of byte ( reading parallel port ) and also send it from rs232 tx and rx on portc

using input_d() i can read value of byte, but if this value is 0x00 input_d() dont return value.

i need your help to solve this..


#int_ext
void ext_isr() {
Uart_ByteSend( input_d() );
}

function uart_bytesend only send it to i/o buffer register

rs-232 is work fine
if i send Uart_ByteSend( 0x00 ) the byte is send correct.
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

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

PostPosted: Wed Jan 12, 2005 9:45 pm     Reply with quote

Quote:
but if this value is 0x00 input_d() dont return value

Then what does it return? Are you saying that it just hangs? I think not.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Jan 13, 2005 12:13 am     Reply with quote

You need to post the PIC that you're using and the compiler version.
Then we can look at the generated code.
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