Rabbit 6000 User’s Manual
digi.com
205
20.3 Operation
TIP:
Remember to set up the serial port bits before commanding the serial port to send or receive
any data.
20.3.1 Asynchronous Mode
The steps to set up Serial Ports E – F for asynchronous operation are identical to those described
in Section 19.3.1 to set up Serial Ports A – D.
20.3.2 HDLC Mode
The following steps explain how to set up Serial Ports E – F for the HDLC mode.
1. Write the interrupt vector for the interrupt service routine to the internal interrupt table.
2. Set up the desired data transmit and clock pins by writing to the appropriate parallel port func-
tion register (PxFR) and alternate output register (PxALR or PxAHR).
3. Select the appropriate mode by writing to SxCR (receive input port and clock source). Also
select the interrupt priority.
4. Select additional options by writing to SxER (data encoding, idle line condition, underrun
behavior, and combined or separate clocks).
5. Write the desired divider value to TATxR for the appropriate serial port, or else write a divider
to the dedicated 15-bit divider in SxDLR and SxDHR. If the dedicated divider is to be used,
write a 1 to the most-significant bit of SxDHR to enable it. In either case, the overall clock
divider will be the value in the appropriate register plus one.
6. To start transmission of a packet, write the first byte to SxDR. If internal clock is selected, the
transmission will begin immediately; if an external clock is selected the transmission will
begin when the clock is detected.
7. Continue writing bytes when space is available in the transmit buffer until the final byte of the
packet. If a CRC is to be appended to the packet, write the final byte to SxAR. If no CRC is
required, write the final byte to SxLR and just a closing flag will be appended. If it is desirable
to abort the current packet, write 11 to bits 6–7 of SxCR, and an abort pattern will be transmit-
ted.
8. The receiver will be synchronized on flag bytes and will reset the CRC. By monitoring the
received bytes, decisions can be made about the incoming packet; if it is not desired (i.e., it is
not addressed to this device), writing a 01 to bits 6–7 of SxCR will force the receiver back into
the flag search mode.
Summary of Contents for 6000
Page 1: ...Rabbit 6000 Microprocessor User s Manual 90001108_J...
Page 11: ...Rabbit 6000 User s Manual digi com 11 1 3 Block Diagram Figure 1 1 Rabbit 6000 Block Diagram...
Page 43: ...Rabbit 6000 User s Manual digi com 43 4 1 1 Block Diagram...
Page 57: ...Rabbit 6000 User s Manual digi com 57 5 1 1 Block Diagram...
Page 88: ...Rabbit 6000 User s Manual digi com 88 7 2 Block Diagram...
Page 115: ...Rabbit 6000 User s Manual digi com 115 11 1 1 Block Diagram...
Page 127: ...Rabbit 6000 User s Manual digi com 127 12 1 1 Block Diagram...
Page 138: ...Rabbit 6000 User s Manual digi com 138 13 1 1 Block Diagram...
Page 154: ...Rabbit 6000 User s Manual digi com 154 15 1 1 Block Diagram...
Page 163: ...Rabbit 6000 User s Manual digi com 163 16 1 1 Block Diagram...
Page 170: ...Rabbit 6000 User s Manual digi com 170 17 1 1 Block Diagram...
Page 177: ...Rabbit 6000 User s Manual digi com 177 18 1 1 Block Diagram...
Page 186: ...Rabbit 6000 User s Manual digi com 186 19 1 1 Block Diagram...
Page 230: ...Rabbit 6000 User s Manual digi com 230 22 2 Block Diagram...
Page 234: ...Rabbit 6000 User s Manual digi com 234 Figure 22 3 Sample Slow A D Converter Circuit...
Page 287: ...Rabbit 6000 User s Manual digi com 287 25 1 1 Block Diagram...
Page 310: ...Rabbit 6000 User s Manual digi com 310 26 1 1 Block Diagram...
Page 323: ...Rabbit 6000 User s Manual digi com 323 28 1 1 Block Diagram...
Page 351: ...Rabbit 6000 User s Manual digi com 351 31 1 4 Block Diagram...
Page 361: ...Rabbit 6000 User s Manual digi com 361 32 1 1 Block Diagram...
Page 369: ...Rabbit 6000 User s Manual digi com 369 33 2 Block Diagram...
Page 390: ...Rabbit 6000 User s Manual digi com 390 35 1 1 Block Diagram...
Page 408: ...Rabbit 6000 User s Manual digi com 408...
Page 410: ...Rabbit 6000 User s Manual digi com 410...
Page 411: ...Rabbit 6000 User s Manual digi com 411...
Page 420: ...Rabbit 6000 User s Manual digi com 420 Figure 37 1 Memory Read and Write Cycles...