On Tue, Oct 25, 2011 at 1:06 PM, Naga Pinjala wrote:
> No, I meant for turning off that output latch.
>
Sorry, I'm lost.
What are you trying to do?
___
psas-avionics mailing list
psas-avionics@lists.psas.pdx.edu
http://lists.psas.pdx.edu/mailman/listi
No, I meant for turning off that output latch.
From: I
To: Nagasrinivas Pinjala
Cc: Andrew Greenberg ; psas-avionics
Sent: Tuesday, October 25, 2011 12:42 PM
Subject: Re: [psas-avionics] Question about I/O register
On Tue, Oct 25, 2011 at 9:37 AM, Nagasr
On Tue, Oct 25, 2011 at 9:37 AM, Nagasrinivas Pinjala wrote:
> Dan's answer is bit cryptic and needs more explanation. I referred the
> manual but it only speaks about how setting the bits in GPIO registers sets
> or clears the corresponding pins.
>
> >>" The PIN register, after your pair of opera
Dan's answer is bit cryptic and needs more explanation. I referred the manual
but it only speaks about how setting the bits in GPIO registers sets or clears
the corresponding pins.
>>" The PIN register, after your pair of operations, will have bits 25 and 18
>>(and their corresponding output l
I don't think that's correct. Bit 25 *will* be cleared, but the |= won't
help. The 'SET' registers will only set the GPIO bits. I think they are
always read back as '0', or at least they revert to '0' as soon as they have
modified the output latch. Read the user manual for read values on GPIO SET
a
> I have a question about the GPIO registers. Let's say I do the
> following assignment:
>
> IO0SET = 1 << 25; IO0SET = 1 << 18;
>
> Will the bit in position 25 will be set or cleared ?
Cleared. On the first line, you're writing in (1 << 25) which is
33554432 (in decimal). On the second line, yo
Hi,
I have a question about the GPIO registers. Let's say I do the following
assignment:
IO0SET = 1 << 25;
IO0SET = 1 << 18;
Will the bit in position 25 will be set or cleared ?
Thanks,
Naga.
___
psas-avionics mailing list
psas-avionics@lists.psas.