9 rx status pcirsr (r/sw1) -mbar + 0x389c, Section 10.3.3.2.9, rx status, Pcirsr (r/sw1) —mbar + 0x389c – Freescale Semiconductor MPC5200B User Manual

Page 337

Advertising
background image

MPC5200B Users Guide, Rev. 1

10-40

Freescale Semiconductor

Registers

10.3.3.2.9

Rx Status PCIRSR (R/sw1) —MBAR + 0x389C

Bits

Name

Description

0:31

Packets_Done

This status register indicates the number of packets received. It is active only if continuous
mode is in effect. If the following occurs, the counter is reset:

Reset Controller bit, PCIRER[RC], is asserted (normal way to restart continuous mode)

Master Enable bit, PCIRER[ME], is negated

In this way, master enable can be used to reset Packets_Done status without disturbing
continuous mode addressing. At any point in time the total number of Bytes received can
be calculated as:

(Packets_Done x Packet_Size) + Bytes_Done

This assumes Packet_Size is the same for all restart sequences.

msb 0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

R

Reserved

NT

BE3

BE2

BE1

FE

SE

RE

TA

IA

W

rwc

rwc

rwc

rwc

rwc

rwc

rwc

rwc

rwc

RESET

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31 lsb

R

Reserved

W

RESET

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

Bits

Name

Description

0:6

Reserved

Unused. Software should write zero to these bits.

7

Normal

Termination

(NT)

This flag is set when any packet terminates normally. It is not set in the case of an
abnormally terminated packet. It does not require clearing but will not clear until it is written
to a one (in which case it will now read back as zero, i.e. negated).

>ALL THE FOLLOWING FLAG BITS OPERATE SIMILARLY<

8

Bus Error

type 3

(BE3)

This flag is set whenever a Slave bus transaction attempts to write to a Read-Only register.
This flag bit is set regardless of the Bus error Enable bit (BE). If software is polling this Byte
and wishes to disregard this error it must mask this bit out. No corruption of the register bits
occur for this (or any other) Bus Error case.

9

Bus Error

type 2

(BE2)

This flag is set whenever a Slave bus transaction attempts to write to a Reserved register
(an entire 32-bit register, not just a Reserved bit or byte). This flag bit is set regardless of
the Bus error Enable bit (BE). If software is polling this Byte and wishes to disregard this
error it must mask this bit out.

10

Bus Error

type 1

(BE1)

This flag is set whenever a Slave bus transaction attempts to read a Reserved register (an
entire 32-bit register, not just a Reserved bit or byte). This flag bit is set regardless of the
Bus error Enable bit (BE). If software is polling this Byte and wishes to disregard this error
it must mask this bit out.

11

FIFO Error

(FE)

This flag is set whenever the Receive FIFO asserts its FIFO Error output. A CPU interrupt
will be generated if the FIFO Error Enable (FEE) bit is set. The source of the error must be
determined by reading the FIFO Error status register. Also, the error condition must be
cleared at the FIFO prior to clearing this Sticky bit or this flag will continue to assert.

Advertising