04.07.2014 Views

M_TTCAN - User Manual - Bosch Semiconductors and Sensors

M_TTCAN - User Manual - Bosch Semiconductors and Sensors

M_TTCAN - User Manual - Bosch Semiconductors and Sensors

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

M_<strong>TTCAN</strong> Revision 3.0.2<br />

2.3.8 Bit Timing & Prescaler Register (BTP)<br />

This register is only writable if bits CCCR.CCE <strong>and</strong> CCCR.INIT are set. The CAN bit time may be<br />

programed in the range of 4 to 81 time quanta. The CAN time quantum may be programmed in the<br />

range of 1 to 1024 m_ttcan_cclk periods. t q = (BRP + 1) m_ttcan_cclk period.<br />

TSEG1 is the sum of Prop_Seg <strong>and</strong> Phase_Seg1. TSEG2 is Phase_Seg2.<br />

Therefore the length of the bit time is (programmed values) [TSEG1 + TSEG2 +3]t q<br />

or (functional values) [Sync_Seg + Prop_Seg + Phase_Seg1 + Phase_Seg2] t q .<br />

The Information Processing Time (IPT) is zero, meaning the data for the next bit is available at the<br />

first clock edge after the sample point.<br />

Bits 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16<br />

0x1C res BRP[9:0]<br />

R-0 RP-0<br />

Bits 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0<br />

res TSEG1[5:0] TSEG2[3:0] SJW[3:0]<br />

R-0 RP-0x0A RP-0x3 RP-3<br />

Table 9<br />

R = Read, P = Protected write; -n = value after reset<br />

Bit Timing & Prescaler Register (address 0x1C)<br />

Bits 25:16 BRP[9:0]: Baud Rate Prescaler<br />

0x000-0x3FFThe value by which the oscillator frequency is divided for generating the bit time<br />

quanta. The bit time is built up from a multiple of this quanta. Valid values for the<br />

Baud Rate Prescaler are 0 to 1023. The actual interpretation by the hardware of this<br />

value is such that one more than the value programmed here is used.<br />

Bits 13:8 TSEG1[5:0]: Time segment before sample point<br />

0x01-0x3F Valid values are 1 to 63. The actual interpretation by the hardware of this value is<br />

such that one more than the programmed value is used.<br />

Bits 7:4<br />

0x0-0xF<br />

TSEG2[3:0]: Time segment after sample point<br />

Valid values are 0 to 15. The actual interpretation by the hardware of this value is<br />

such that one more than the programmed value is used.<br />

Bits 3:0<br />

0x0-0xF<br />

SJW[3:0]: (Re) Synchronization Jump Width<br />

Valid values are 0 to 15. The actual interpretation by the hardware of this value is<br />

such that one more than the value programmed here is used.<br />

Note: With a CAN clock (m_ttcan_cclk) of 8 MHz, the reset value of 0x00000A33 configures the<br />

M_<strong>TTCAN</strong> for a bit rate of 500 kBit/s.<br />

14 14.02.2013

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

Saved successfully!

Ooh no, something went wrong!