
Programming the 3595 4C Interface card 3595 4C User Manual Part One
3-14
35952350 (CH03/AA)
Transmission interrupts
An interrupt is generated if the byte at location 0xE9 is non-zero and TXR in the Transmit Register is clear.
Destination addressing
The
Destination Address Register
, in location 0xEA, holds the address of the IMP that is to receive the data
on RAM Page 1. The destination address is written into this register by the Host PC.
A message may be ‘broadcast’ to every IMP on the S-Net by making the destination address a zero. This
facility is intended primarily as a means of synchronising the time between the 4C Interface card and every
IMP on S-Net: time is sent to every IMP simultaneously so that they can operate in a common timeframe.
Other messages, such as a measure command, may also be broadcast, which gives a marginal increase in
data throughput. With a broadcast message, however, message reception goes unchecked and no indication
is given to the PC. Therefore, it is not recommended for messages in a secure environment, i.e. where the
function of every IMP is critical and the failure of any IMP to respond must be reported to the PC.
1
Transmit buffer size
Two bytes are used to hold the number of bytes that are to be transmitted. The maximum number is 256
bytes, which is the capacity of the transmit buffer on RAM Page 1.
Transmit sequence
To transmit a message to an IMP, the Host PC must take the following steps:
1.
Write the message onto RAM Page 1, starting at address 0x00.
2.
On RAM Page 0, set-up the Transmit Registers as follows:
a.
Specify the number of bytes to be transmitted by writing this into the
Tx Buffer Size Register
b.
Specify the IMP that is to receive the command by writing it’s address into the Destination Address
Register.
c.
Initiate the transmission by setting the TXR (Transmit Request) bit in the Transmit Register.
d.
Set the Tx Interrupt Enable byte to non-zero (only if a transmit-complete interrupt is required.)
When the Transmit Request (TXR) bit has been recognised by the 4C Interface card, the card itself sets the
Transmit Busy (TXB) bit and the message is then transmitted on the S-Net. If a message is sent to a specific
IMP, i.e. the destination address is not zero, the IMP is polled immediately after the message is sent. This
poll is for verifying correct message reception. If an acknowledgement of the message is not received, up to
three re-tries are performed before an error is reported to the user.
When transmission is complete, the 4C Interface card sets the Transmit Control Register as follows:
Transmit Request (TXR)
- clear.
Transmit Error (TXE)
- sets only if transmission has failed.
Transmit Busy (TXB)
- clear.
If the Interrupt Enable byte was set, the 4C Interface card generates a ‘transmission complete’ interrupt.
1
In the case of time broadcasts, acknowledgement of reception is of no consequence. The time is broadcast at regular intervals
and any IMP not receiving the time, due to being busy, should receive the time data on a subsequent broadcast. A total failure of
an IMP to receive data will be reported to the Host PC when that IMP is normally polled.
Содержание 3595 4C
Страница 1: ...Precision measurement solutions 3595 4C PC to S Net Interface USER MANUAL 35952350...
Страница 2: ...ii 35952350 2001 SOLARTRON MOBREY LIMITED...
Страница 6: ...vi 35952350...
Страница 7: ......
Страница 8: ......
Страница 10: ...1 ii 35952350...
Страница 12: ...1 iv 35952350...
Страница 48: ...Programming the 3595 4C Interface card 3595 4C User Manual Part One 3 20 35952350 CH03 AA...
Страница 49: ...3595 4C PC to S Net Interface User Manual PART TWO IMP Commands and Responses...
Страница 50: ...2 ii 35952350...
Страница 52: ...2 iv 35952350...
Страница 108: ...IMP Commands 3595 4C User Manual Part Two 1 56 35952350 CH01 AA...
Страница 110: ...Results and Error Formats 3595 4C User Manual Part Two 2 2 35952350 CH02 AA...
Страница 122: ...Database Structure 3595 1H and 1J IMP 3595 4C User Manual Part Two A 2 35952350 APPX A AA...
Страница 126: ...Database Structure 3595 1H and 1J IMP 3595 4C User Manual Part Two A 6 35952350 APPX A AA...
Страница 127: ......