Hi Sunish,

On 2013/04/20 04:11, Sunish Issac wrote:
Not sure whether its a compiler or library issue, 3pins a1,a2,a3 not
becoming input in spite of enable_digital_io in the following code.

I'm afraid it is your own fault. Just about 3 weeks ago it was also mentioned in Jallist. Apparently people (even you and me!) forget that 'INPUT' and 'OUTPUT' are bit constants.


PORTA_low_direction = input ; doesn't seem to initialize the port as i/p

Should be:  PORTA_low_direction = ALL_INPUT
A bit constant '1' expands to a byte 0b0000_0001 (or a nibble 0b0001)

PORTB_direction = output

Should be: PORTB_direction = ALL_OUTPUT
Here you were lucky: a bit '0' expands to a byte 0b0000_0000

Regards, Rob.

--
R. Hamerling, Netherlands --- http://www.robh.nl

--
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/jallib?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to