please dont rip this site

PIC Microcontroller TRIS Instruction

You set the TRIS bits for 0's for the port pins you want to write to; i.e. setting TrisB to '11110000'B would leave RB7..RB4 as inputs but make RB3..RB0 outputs. The TRIS bits are 'usually' write-only; you usually know how you last left them set.

Microchip does not intend to support the TRIS instruction in future products.

In place of a TRIS command, use a MOVWF TRIS(A,B,etc) assuming that W is loaded with the desired mask. You also need to switch to bank 1 before doing the movwf command, where the tris addresses then match the port addresses. That's why people still like to use the tris command - no bank switch is required. If the tris command exists for a chip, it will always exist for that chip - Microchip cautions against using it in the case of using the same software on a future product that will not have the tris command. In the my16F87x data sheet, they emphatically say DONOT USE the tris instruction. In fact, on the '877, the TRIS command works only on ports a, b, c not d, e

Unused pins@, Input/Output@

Questions:

Comments:


file: /Techref/microchip/tris.htm, 3KB, , updated: 2012/9/24 16:28, local time: 2024/12/26 18:02,
TOP NEW HELP FIND: 
3.140.188.195:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://ecomorder.com/techref/microchip/tris.htm"> TRIS</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to ecomorder.com!

 

Welcome to ecomorder.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .