TRISA2 clear is missing
is missing
----- Original Message -----
From: "Nick Kennedy" <spam_OUTkennedysTakeThisOuT
cox-internet.com>
To: "'Microcontroller discussion list - Public.'" <.....piclistKILLspam
@spam@mit.edu>
Sent: Tuesday, March 29, 2005 8:46 PM
Subject: [PIC] Configuring RA2 for digital I/O on 16F88
{Quote hidden}> Hello -
>
> I'm a hobbyist and relative newcomer to the PIC. In my current 16F88
> program, I'm trying to use PORTA pin RA2 as a digital output. Maybe a
> bad choice, as this pin is multiplexed several ways.
>
> I've cleared the ANSEL bits to zero, to claim the pin from the ADC. I
> believe the comparator functions have default power up configurations
> that should be acceptable. I've set (er .. cleared) the appropriate
> TRISA bits to zeros to make the pins outputs. But when I use the bsf
> PORTA, 2 instruction, RA2 does not change state. This is observed both
> in hardware and in the MPLAB debugger looking at PORTA.
>
> What am I failing to configure?
>
> Thanks,
>
> Nick
> in Arkansas
>
> --