Re: [psas-avionics] Question about I/O register

2011-10-25 Thread I
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

Re: [psas-avionics] Question about I/O register

2011-10-25 Thread Naga Pinjala
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

Re: [psas-avionics] Question about I/O register

2011-10-25 Thread I
WO 0x0 > -- > *From:* I > *To:* Andrew Greenberg ; Nagasrinivas Pinjala < > pinja...@yahoo.com>; psas-avionics > *Sent:* Tuesday, October 25, 2011 10:36 AM > *Subject:* Re: [psas-avionics] Question about I/O register > > I don't t

Re: [psas-avionics] Question about I/O register

2011-10-25 Thread Nagasrinivas Pinjala
__ From: I To: Andrew Greenberg ; Nagasrinivas Pinjala ; psas-avionics Sent: Tuesday, October 25, 2011 10:36 AM Subject: Re: [psas-avionics] Question about I/O register I don't think that's correct. Bit 25 *will* be cleared, but the |= won't help. The 'SET' reg

Re: [psas-avionics] Question about I/O register

2011-10-25 Thread I
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

Re: [psas-avionics] Question about I/O register

2011-10-25 Thread Andrew Greenberg
> 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

[psas-avionics] Question about I/O register

2011-10-25 Thread Nagasrinivas Pinjala
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.