Download UM10316
Transcript
D D R R R R R D D D A A A A A FT FT FT UM10316 FT FT D R R FT FT FT FT Chapter 21: LPC29xx LIN 0/1 A A A A R R D D D NXP Semiconductors D R R A FT FT FT A A R R D D D D R A F FT FT A A R R D D All LIN message activity is initiated by the LIN master. By sending a LIN header (see Ref. 31–6) the LIN master determines the configuration of the response. The response can be sent either by the master or the slave. D FT FT A A R R D D D Table 21–291 provides a typical step-by-step description for both. R A FT Table 291. Transmitting/receiving step by step D LIN master receives the response Prepare a transmit message: provide the LIN identifier, the data-length code DLC and, if required, the message data to the LIN master message buffer. Choose a slave-not-responding timeout condition and write the related value into the LIN master-controller time-out register LTO, see also Section 21–3.6. R LIN master transmits the response A The data direction bit DD is set to LOW. Initiate the transmission by setting transmitrequest bit TR in the LIN master controller command register LCMD. Prepare a transmit message (LIN Header): Provide the LIN identifier and the data-length code DLC of the expected response to the LIN master message Buffer. The data direction bit DD is set to high. A transmit-message complete interrupt signals successful transmission of the message. Initiate the transmission by setting transmitrequest bit TR in the LIN master-controller command register LCMD. The LIN master sends the LIN header. A receive-message complete interrupt signals successful reception of the slave response and the message is then stored in the LIN master’s message buffer. UM10316_0 User manual © NXP B.V. 2008. All rights reserved. Rev. 00.05 — 1 October 2008 331 of 527
Related documents