View previous topic :: View next topic |
Author |
Message |
young
Joined: 24 Jun 2004 Posts: 285
|
what is tri_state register on 12f675 |
Posted: Tue Aug 03, 2004 6:28 am |
|
|
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
|
|
Posted: Tue Aug 03, 2004 6:55 am |
|
|
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
|
|
Posted: Tue Aug 03, 2004 7:02 am |
|
|
tri_state = TRIS register |
|
|
young
Joined: 24 Jun 2004 Posts: 285
|
|
Posted: Tue Aug 03, 2004 7:14 am |
|
|
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
|
|
Posted: Tue Aug 03, 2004 7:35 am |
|
|
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
|
|
Posted: Tue Aug 03, 2004 7:49 am |
|
|
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. |
|
|
|