DESIGN OF A CUSTOM ASIC INCORPORATING CAN™ AND 1 ...

DESIGN OF A CUSTOM ASIC INCORPORATING CAN™ AND 1 ... DESIGN OF A CUSTOM ASIC INCORPORATING CAN™ AND 1 ...

acumen.lib.ua.edu
from acumen.lib.ua.edu More from this publisher
15.08.2013 Views

5.3.11 CAN Module Output Control Register (COCNTRL) The Output Control Register (COCNTRL), shown in Figure 5.25, is used to determine the configuration of the output drivers on the CAN transmit pins. The Output Control Mode bits allow normal differential operation, bi-phase operation, or a special test mode to be selected (not fully implemented yet). The output drivers can be selected for pull up, pull down, or push- pull operation by selectively enabling or disabling P type and N type transistors in the output driver circuits via the OCTN0/1 and OCTP0/1 bits. The COCNTRL register also allows the data output to be inverted if required. Normal configuration is for complementary levels to be transmitted on the TX0 and TX1 pins (two-wire differential operation). The bus termination network should ensure that the bus reverts to its recessive state when the driver transistors are switched off [96]. Figure 5.25 CAN Output Control Register. OCM1 – OCM0: Output Control Mode Bits. The values of these two bits determine the output mode, as shown in Table 5.12. Table 5.12 Output Control Modes. OCM1 OCM0 Function 0 0 Bi-phase operation mode 0 1 Test mode (not fully implemented) 1 0 Normal mode 1 1 1 Bit stream transmitted on both TX0 and TX1 Normal mode 2 TX0 – bit sequence TX1 – bus clock (ttxclk) 159

The transmit clock (ttxclk) is used to indicate the end of the bit time and will be high during SYNC_SEG. For all the following modes of operation, a dominant bit is internally coded as a zero, a recessive as a one. The other output control bits are used to determine the actual voltage levels transmitted to the CAN bus for dominant and recessive bits. Bi-phase mode: If the CAN Module is isolated from the bus lines by a transformer then the bit stream has to be coded so that there is no resulting dc component. There is a flip-flop (Toggle) within the CAN Module that keeps the last dominant configuration; its direct output goes to TX0 and its complement to TX1. The flip-flop is toggled for each dominant bit; dominant bits are thus sent alternately on TX0 and TX1 (i.e. the first dominant bit is sent on TX0, the second on TX1, the third on TX0, and so on). During recessive bits, all output drivers are deactivated (i.e. high impedance). Normal Mode 1: In contrast to bi-phase mode, the bit representation is time invariant and not toggled. Normal Mode 2: For the TX0 pin this is the same as Normal Mode 1, however, the data stream to TX1 is replaced by the transmit clock. The rising edge of the transmit clock marks the beginning of a bit time. The clock pulse will be tSCL long [95]. Other Output Control Bits: The other six bits in this register, shown in Table 5.13, control the output driver configurations, to determine the format of the output signal for a given data value. 160

The transmit clock (ttxclk) is used to indicate the end of the bit time and will be high<br />

during SYNC_SEG. For all the following modes of operation, a dominant bit is<br />

internally coded as a zero, a recessive as a one. The other output control bits are used to<br />

determine the actual voltage levels transmitted to the CAN bus for dominant and<br />

recessive bits.<br />

Bi-phase mode: If the CAN Module is isolated from the bus lines by a transformer<br />

then the bit stream has to be coded so that there is no resulting dc component. There is a<br />

flip-flop (Toggle) within the CAN Module that keeps the last dominant configuration;<br />

its direct output goes to TX0 and its complement to TX1. The flip-flop is toggled for<br />

each dominant bit; dominant bits are thus sent alternately on TX0 and TX1 (i.e. the first<br />

dominant bit is sent on TX0, the second on TX1, the third on TX0, and so on). During<br />

recessive bits, all output drivers are deactivated (i.e. high impedance).<br />

Normal Mode 1: In contrast to bi-phase mode, the bit representation is time invariant and<br />

not toggled.<br />

Normal Mode 2: For the TX0 pin this is the same as Normal Mode 1, however, the data<br />

stream to TX1 is replaced by the transmit clock. The rising edge of the transmit clock<br />

marks the beginning of a bit time. The clock pulse will be tSCL long [95].<br />

Other Output Control Bits: The other six bits in this register, shown in Table 5.13,<br />

control the output driver configurations, to determine the format of the output signal for a<br />

given data value.<br />

160

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!