piclist 2007\03\07\053618a >
Thread: MPLAB-question regarding changing register values
www.piclist.com/techref/microchip/languages.htm?key=mplab
face picon face BY : Alan B. Pearce email (remove spam text)



>> Hi Rik, maybe you need to configure it as Digital (as opposed to analog,
>> which is the default.)
>
>Could you hint me of how to do this? I'm not yet very proficient in using
>MPLAB.
>
>To be on the safe side, I checked the datasheet for the chip in
>question and turned off the comparator mode.

Well, that should have done it, but you don't say what chip you are using,
or precisely what instructions you used to do this.

>But something must be wrong, because these two
>
>        movlw   b'11111000'
>        movwf   TRISA
>
>Yields "00111000" in TRISA.

How many bits are there in PORT A? That sounds like there are only 6 bits
(RA0 to RA5) and so the top two bits are not used. Again, you don't say what
chip you are using.

<01af01c760a4$6d9d8010$1979f682@space.rl.ac.uk> 7bit

See also: www.piclist.com/techref/microchip/languages.htm?key=mplab
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) MPLAB-question regarding changing register values

month overview.

new search...