MK50H25DIP ST Microelectronics, Inc., MK50H25DIP Datasheet - Page 40

no-image

MK50H25DIP

Manufacturer Part Number
MK50H25DIP
Description
High Speed Link Level Controller
Manufacturer
ST Microelectronics, Inc.
Datasheet
MK50H25
4.4 Detailed Programming Procedures
4.4.1 Initialization (Reading of Initialization Block)
The following procedure should be followed to intialize the MK50H25:
1. Setup bus control information in CSR4.
2. Setup the Initialization Block and Desciptor Rings.
3. Load the address of the initialization block information into CSR’s 2 and 3.
4. Issue the INIT primitive through CSR1 (write 4200H to CSR1) instructing the MK50H25 to read the
initialization block pointed to by CSR’s 2 and 3.
5. Wait for the INIT confirmation primitive (CSR1 = 0242H) from the MK50H25.
Then clear the PAV bit in CSR1 (write 0040H to CSR1).
6. Issue the Start primitive through CSR1 (write 4300H to CSR1).
Flags will now be continously transmitted.
7. Enable interrupts in CSR0 if desired.
40/64
MK50H25 STATUS BUFFER
FIELD
V(r)
V(s)
V(A)
LOCAL STATE
REMOTE STATE
PHASE
Revision Indicator
CURRD<23:0>
CURRXD<23:0>
DESCRIPTION
Current value of the Receive Count Variable. 0 < V(r) < 7
(0 < V(r) < 127 for extended control).
Current value of the Transmit Count Variable. 0 < V(s) < 7
(0 < V(s) < 127 for extended control).
Current value of Transmit Acknowledge Count. This field contains the
value of the N(r) of the most recently received S or I frame. The
modulo difference between V(A) and V(s) determines the number of
outstanding I frames that have not been acknowledged by the remote
station.
Indicates the current state of operation for the local (secondary) station.
Indicates the current phase of operation for the local station.
Indicates Firmware Revision of the device. This closely corresponds
to the ”REV XXX” label branded on the package of the device.
Current Receive Descriptor. This pointer indicates the position of the
descriptor for the next receive buffer to be filled.
Current Transmit Descriptor. This pointer indicates the position of the
descriptor for the next transmit buffer to be transmitted.
Indicates the current state of operation for the remote station.
0:
1:
2:
3:
4:
5:
6:
7:
8:
0:
1:
-1:
0:
1:
2:
3:
4:
Normal Data Transfer State
Local Busy State
REJ Sent State
DISC Sent State
Normal Disconnected State
SABM/E sent for link connection
FRMR Sent State
SABM/E sent for link reset
Error Indication issued
Remote Not Busy
Remote Busy
Stopped, TD is held at 1’s, RD is ignored
Information Transfer State
Disconnected Phase, TD transmits flags
Resetting Phase
Transparent Data Transfer Phase
MERR reset phase

Related parts for MK50H25DIP