EmbeddedRelated.com
Forums

Initial Read or Write Port?

Started by causeofexisting October 15, 2004

Dear Folks,

It's my turn to pay back for the turtle, as my RCM2200 were running all
day long. I've got some questions to ask, if you would please to answer,
I would really appreciate that. Here are the questions.

1. I've been working on BitRdPort, BitWrPort, WrPort and RdPort
functions for several days, but they didn't work.(Note that, I've used an
oscilloscope inspected them though) Do I have to initial the Port before
using them as Input or Output Port? Please give me some examples.

2. I am trying to use Port A,B,C,D or E...right now I don't know which
one I'll choose to turn on some LEDs and to Get an input from some IR
sensors. Which Port should I use for the Output and the Input?

However thank you for your reading. Enjoy your weekend.
Kos



Dear Kos, I have some prob as you. Played BitRdPort, BitWrPort
but never get correct result. Regards,
Steven --- causeofexisting <causeofexisting@caus...> wrote:

>
> Dear Folks,
>
> It's my turn to pay back for the turtle, as my
> RCM2200 were running all
> day long. I've got some questions to ask, if you
> would please to answer,
> I would really appreciate that. Here are the
> questions.
>
> 1. I've been working on BitRdPort, BitWrPort, WrPort
> and RdPort
> functions for several days, but they didn't
> work.(Note that, I've used an
> oscilloscope inspected them though) Do I have to
> initial the Port before
> using them as Input or Output Port? Please give me
> some examples.
>
> 2. I am trying to use Port A,B,C,D or E...right now
> I don't know which
> one I'll choose to turn on some LEDs and to Get an
> input from some IR
> sensors. Which Port should I use for the Output and
> the Input?
>
> However thank you for your reading. Enjoy your
> weekend.
> Kos >
>

_______________________________



If you are wanting to use the ports in anything other than their default configuration you need to initialise the relevant port registers (direction, function etc). Note that the sample programs usually have calls to brdInit() which setup the port registers for the core modules corresponding prototype boards. If using your own hardware you may need to make your own "brdInit" function.

 

Regards,

Nathan

 

-----Original Message-----
From: Friends [mailto:s...@yahoo.com]
Sent
:
Monday, 18 October 2004 2:29 PM
To: r...@yahoogroups.com
Subject: Re: [rabbit-semi] Initial Read or
Write Port?

 

Dear Kos, I have some prob as you. Played  BitRdPort, BitWrPort
but never get correct result. Regards,
Steven --- causeofexisting <c...@yahoo.com> wrote:

>
> Dear Folks,
>
> It's my turn to pay back for the turtle, as my
> RCM2200 were running all
> day long. I've got some questions to ask, if you
> would please to answer,
> I would really appreciate that. Here are the
> questions.      
>
> 1. I've been working on BitRdPort, BitWrPort, WrPort
> and RdPort
> functions for several days, but they didn't
> work.(Note that, I've used an
> oscilloscope inspected them though) Do I have to
> initial the Port before
> using them as Input or
Output Port? Please give me
> some examples.
>
> 2. I am trying to use Port A,B,C,D or E...right now
> I don't know which
> one I'll choose to turn on some LEDs and to Get an
> input from some IR
> sensors. Which Port should I use for the Output and
> the Input?
>
> However thank you for your reading. Enjoy your
> weekend.
> Kos
>
>
>
>
           
_______________________________