atan0099 introduction - level 1 approach...

12
9352A-AUTO-04/14 Introduction - Level 1 Approach Schema In a level 1 approach, the model is kept as simple as possible with the main characteristics of the device subdivided into blocks. The output ports are shown in Figure 1: VBAT Supply positive port (VS refers to the same pin, which is used in figures) GND Ground or negative port supply LIN Bus connection, LIN input/output TxD Transmission port RxD Receiver port, includes a pull-down transistor Figure 1. Model Inputs and Outputs A main block does the signal filtering and general control inside the model (for more infor- mation, see Figure 2 on page 2). The monitor is the main control and also specifies when to actuate any switch on the model (pull-down transistor, output switch, etc.). Counters or tim- ing filters are implemented inside this block. On the RxD driver, the pull-down transistor is implemented characterizing its interface. The output driver includes a characteristic slew rate control and output interface containing the main switch of the model. Output pull-up circuitry is implemented inside this block. V S GND TxD LIN RxD APPLICATION NOTE ATA663211 LIN TRX VHDL Model - Level 1 Model Documentation ATAN0099

Upload: others

Post on 17-Mar-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ATAN0099 Introduction - Level 1 Approach Schemaww1.microchip.com/downloads/en/AppNotes/Atmel-9352... · 9352A-AUTO-04/14 Introduction - Level 1 Approach Schema In a level 1 approach,

APPLICATION NOTE

ATA663211 LIN TRX VHDL Model - Level 1 ModelDocumentation

ATAN0099

Introduction - Level 1 Approach Schema

In a level 1 approach, the model is kept as simple as possible with the main characteristics of the device subdivided into blocks. The output ports are shown in Figure 1:

● VBAT Supply positive port (VS refers to the same pin, which is used in figures)

● GND Ground or negative port supply

● LIN Bus connection, LIN input/output

● TxD Transmission port

● RxD Receiver port, includes a pull-down transistor

Figure 1. Model Inputs and Outputs

A main block does the signal filtering and general control inside the model (for more infor-mation, see Figure 2 on page 2). The monitor is the main control and also specifies when to actuate any switch on the model (pull-down transistor, output switch, etc.). Counters or tim-ing filters are implemented inside this block.

On the RxD driver, the pull-down transistor is implemented characterizing its interface.

The output driver includes a characteristic slew rate control and output interface containing the main switch of the model. Output pull-up circuitry is implemented inside this block.

VS

GND

TxD LIN

RxD

9352A-AUTO-04/14

Page 2: ATAN0099 Introduction - Level 1 Approach Schemaww1.microchip.com/downloads/en/AppNotes/Atmel-9352... · 9352A-AUTO-04/14 Introduction - Level 1 Approach Schema In a level 1 approach,

Figure 2. Level 1 Approach Schema

The current consumption in different modes (normal, sleep, etc.) was modeled in an abstract manner, with an equivalent resistor that changes its value for each scenario.

Reference List

1. ATA6632xx_doc9198.pdf

2. ATA6632-4_36861-ED.xls

3. ATA666x_VHDL_AMS_Modell_v2.pdf

4. LIN OSI Layer1 Physical Layer for LIN Specification V2.2 for devices with RX TX access.pdf

5. LIN OSI Layer1 Physical Layer for LIN Specification V2.2 for devices without RX TX access.pdf

6. C&S ATA663211 Level 2 VHDL-AMS model

VS

GND

RxD

LIN

TxDDriver

RxDDriver Slew

ratecontrol

Currentconsumption

Monitor Out Driver

(Filteringand

Control)TxD

Outputparametrizable

switch

ATAN0099 [APPLICATION NOTE]9352A–AUTO–04/14

2

Page 3: ATAN0099 Introduction - Level 1 Approach Schemaww1.microchip.com/downloads/en/AppNotes/Atmel-9352... · 9352A-AUTO-04/14 Introduction - Level 1 Approach Schema In a level 1 approach,

1. Model Behavior - Test Bench

A test bench was performed in order to show the behavior of the model and its interaction with external signals. A description is shown in Table 1-1.

1.1 Test Circuit

To compare the required behavior of the model (Figure 2 on page 2) with the simulation outputs, the circuit shown in Figure 1-1 was used. This circuit can be analyzed using the top-level “test bench” or “demo” file. Please also note that the signal generated from the periphery of the model are TxD and a LIN (remote signal emulation) and that they are stimulus signals. The LIN control signal comes from an imaginary node (remote signal) and is modeled as a load for the LIN pin.

Figure 1-1. Test Bench Circuit

Table 1-1. Test Bench

Test Bench Description

TB_a Normal behavior while transmitting

VS

GND

WK

INH (Remote signal)

0 - VS33kΩ

10kΩ

4.7kΩ

10kΩ

500Ω

20pF

220pF

TxD

RxD

EN

Transceiver

Periphery Interface

0 - 5V

0 - 5V

0 - 5V

VS

3ATAN0099 [APPLICATION NOTE]9352A–AUTO–04/14

Page 4: ATAN0099 Introduction - Level 1 Approach Schemaww1.microchip.com/downloads/en/AppNotes/Atmel-9352... · 9352A-AUTO-04/14 Introduction - Level 1 Approach Schema In a level 1 approach,

1.2 Logic Behavior

1.2.1 Initialization of the Model and Typical Transmission

Figure 1-2 on page 4 shows the behavior of the test bench “TB_a” of Table 1-1 on page 3. The device is enabled for normal operation from the first instance and a TXD signal can be applied to transmit data to the bus. It runs in normal mode (N), with LIN following TxD and RxD following LIN.

Figure 1-2. TXD Signal is Stimulus

ATAN0099 [APPLICATION NOTE]9352A–AUTO–04/14

4

Page 5: ATAN0099 Introduction - Level 1 Approach Schemaww1.microchip.com/downloads/en/AppNotes/Atmel-9352... · 9352A-AUTO-04/14 Introduction - Level 1 Approach Schema In a level 1 approach,

1.2.2 LIN as Receiver

In Figure 1-3 the model is shown as receiver.

Figure 1-3. LIN as Receiver

5ATAN0099 [APPLICATION NOTE]9352A–AUTO–04/14

Page 6: ATAN0099 Introduction - Level 1 Approach Schemaww1.microchip.com/downloads/en/AppNotes/Atmel-9352... · 9352A-AUTO-04/14 Introduction - Level 1 Approach Schema In a level 1 approach,

1.3 Analogous Behavior

This section shows measured LIN versus model output LIN signals in order to show the results of the slew rate control and analog output behavior. The test bench circuit is shown in Figure 1-2.

The analog behavior mainly depends on two factors: Supply level and temperature. This model is designed with a wide range of parameters, some of which are mainly temperature-dependent, while others depend on supply level and some on both factors. In order to achieve a more accurate model while maintaining the most simplicity, the main structure of the parameterization depends on the temperature influence. On the other hand, to reflect dependency on the supply level an internal monitor to the supply level is performed, creating a correction factor to be added to the parameters.

1.3.1 Supply Variation

Many analog behavior parameters depend on the supply level. A test of the model was performed in order to compare the output signals with the measured signals. The model uses a monitor that is able to detect the supply level. With this level a proportional factor is calculated which is linear regarding the supply variation and used to apply a correction factor to the parameters that are affected by the supply level.

In the special case of the slew rate control, it is not possible to implement a linear factor correction as described above. The correlation between the signal shapes and the supply level is not linear. The solution to this special case is to use one value of the parameters involved in the slew rate control portion of the model for each of five different levels of supply. When the supply changes over time, the model is able to compute a linear interpolation between the two nearest points of the actual supply level.

The measuring process was completed with the same load condition as the test bench circuitry shown in Figure 1-1 on page 3. The supply source was changed in five increments: 5V, 7V, 14V, 18V and 28V. In the following section the characteristic of the model for different supplies and the measured signals are shown, however while varying the temperature parameter, i.e. the three possible scenarios low, type and high are described.

1.3.2 Temperature Variation

This model is parameterized into three different modes (high, room and low temperature). Many of the parameters depend on the temperature level. With the high level parameter “Temp,” it is possible to change among the three modes. The parameter is an integer value which can be set to 0 (room temperature and typical values), 1 (high temperature) and -1 (low temperature). In the setup used, 120°C was the high, –40°C the low, and 24°C the room temperature.

A comparison of the measurements and the parameterized model is shown in the following section. The measured LIN signal vs. model output LIN signal is shown in Figure 1-4 to Figure 1-13 on page 11 as a broad comparison overview. Each figure corresponds to a fixed supply level and only one edge of the signal (falling or rising). In this way it is possible to see the figures for five different levels of supply (5V to 28V), the falling and rising edge for each supply level and the three temperatures (or parameter sets) for each edge. The test bench circuit is shown in Figure 1-1 on page 3 and described in section Section 1.1 “Test Circuit” on page 3.

ATAN0099 [APPLICATION NOTE]9352A–AUTO–04/14

6

Page 7: ATAN0099 Introduction - Level 1 Approach Schemaww1.microchip.com/downloads/en/AppNotes/Atmel-9352... · 9352A-AUTO-04/14 Introduction - Level 1 Approach Schema In a level 1 approach,

1.3.2.1 Supply = 5V

The three temperature scenarios are shown with a supply level of 5V in the following figures. The model output (SIM LIN) overwrites the measured signals (MSR LIN) with a dashed line.

Figure 1-4. Fall for VS = 5V

Figure 1-5. Rise for VS = 5V

7ATAN0099 [APPLICATION NOTE]9352A–AUTO–04/14

Page 8: ATAN0099 Introduction - Level 1 Approach Schemaww1.microchip.com/downloads/en/AppNotes/Atmel-9352... · 9352A-AUTO-04/14 Introduction - Level 1 Approach Schema In a level 1 approach,

1.3.2.2 Supply = 7V

The three temperature scenarios are shown with a supply level of 7V in the following figures. The model output (SIM LIN) overwrites the measured signals (MSR LIN) with a dashed line.

Figure 1-6. Fall for VS = 7V

Figure 1-7. Rise for VS = 7V

ATAN0099 [APPLICATION NOTE]9352A–AUTO–04/14

8

Page 9: ATAN0099 Introduction - Level 1 Approach Schemaww1.microchip.com/downloads/en/AppNotes/Atmel-9352... · 9352A-AUTO-04/14 Introduction - Level 1 Approach Schema In a level 1 approach,

1.3.2.3 Supply = 14V

The three temperature scenarios are shown with a supply level of 14V in the following figures. The model output (SIM LIN) overwrites the measured signals (MSR LIN) with a dashed line.

Figure 1-8. Fall for VS = 14V

Figure 1-9. Rise for VS = 14V

9ATAN0099 [APPLICATION NOTE]9352A–AUTO–04/14

Page 10: ATAN0099 Introduction - Level 1 Approach Schemaww1.microchip.com/downloads/en/AppNotes/Atmel-9352... · 9352A-AUTO-04/14 Introduction - Level 1 Approach Schema In a level 1 approach,

1.3.2.4 Supply = 18V

The three temperature scenarios are shown with a supply level of 18V in the following figures. The model output (SIM LIN) overwrites the measured signals (MSR LIN) with a dashed line.

Figure 1-10. Fall for VS = 18V

Figure 1-11. Rise for VS = 18V

ATAN0099 [APPLICATION NOTE]9352A–AUTO–04/14

10

Page 11: ATAN0099 Introduction - Level 1 Approach Schemaww1.microchip.com/downloads/en/AppNotes/Atmel-9352... · 9352A-AUTO-04/14 Introduction - Level 1 Approach Schema In a level 1 approach,

1.3.2.5 Supply = 28V

The three temperature scenarios are shown with a supply level of 28V in the following figures. The model output (SIM LIN) overwrites the measured signals (MSR LIN) with a dashed line.

Figure 1-12. Fall for VS = 28 V

Figure 1-13. Rise for VS = 28V

11ATAN0099 [APPLICATION NOTE]9352A–AUTO–04/14

Page 12: ATAN0099 Introduction - Level 1 Approach Schemaww1.microchip.com/downloads/en/AppNotes/Atmel-9352... · 9352A-AUTO-04/14 Introduction - Level 1 Approach Schema In a level 1 approach,

XX X XX XAtmel Corporation 1600 Technology Drive, San Jose, CA 95110 USA T: (+1)(408) 441.0311 F: (+1)(408) 436.4200 | www.atmel.com

© 2014 Atmel Corporation. / Rev.: 9352A–AUTO–04/14

Atmel®, Atmel logo and combinations thereof, Enabling Unlimited Possibilities®, and others are registered trademarks or trademarks of Atmel Corporation in U.S. and other countries. Other terms and product names may be trademarks of others.

DISCLAIMER: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any intellectual property rightis granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN THE ATMEL TERMS AND CONDITIONS OF SALES LOCATED ON THEATMEL WEBSITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTSINCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENTSHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGESFOR LOSS AND PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HASBEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of thisdocument and reserves the right to make changes to specifications and products descriptions at any time without notice. Atmel does not make any commitment to update the informationcontained herein. Unless specifically provided otherwise, Atmel products are not suitable for, and shall not be used in, automotive applications. Atmel products are not intended,authorized, or warranted for use as components in applications intended to support or sustain life.

SAFETY-CRITICAL, MILITARY, AND AUTOMOTIVE APPLICATIONS DISCLAIMER: Atmel products are not designed for and will not be used in connection with any applications wherethe failure of such products would reasonably be expected to result in significant personal injury or death (“Safety-Critical Applications”) without an Atmel officer's specific writtenconsent. Safety-Critical Applications include, without limitation, life support devices and systems, equipment or systems for the operation of nuclear facilities and weapons systems.Atmel products are not designed nor intended for use in military or aerospace applications or environments unless specifically designated by Atmel as military-grade. Atmel products arenot designed nor intended for use in automotive applications unless specifically designated by Atmel as automotive-grade.