piclist 1999\11\04\153023a >
Thread: Converting from 16C57 to 16C63A
www.piclist.com/techref/microchip/devices.htm?key=16C
flavicon
face BY : William Bross email (remove spam text)



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

Hi Peter,

replace :
       tris    PORT_A
with:
       ; 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

Bill

<3.0.6.32.19991104153003.007ca650@mail.cinternet.net>

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...