EECS 203 Mailing List
Re: Lab inputs


Re: Lab inputs

From: Hyerim Shin <hyerimshin2007_at_avoiding.spam>
Date: Mon Jun 02 2008 - 22:33:01 CDT

my understanding is that essentially the buttons have the same port as the
sensors.
you don't actually need to do anything for these S2 and S3

On 6/2/08, Chris Zamierowski <christopherzamierowski2007@u.northwestern.edu>
wrote:
>
> Ok, so those are the two inputs. Then what is the following code for S2_REG
> and S3_REG for?
>
> S2_REG equ PORTA
> S2_BIT equ 4
> S2_TRIS equ TRISA
>
> S3_REG equ PORTC
> S3_BIT equ 2
> S3_TRIS equ TRISC
>
>
>
> On 6/2/08, Robert Dick <dickrp@northwestern.edu> wrote:
>>
>> > In the lab 8 assignment it says to use Port C, bits 0 and 2 as the two
>> > optical sensor inputs, but in carutils.asm it has one input configured
>> as
>> > Port C 2 and the other as Port A 4. Which should we go with?
>>
>> I don't understand. carutils.asm on the website says
>>
>> TAPE_SENS_REG equ PORTC
>> TAPE_LEFT_BIT equ 2
>> TAPE_RIGHT_BIT equ 0
>>
>> -Robert Dick-
>>
>>
>
Received on Mon Jun 2 22:33:01 2008

This archive was generated by hypermail 2.1.8 : Sat Aug 23 2008 - 21:08:11 CDT