Re: MCF5482 UART using interrupts for Rx

"Marc Vincent" <[email protected]> Wed, 2 Jul 2008 16:42:58 -0400
Newsgroups gmane.comp.hardware.motorola.microcontrollers.coldfire
Message-ID <[email protected]>
On Wed, Jul 2, 2008 at 2:05 PM, Victor Remete <[email protected]> wrote:
> Sorry,
>
> I had the wrong processor number in my original post.
> It should be MCF5482 not MCF8252.

Ok, I thought you meant the MCF5282. The serial ports are completely
different on the 548x.


>    How do I program the UART for reception so that I get an interrupt
>    1. when the Rx FIFO is 3/4 full (trigger level), or

1- Set PSCMR1n bit 6 (FU) to get interrupted when RxFIFO count > threshold
2- Set the RxFIFO alarm in PSCRFARn bits 0-8. For 3/4 full:  512 - 512*3/4 = 128


>    2. if no character is received for N character times (timeout,
>          where N=4 in the National Semiconduction NS16550, but I am
>        not picky on the value of N as long as it is 2 or more).

The PSC does not do that.
You need to use a soft or hard timer and poll RXRDY (PSCSR bit 8).


Marc
---
[email protected]              Send a post to the list.
[email protected]        Join the list.
[email protected]    Join the list in digest mode.
[email protected]     Leave the list.