Figure 3: Comport Word Byte Order - Sundance Spas SMT398 User Manual

Table of Contents

Advertisement

Version 1.1.1
At power up, after a TIM global Reset, or once the FPGA configuration process is
over, the CPLD reads any word coming on its ComPort.
If a received word cannot be recognized as a command, the word is read completely
but ignored. The CPLD recognizes the following two commands:
• STARTKEY
• ENDKEY
At power up or after a TIM global Reset, the CPLD takes control of ComPort 3.
Once the ENDKEY command is received, the CPLD releases ComPort 3.
The ComPort communication is performed in 32-bit words, where each word consists
of four consecutive bytes. The ComPort protocol transmits words starting with the
least-significant byte (LSByte), i.e. byte0, as shown in
order, and 1 byte at a time.
Byte3
31
D31 D30 D29 D28 D27 D26 D25 D24 D23 D22 D21 D20 D19 D18 D17 D16 D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0

Figure 3: ComPort word Byte order

The signals INITn and DONE are CPLD inputs, the other one are CPLD outputs that
the CPLD drives to configure the FPGA.
On reception of the STARTKEY command the CPLD clears the FPGA configuration
memory by asserting the PROGRAMn pin low. On INITn going low, the CPLD brings
PROGRAMn high and waits for INITn to come back high before starting the FPGA
configuration.
Afterwards, the CPLD asserts CSn and WRITEn low for the rest of the configuration
process.
The CPLD pulses high CCLK to loads in the FPGA any new byte present on the
ComPort by.
Page 12 of 38
Decode Commands
ComPort Receiver
Byte2
24 23
Configure FPGA
Figure 3: ComPort word Byte
Byte1
16 15
SMT398 User Manual
Byte0
8
7
0

Advertisement

Table of Contents
loading

Table of Contents