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

what is tri_state register on 12f675

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



Joined: 24 Jun 2004
Posts: 285

View user's profile Send private message

what is tri_state register on 12f675
PostPosted: Tue Aug 03, 2004 6:28 am     Reply with quote

When I am using 12f675 for communication, I could not receive any data, so I checked the ccs reference manual, ir says that
Quote:

Make sure the tri_srate registers are correct. the mode (standard, fast,fixed) used will be whatever the mode is when the #use RS232 is encountered. staying with the default STANDART mode is safest


I could not understand this paragragh at all, where is the tri_state register, how to set the mode as standard, fast, or fixed?
young



Joined: 24 Jun 2004
Posts: 285

View user's profile Send private message

PostPosted: Tue Aug 03, 2004 6:55 am     Reply with quote

Friends, The easy2 board is a terrible board so far as I have found. right now I found out the problem why I could not get communication, because the board mark wrong pin number, I connected to wrong pins. again, again, and again!
Mark



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

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

PostPosted: Tue Aug 03, 2004 7:02 am     Reply with quote

tri_state = TRIS register
young



Joined: 24 Jun 2004
Posts: 285

View user's profile Send private message

PostPosted: Tue Aug 03, 2004 7:14 am     Reply with quote

thank you, so how to set it as standard, faster and fixed
is
#uses standard_IO
#uses fast_IO
#uses Fixed_IO
right?
Ttelmah
Guest







PostPosted: Tue Aug 03, 2004 7:35 am     Reply with quote

young wrote:
thank you, so how to set it as standard, faster and fixed
is
#uses standard_IO
#uses fast_IO
#uses Fixed_IO
right?


#use, not 'uses'.

This does not control the TRIS directly, but changes whether the processor will automatically control it for you. The TRIS register, is accessed with the TRIS_A instruction.

Best Wishes
Mark



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

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

PostPosted: Tue Aug 03, 2004 7:49 am     Reply with quote

Quote:

This does not control the TRIS directly, but changes whether the processor will automatically control it for you. The TRIS register, is accessed with the TRIS_A instruction.


I believe RJ meant to say this.

This does not control the TRIS directly, but changes whether the compiler will automatically control it for you. The TRIS register, is accessed with the TRIS_A instruction.
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