Sign in

username:

password:



Not a member?

Search rabbit-semi



Search tips

Subscribe to rabbit-semi



Ads

Discussion Groups

Discussion Groups | Rabbit-Semi | Using alternate serial port pins.

This is a group for folks designing and programming embedded systems using the Rabbit Semiconductor C-programmable microcontroller. Rabbit Semi is a spin-off from Z-World who makes a variety of embedded modules and tools. This group is not affiliated with either Rabbit or Z-World, but is a user forum for sharing ideas, asking questions, flaunting knowledge, and other typical user group stuff. The Rabbit is a powerful uC, supported by a full-featured C-compiler.

Using alternate serial port pins. - eilidhs_daddy - Sep 2 9:36:06 2008

Having read through the documentation for the R2000 processor, I'm a
little confused as how to use the alternate pins for Serial Port B.

The Rabbit 2000 User Manual on page 49 shows that ATXB is available on
PD4, and ARXB is available on PD5. This is confirmed in the table on
page 60.

In DynamicC the I/O Registers help under Parallel Port Registers, then
PORT D, then PDFR shows how to use PDFR to select the alternate pin
(PD4) for transmit, but does not show how to configure Port D to use
PD5 for receive.

So what is the correct way to enable the alternate pins for both ATXB
and ARXB ?
------------------------------------



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )


Re: Using alternate serial port pins. - Kenny - Sep 2 10:24:44 2008

--- In r...@yahoogroups.com, "eilidhs_daddy"
wrote:
>
> Having read through the documentation for the R2000 processor, I'm a
> little confused as how to use the alternate pins for Serial Port B.
>
> The Rabbit 2000 User Manual on page 49 shows that ATXB is available on
> PD4, and ARXB is available on PD5. This is confirmed in the table on
> page 60.
>
> In DynamicC the I/O Registers help under Parallel Port Registers, then
> PORT D, then PDFR shows how to use PDFR to select the alternate pin
> (PD4) for transmit, but does not show how to configure Port D to use
> PD5 for receive.
>
> So what is the correct way to enable the alternate pins for both ATXB
> and ARXB ?
>

The only thing you need to do is ensure that you #DEFINE SERB_USEPORTD
at the top of your program before calling serBopen()

-Kenny
------------------------------------



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )