3 programming, 1 mir mode, Programming -55 – Freescale Semiconductor MCF5480 User Manual

Page 817: Mir mode -55

Advertising
background image

Software Environment

MCF548x Reference Manual, Rev. 3

Freescale Semiconductor

26-55

26.7.3

Programming

In any mode, after the configuration sequence, enabling the transmitter and writing data to the transmit

buffer sends serial data via the PSCnTXD port. Enabling the receiver makes the receiver ready and if there

is incoming data to PSCnRXD, the receiver decodes the input and stores the data in the FIFO.

26.7.3.1

MIR Mode

After initialization, writing data to the transmit buffer and enabling the transmitter sends data via the

PSCnTXD port. The STA, CRC (option), and STO are automatically added.

3

PSCCR

20

MISC=010

Reset receiver and RxFIFO

30

MISC=011

Reset transmitter and TxFIFO

40

MISC=100

Reset all error status

10

MISC=001

Reset MR pointer

4

PSCMR1

73

RxIRQ=1

Receiver interrupt is from FU (over threshold)

5

PSCIMR

0380

IPC=0

Disable input port change interrupt

RxRDY or FU=1

Enable receiver interrupt/request

TxRDY=1

Enable transmitter interrupt/request

DEOF=1

Enable DEOF interrupt/request

6

PSCIRCR1

02

FD=0

receiver is disabled while transmitting

SIPEN=1

Send SIP after every frame

7

PSCIRCR2

00

SIPREQ=0

SIP is not requested to send now

ABORT=0

Not send abort sequence now

NXTEOF=0

Next write is not EOF

8

PSCRFCR

0F

WRITE TAG = 00

Not EOF

FRMEN=1

Enable frame mode

GR[2:0]=100

Granularity is 4 byte

9

PSCTFCR

0F

WRITE TAG = 00

Not EOF

FRMEN=1

Enable frame mode

GR[2:0]=100

Granularity is 16 byte

10

PSCRFAR

00F0

ALARM[8:0]=0F0

Request is asserted if # of data >= 240

11

PSCTFAR

00F0

ALARM[8:0]=0F0

Request is asserted if # of empty >= 240

12

PSCCR

04

TC=01

Enable transmitter

RC=00

Receiver remains at disabled state.

Table 26-46. A Sample Initialization Sequence for FIR Mode (Continued)

Step

No.

Register

Value

Details

Meaning

Advertising
This manual is related to the following products: