piclist 1999\11\04\153023a >
Thread: Converting from 16C57 to 16C63A
face BY : William Bross email (remove spam text)

>The remaining warnings are:
TRIS PORT_A   Warning: Use of this instruction is not recommended (so how to
replace ?)
Message: Using default destination of 1 (file)

Hi Peter,

replace :
       tris    PORT_A
       ; set page bit
       ; move literal or register value for PORT_A into W
       ; move W into TRIS_A    register
       ; clear page bit

As far as the default destination value, it is just an annoying reminder of
where your result ends up.  A default dest of '0' places the result in the
W reg and a default dest of '1' places the result back into the file register.

You can make these warnings invisible by adding a line at the beginning of
your program:
               errorlevel XXX

where XXX is the error # you wish to silence.

Hope this helps



See also: www.piclist.com/techref/microchip/devices.htm?key=16C
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Converting from 16C57 to 16C63A

month overview.

new search...