0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
会员中心
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
ATA6616_12

ATA6616_12

  • 厂商:

    ATMEL(爱特梅尔)

  • 封装:

  • 描述:

    ATA6616_12 - 8K/16K Flash Microcontroller with LIN Transceiver, 5V Regulator and Watchdog - ATMEL Co...

  • 数据手册
  • 价格&库存
ATA6616_12 数据手册
General Features • Single-package High Performance, Low Power AVR 8-bit Microcontroller with LIN • • • • • • Transceiver, 5V Regulator (85mA Current Capability) and Watchdog Very Low Current Consumption in Sleep Mode 8Kbytes/16Kbytes Flash Memory for Application Program (Atmel ATA6616/ATA6617) Supply Voltage Up to 40V Operating Voltage: 5V to 27V Temperature Range: Tcase –40°C to +125°C QFN38, 5mm × 7mm Package 1. Description Atmel® ATA6616/ATA6617 is a System-in-Package (SiP) product, which is particularly suited for complete LIN-bus node applications. It consists of two ICs in one package supporting highly integrated solutions for in-vehicle LIN networks. The first chip is the LIN-system-basis-chip (LIN-SBC) ATA6624, which has an integrated LIN transceiver, a 5V regulator (85mA) and a window watchdog. The second chip is an automotive microcontroller from Atmel®’s series of AVR® 8-bit microcontroller with advanced RISC architecture, the Atmel ATtiny87 with 8-Kbytes and the Atmel ATtiny167 with 16-Kbytes flash memory. All pins of the LIN System Basis Chip as well as all pins of the AVR microcontroller are bonded out to provide customers the same flexibility for their applications as they have when using discrete parts. In section 2 you will find the pin configuration for the complete SiP. In section 3 the LIN SBC is described, and in section 6 the AVR is described in detail. Figure 1-1. Application Diagram LIN Bus 8K/16K Flash Microcontroller with LIN Transceiver, 5V Regulator and Watchdog Atmel ATA6616 Atmel ATA6617 Atmel ATA6616/17 MCU Atmel ATtiny 87/167 LIN-SBC Atmel ATA6624 9132F–AUTO–02/12 2. Atmel ATA6616/ATA6617 LIN System in Package Solution (SIP) 2.1 Pinning Atmel ATA6616/ATA6617 Pinning QFN38 AGND AVCC LIN GND PB6 PB7 PA7 PA6 PA5 PA4 PA3 WAKE Figure 2-1. PB5 PB4 VCC GND GND GND PB3 31 30 29 28 27 26 25 24 23 22 21 20 32 19 33 34 35 36 37 38 1 PB2 2 PB1 3 PB0 4 PA0 5 PA1 6 PA2 7 RXD 8 INH 18 17 NTRIG EN VS VCC PVCC KL15 MODE Atmel ATA6616/17 16 15 14 13 9 10 11 12 TXD NRES WD_OSC TM Table 2-1. Pin 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 Note: Pin Description Symbol PB2 PB1 PB0 PA0 PA1 PA2 RXD TXD (1) Function Port B 2 I/O line (PCINT10/OC1AV/USCK/SCL) Port B 1 I/O line (PCINT9/OC1BU/DO) Port B 0 I/O line (PCINT8/OC1AU/DI/SDA) Port A 0 I/O line (PCINT0/ADC0/RXD/RXLIN) Port A 1 I/O line (PCINT1/ADC1/TXD/TXLIN) Port A 2 I/O line (PCINT2/ADC2/OC0A/DO/MISO) Receive data output Battery-related output for controlling an external voltage regulator Transmit data input; active low output (strong pull down) after a local wake-up request Output undervoltage and watchdog reset (open drain) External resistor for adjustable watchdog timing For factory testing only (tie to ground) For debug mode: Low watchdog is on; high watchdog is off Ignition detection (edge sensitive) 5V regulator sense input pin 5V regulator output/driver pin Battery supply Enables the device into Normal Mode INH(1) (1) (1) (1) NRES WD_OSC TM(1) MODE KL_15 PVCC VS (1) (1) (1) VCC(1) (1) (1) (1) EN NTRIG GND LIN Low level watchdog trigger input from microcontroller High voltage input for local wake-up request; if not needed connect to VS System Ground LIN-SBC LIN bus line input/output WAKE(1) (1) (1) 1. This identifies the pins of the LIN SBC Atmel® ATA6624 2 Atmel ATA6616/ATA6617 9132F–AUTO–02/12 Atmel ATA6616/ATA6617 Table 2-1. Pin 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 Note: Pin Description (Continued) Symbol PA3 AVCC AGND PA4 PA5 PA6 PA7 PB7 PB6 PB5 PB4 VCC GND GND GND PB3 Backside Function Port A 3 I/O line (PCINT3/ADC3/ISRC/INT0) Analog supply voltage Analog ground Port A 4 I/O line (PCINT4/ADC4/ICP1/DI/SDA/MOSI) Port A 5 I/O line (PCINT5/ADC5/T1/USCK/SCL) Port A 6 I/O line (PCINT6/ADC6/AIN0/SS) Port A 7 I/O line (PCINT7/ADC7/AIN1) Port B 7 I/O line (PCINT15/ADC10/OC1BX / RESET) Port B 6 I/O line (PCINT14/ADC9/OC1AX/INT0) Port B 5 I/O line (PCINT13/ADC8/OC1BW/XTAL2/CLKO) Port B 4 I/O line (PCINT12/OC1AW/XTAL1/CLKI) AVR supply voltage System ground Ground (optional) Ground (optional) Port B 3 I/O line (PCINT11/OC1BV) Heat slug is connected to GND 1. This identifies the pins of the LIN SBC Atmel® ATA6624 2.2 Absolute Maximum Ratings Maximum Ratings of the SiP Table 2-2. Stresses beyond those listed under “Absolute Maximum Ratings” may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other conditions beyond those indicated in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability. Parameters HBM ESD ANSI/ESD-STM5.1 JESD22-A114 AEC-Q100 (002) CDM ESD STM 5.3.1 Machine Model ESD AEC-Q100-RevE Storage temperature Operating temperature (1) Symbol Min. Typ. Max. Unit ±3 KV ±1 ±150 Ts Tcase Rthjc Rthja 150 150 –55 –40 5 25 165 165 10 170 170 +150 +125 KV V °C °C K/W K/W °C °C °C Thermal resistance junction to heat slug Thermal resistance junction to ambient Thermal shutdown of VCC regulator Thermal shutdown of LIN output Thermal shutdown hysteresis Note: 1. Tcase means the temperature of the heat slug (backside). It is mandatory that this backside temperature is ≤ 125°C in the application. 3 9132F–AUTO–02/12 3. LIN System-basis-chip Block 3.1 Features • • • • • • Master and Slave Operation Possible Supply Voltage up to 40V Operating voltage VS = 5V to 27V Typically 10µA Supply Current During Sleep Mode Typically 57µA Supply Current in Silent Mode Linear Low-drop Voltage Regulator, 85mA Current Capability: – Normal, Fail-safe, and Silent Mode • VCC = 5.0V ±2% – In Sleep Mode VCC is Switched Off VCC Undervoltage Detection (4ms Reset Time) and Watchdog Reset Logical Combined at Open Drain Output NRES Negative Trigger Input for Watchdog Boosting the Voltage Regulator Possible with an External NPN Transistor LIN Physical Layer According to LIN 2.0, 2.1 Specification and SAEJ2602-2 Wake-up Capability via LIN-bus, Wake Pin, or Kl_15 Pin INH Output to Control an External Voltage Regulator or to Switch off the Master Pull-up Resistor TXD Time-out Timer Bus Pin is Overtemperature and Short-circuit Protected versus GND and Battery Adjustable Watchdog Time via External Resistor Advanced EMC and ESD Performance Fulfills the OEM “Hardware Requirements for LIN in Automotive Applications Rev.1.0” Interference and Damage Protection According ISO7637 • • • • • • • • • • • • 3.2 Description The LIN-SBC is a fully integrated LIN transceiver, which complies with the LIN 2.0, 2.1 and SAEJ2602-2 specifications. It has a low-drop voltage regulator with a 5V/85mA output and a window watchdog. The voltage regulator is able to source up to 85mA, but if necessary the output can be boosted by an external NPN transistor. The LIN-SBC is designed to handle the low-speed data communication in vehicles, e.g., in convenience electronics. Improved slope control at the LIN-driver ensures secure data communication up to 20kBaud. Sleep Mode and Silent Mode guarantee very low current consumption. 4 Atmel ATA6616/ATA6617 9132F–AUTO–02/12 Atmel ATA6616/ATA6617 Figure 3-1. Block Diagram VS Normal and Fail-safe Mode PVCC Receiver INH RXD Normal Mode + RF Filter WAKE KL_15 PVCC Edge Detection Wake-up Bus Timer LIN TXD TXD Time-out Timer Slew Rate Control Short Circuit and Overtemperature Protection Control Unit EN Debounce Time Normal/Silent/ Fail-safe Mode 5V Undervoltage Reset VCC PVCC NRES Mode Select Internal Testing Unit GND PVCC OUT Watchdog Adjustable Watchdog Oscillator WD_OSC MODE TM NTRIG 5 9132F–AUTO–02/12 3.3 3.3.1 Functional Description Physical Layer Compatibility Since the LIN physical layer is independent from higher LIN layers (e.g., the LIN protocol layer), all nodes with a LIN physical layer according to revision 2.x can be mixed with LIN physical layer nodes, which are according to older versions (i.e., LIN 1.0, LIN 1.1, LIN 1.2, LIN 1.3), without any restrictions. Supply Pin (VS) The LIN operating voltage is VS = 5V to 27V. An undervoltage detection is implemented to disable data transmission if VS falls below VSth < 4V in order to avoid false bus messages. After switching on VS, the IC starts in Fail-safe Mode, and the voltage regulator is switched on (i.e., output capability). The supply current is typically 10µA in Sleep Mode and 57µA in Silent Mode. 3.3.2 3.3.3 Ground Pin (GND) The IC does not affect the LIN Bus in the event of GND disconnection. It is able to handle a ground shift up to 11.5% of VS. The mandatory system ground is pin 5. Voltage Regulator Output Pin (VCC) The internal 5V voltage regulator is capable of driving loads up to 85mA. It is able to supply the microcontroller and other ICs on the PCB and is protected against overload by means of current limitation and overtemperature shut-down. Furthermore, the output voltage is monitored and will cause a reset signal at the NRES output pin if it drops below a defined threshold Vthun. To boost the maximum load current, an external NPN transistor with its base connected to the VCC pin and its emitter connected to PVCC can be used. Voltage Regulator Sense Pin (PVCC) The PVCC is the sense input pin of the voltage regulator. For normal applications (i.e., when only using the internal output transistor), this pin is connected to the VCC pin. If an external boosting transistor is used, the PVCC pin must be connected to the output of this transistor, i.e., its emitter terminal. Bus Pin (LIN) A low-side driver with internal current limitation and thermal shutdown and an internal pull-up resistor compliant with the LIN 2.x specification are implemented. The allowed voltage range is between –27V and +40V. Reverse currents from the LIN bus to VS are suppressed, even in the event of GND shifts or battery disconnection. LIN receiver thresholds are compatible with the LIN protocol specification. The fall time from recessive to dominant bus state and the rise time from dominant to recessive bus state are slope controlled. 3.3.4 3.3.5 3.3.6 3.3.7 Input/Output Pin (TXD) In Normal Mode the TXD pin is the microcontroller interface used to control the state of the LIN output. TXD must be pulled to ground in order to have a low LIN bus. If TXD is high or unconnected (internal pull-up resistor), the LIN output transistor is turned off, and the bus is in recessive state. During Fail-safe Mode, this pin is used as output. It is current-limited to < 8mA. and is latched to low if the last wake-up event was from pin WAKE or KL_15. 6 Atmel ATA6616/ATA6617 9132F–AUTO–02/12 Atmel ATA6616/ATA6617 3.3.8 TXD Dominant Time-out Function The TXD input has an internal pull-up resistor. An internal timer prevents the bus line from being driven permanently in dominant state. If TXD is forced to low for longer than tDOM > 6ms, the LIN-bus driver is switched to recessive state. To reactivate the LIN-bus driver, switch TXD to high (> 10µs). 3.3.9 Output Pin (RXD) The Output pin reports the state of the LIN bus to the microcontroller. LIN high (recessive state) is reported by a high level at RXD; LIN low (dominant state) is reported by a low level at RXD. The output has an internal pull-up resistor with typically 5kΩ to VCC. The AC characteristics can be defined with an external load capacitor of 20pF. The output is short-circuit protected. RXD is switched off in Unpowered Mode (i.e., VS = 0V). 3.3.10 Enable Input Pin (EN) The Enable Input pin controls the operation mode of the device. If EN is high, the circuit is in Normal Mode with transmission paths from TXD to LIN and from LIN to RXD both active. The VCC voltage regulator operates with 5V/85mA output capability. If EN is switched to low while TXD is still high, the device is forced to Silent Mode. No data transmission is then possible, and the current consumption is reduced to IVS typ. 57µA. The VCC regulator has its full functionality. If EN is switched to low while TXD is low, the device is forced to Sleep Mode. No data transmission is possible, and the voltage regulator is switched off. 3.3.11 Wake Input Pin (WAKE) The Wake Input pin is a high-voltage input used to wake up the device from Sleep Mode or Silent Mode. It is usually connected to an external switch in the application to generate a local wake-up. A pull-up current source, typically 10µA, is implemented. If a local wake-up is not needed for the application, connect the Wake pin directly to the VS pin. 3.3.12 Mode Input Pin (MODE) Connect the MODE pin directly or via an external resistor to GND for normal watchdog operation. To debug the software of the connected microcontroller, connect the MODE pin to VCC and the watchdog is switched off. TM Input Pin The TM pin is used for final production measurements at Atmel. In normal application, it must always be connected to GND. 3.3.13 7 9132F–AUTO–02/12 3.3.14 KL_15 Pin The KL_15 pin is a high-voltage input used to wake up the device from Sleep or Silent Mode. It is an edge-sensitive pin (low-to-high transition). It is usually connected to ignition to generate a local wake-up in the application when the ignition is switched on. Although KL_15 pin is at high voltage (VBatt), it is possible to switch the IC into Sleep or Silent Mode. Connect the KL_15 pin directly to GND if you do not need it. A debounce timer with a typical TdbKL_15 of 160µs is implemented. The input voltage threshold can be adjusted by varying the external resistor due to the input current IKL_15. To protect this pin against voltage transients, a serial resistor of 47kΩ and a ceramic capacitor of 100nF are recommended. With this RC combination you can increase the wake-up time TwKL_15 and, therefore, the sensitivity against transients on the ignition KL_15. The wake-up time can also be increased by using external capacitors with higher values. 3.3.15 INH Output Pin The INH Output pin is used to switch on an external voltage regulator during Normal or Fail-safe Mode. The INH pin is switched off in Sleep or Silent Mode. It is possible to switch off the external 1kΩ master resistor via the INH pin for master node applications. The INH pin is switched off during VCC undervoltage reset. 3.3.16 Reset Output Pin (NRES) The Reset Output pin, an open-drain output, switches to low during VCC undervoltage or a watchdog failure. WD_OSC Output Pin The WD_OSC Output pin provides a typical voltage of 1.2V, which supplies an external resistor with values between 34kΩ and 120kΩ to adjust the watchdog oscillator time. NTRIG Input Pin The NTRIG Input pin is the trigger input for the window watchdog. A pull-up resistor is implemented. A negative edge triggers the watchdog. The trigger signal (low) must exceed a minimum time ttrigmin to generate a watchdog trigger. 3.3.17 3.3.18 3.3.19 Wake-up Events from Sleep or Silent Mode • LIN-bus • WAKE pin • EN pin • KL_15 8 Atmel ATA6616/ATA6617 9132F–AUTO–02/12 Atmel ATA6616/ATA6617 3.4 Modes of Operation Modes of Operation Unpowered Mode VBatt = 0V b a b b c+d+e a: VS > 5V b: VS < 4V c: Bus wake-up event d: Wake up from WAKE or KL_15 pin e: NRES switches to low Figure 3-2. Fail-safe Mode b e EN = 1 Go to silent command VCC: 5V With undervoltage monitoring Communication: OFF Watchdog: ON EN = 1 c+d EN = 0 TXD = 1 Normal Mode VCC: 5V With undervoltage monitoring Go to sleep command Local wake-up event Silent Mode VCC: 5V With undervoltage monitoring Communication: OFF Watchdog: OFF EN = 1 Communication: ON Watchdog: ON EN = 0 TXD = 0 Sleep Mode VCC: switched off Communication: OFF Watchdog: OFF Table 3-1. Mode of Operation Fail-safe Modes of Operation Transceiver Off VCC 5V Watchdog On WD_OSC 1.23V INH On RXD High, except after wake up LIN depending High 0V LIN Recessive TXD depending Recessive Recessive Normal Silent Sleep On Off Off 5V 5V 0V On Off Off 1.23V 0V 0V On Off Off 3.4.1 Normal Mode This is the normal transmitting and receiving mode of the LIN interface in acoordance with the LIN specification LIN 2.x. The voltage regulator is active and can source up to 85mA. The undervoltage detection is activated. The watchdog needs a trigger signal from NTRIG to avoid resets at NRES. If NRES is switched to low, the IC changes its state to Fail-safe Mode. 9 9132F–AUTO–02/12 3.4.2 Silent Mode A falling edge at EN when TXD is high switches the IC into Silent Mode. The TXD Signal has to be logic high during the Mode Select window (see Figure 3-3 on page 10). The transmission path is disabled in Silent Mode. The overall supply current from VBatt is a combination of the IVSsi = 57µA plus the VCC regulator output current IVCC. The internal slave termination between the LIN pin and the VS pin is disabled in Silent Mode. Only a weak pull-up current (typically 10µA) between the LIN pin and the VS pin is present. Silent Mode can be activated independently from the actual level on the LIN, WAKE, or KL_15 pins. If an undervoltage condition occurs, NRES is switched to low, and the IC changes its state to Fail-safe Mode. A voltage lower than the LIN Pre_Wake detection VLINL at the LIN pin activates the internal LIN receiver and switches on the internal slave termination between the LIN pin and the VS pin. Figure 3-3. Switch to Silent Mode Normal Mode Silent Mode EN TXD Mode select window td = 3.2µs NRES VCC Delay time silent mode td_silent = maximum 20µs LIN LIN switches directly to recessive mode A falling edge at the LIN pin followed by a dominant bus level maintained for a certain time period (> tbus) and followed by a rising edge at the LIN pin (see Figure 3-4 on page 11) results in a remote wake-up request. The device switches from Silent Mode to Fail-safe Mode. The remote wake-up request is indicated by a low level at the RXD pin to interrupt the microcontroller (see Figure 3-4 on page 11). EN high can be used to switch directly to Normal Mode. 10 Atmel ATA6616/ATA6617 9132F–AUTO–02/12 Atmel ATA6616/ATA6617 Figure 3-4. LIN Wake-up from Silent Mode Bus wake-up filtering time tbus Fail-safe mode Normal mode LIN bus Node in silent mode RXD High Low High TXD Watchdog Watchdog off Start watchdog lead time td VCC voltage regulator Silent mode 5V Fail safe mode 5V Normal mode EN High EN NRES Undervoltage detection active 3.4.3 Sleep Mode A falling edge at EN when TXD is low switches the IC into Sleep Mode. The TXD Signal has to be logic low during the Mode Select window (Figure 3-5 on page 12). In order to avoid any influence to the LIN-pin during switching into sleep mode it is possible to switch the EN up to 3.2µs earlier to LOW than the TXD. Therefore, the best and easiest way are two falling edges at TXD and EN at the same time.The transmission path is disabled in Sleep Mode. The supply current IVSsleep from VBatt is typically 10µA. The VCC regulator and the INH output are switched off. NRES and RXD are low. The internal slave termination between the LIN pin and VS pin is disabled, only a weak pull-up current (typically 10µA) between the LIN pin and the VS pin is present. Sleep Mode can be activated independently from the current level on the LIN, WAKE, or KL_15 pin. A voltage lower than the LIN Pre_Wake detection VLINL at the LIN pin activates the internal LIN receiver and switches on the internal slave termination between the LIN pin and the VS pin. 11 9132F–AUTO–02/12 A falling edge at the LIN pin followed by a dominant bus level maintained for a certain time period (> tbus) and followed by a rising edge at pin LIN results in a remote wake-up request. The device switches from Sleep Mode to Fail-safe Mode. The VCC regulator is activated, and the remote wake-up request is indicated by a low level at the RXD pin to interrupt the microcontroller (see Figure 3-6 on page 13). Figure 3-5. Switch to Sleep Mode Normal Mode Sleep Mode EN Mode select window TXD td = 3.2µs NRES VCC Delay time sleep mode td_sleep = maximum 20µs LIN LIN switches directly to recessive mode 3.4.4 Fail-safe Mode The device automatically switches to Fail-safe Mode at system power up and the voltage regulator is switched on (see Figure 3-7 on page 16).The NRES output switches to low for tres = 4ms and gives a reset to the microcontroller. LIN communication is switched off. The IC stays in this mode until EN is switched to high. The IC then changes to Normal Mode. A power down of VBatt (VS < 4V) during Silent or Sleep Mode switches the IC into Fail-safe Mode. A low level at NRES switches into Fail-safe Mode directly. During Fail-safe Mode the TXD pin is an output and signals the last wake-up source. 3.4.5 Unpowered Mode If you connect battery voltage to the application circuit, the voltage at the VS pin increases according to the block capacitor (see Figure 3-7 on page 16). After VS is higher than the VS undervoltage threshold VSth, the IC mode changes from Unpowered Mode to Fail-safe Mode. The VCC output voltage reaches its nominal value after tVCC. This time, tVCC, depends on the VCC capacitor and the load. The NRES is low for the reset time delay treset. During this time, treset, no mode change is possible. 12 Atmel ATA6616/ATA6617 9132F–AUTO–02/12 Atmel ATA6616/ATA6617 Figure 3-6. LIN Wake-up from Sleep Mode Bus wake-up filtering time tbus Fail-safe Mode Normal Mode LIN bus RXD Low TXD VCC voltage regulator On state Off state Regulator wake-up time EN High EN Reset time NRES Microcontroller start-up time delay Watchdog Watchdog off Start watchdog lead time td 13 9132F–AUTO–02/12 3.5 3.5.1 Wake-up Scenarios from Silent or Sleep Mode Remote Wake-up via Dominant Bus State A voltage lower than the LIN Pre_Wake detection VLINL at the LIN pin activates the internal LIN receiver. A falling edge at the LIN pin followed by a dominant bus level VBUSdom maintained for a certain time period (> tBUS ) and followed by a rising edge at pin LIN result in a remote wake-up request. The device switches from Silent or Sleep Mode to Fail-safe Mode. The VCC voltage regulator is/remains activated, the INH pin is switched to high, and the remote wake-up request is indicated by a low level at the RXD pin to generate an interrupt for the microcontroller. A low level at the LIN pin in the Normal Mode starts the bus wake-up filtering time, and if the IC is switched to Silent or Sleep Mode, it will receive a wake-up after a positive edge at the LIN pin. 3.5.2 Local Wake-up via Pin WAKE A falling edge at the WAKE pin followed by a low level maintained for a certain time period (> tWAKE) results in a local wake-up request. The device switches to Fail-safe Mode. The local wake-up request is indicated by a low level at the RXD pin to generate an interrupt in the microcontroller and a strong pull down at TXD. When the WAKE pin is low, it is possible to switch to Silent or Sleep Mode via pin EN. In this case, the wake-up signal has to be switched to high > 10µs before the negative edge at WAKE starts a new local wake-up request. Local Wake-up via Pin KL_15 A positive edge at pin KL_15 followed by a high voltage level for a certain time period (> tKL_15) results in a local wake-up request. The device switches into the Fail-safe Mode. The extra long wake-up time ensures that no transients at KL_15 create a wake-up. The local wake-up request is indicated by a low level at the RXD pin to generate an interrupt for the microcontroller and a strong pull down at TXD. During high-level voltage at pin KL_15, it is possible to switch to Silent or Sleep Mode via pin EN. In this case, the wake-up signal has to be switched to low > 250µs before the positive edge at KL_15 starts a new local wake-up request. With external RC combination, the time is even longer. Wake-up Source Recognition The device can distinguish between a local wake-up request (Wake or KL_15 pins) and a remote wake-up request (via LIN bus). The wake-up source can be read on the TXD pin in Fail-safe Mode. A high level indicates a remote wake-up request (weak pull up at the TXD pin); a low level indicates a local wake-up request (strong pull down at the TXD pin). The wake-up request flag (signalled on the RXD pin) as well as the wake-up source flag (signalled on the TXD pin) is immediately reset if the microcontroller sets the EN pin to high (see Figure 3-3 on page 10 and Figure 3-4 on page 11) and the IC is in Normal Mode. The last wake-up source flag is stored and signalled in Fail-safe Mode at the TXD pin. 3.5.3 3.5.4 14 Atmel ATA6616/ATA6617 9132F–AUTO–02/12 Atmel ATA6616/ATA6617 3.5.5 Fail-safe Features • During a short-circuit at LIN to VBattery, the output limits the output current to IBUS_lim. Due to the power dissipation, the chip temperature exceeds TLINoff, and the LIN output is switched off. The chip cools down and after a hysteresis of Thys, switches the output on again. RXD stays on high because LIN is high. During LIN overtemperature switch-off, the VCC regulator works independently. • During a short-circuit from LIN to GND the IC can be switched into Sleep or Silent Mode. If the short-circuit disappears, the IC starts with a remote wake-up. • The reverse current is very low < 2µA at the LIN pin during loss of VBatt. This is optimal behavior for bus systems where some slave nodes are supplied from battery or ignition. • During a short circuit at VCC, the output limits the output current to IVCC_lin. Due to undervoltage, NRES switches to low and sends a reset to the microcontroller. The IC switches into Fail-safe Mode. If the chip temperature exceeds the value TVCCoff, the VCC output switches off. The chip cools down and after a hysteresis of Thys, switches the output on again. Because of the Fail-safe Mode, the VCC voltage will switch on again even though EN is switched off from the microcontroller. The microcontroller can start with its normal operation. • EN pin provides a pull-down resistor to force the transceiver into recessive mode if EN is disconnected. • RXD pin is set floating if VBatt is disconnected. • TXD pin provides a pull-up resistor to force the transceiver into recessive mode if TXD is disconnected. • If TXD is short-circuited to GND, it is possible to switch to Sleep Mode via ENABLE after tdom > 20ms. • If the WD_OSC pin has a short-circuit to GND and the NTRIG Signal has a period time > 27ms, the watchdog runs with an internal oscillator and guarantees a reset after the second NTRIG signal at the latest. • If the resistor at WO_OSC pin is disconnected, the watchdog runs with an internal oscillator and guarantees a reseet after the second NTRIG signal at the latest. 3.5.6 Voltage Regulator The voltage regulator needs an external capacitor for compensation and for smoothing the disturbances from the microcontroller. It is recommended to use an electrolythic capacitor with C ≥ 1.8µF and a ceramic capacitor with C = 100nF. The values of these capacitors can be varied by the customer, depending on the application. The main power dissipation of the IC is created from the VCC output current IVCC, which is needed for the application. In Figure 3-8 on page 16 the safe operating area of the Atmel® ATA6616/ATA6617 is shown. 15 9132F–AUTO–02/12 Figure 3-7. VS VCC Voltage Regulator: Ramp-up and Undervoltage Detection 12V 5.5V t VCC 5V Vthun tVCC NRES 5V tReset tres_f t t Figure 3-8. Power Dissipation: Safe Operating Area VCC Output Current versus Supply Voltage VS at Different Ambient Temperatures 90 80 70 Tamb = 100°C IVCC/mA 60 50 40 30 20 10 0 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 8 19 Tamb = 105°C Tamb = 110°C Tamb = 115°C VS/V For programming purposes of the microcontroller it is potentially necessary to supply the VCC output via an external power supply while the VS Pin of the system basis chip is disconnected. This will not affect the system basis chip. 16 Atmel ATA6616/ATA6617 9132F–AUTO–02/12 Atmel ATA6616/ATA6617 3.6 Watchdog The watchdog anticipates a trigger signal from the microcontroller at the NTRIG (negative edge) input within a time window of Twd. The trigger signal must exceed a minimum time ttrigmin > 200ns. If a triggering signal is not received, a reset signal will be generated at output NRES. After a watchdog reset, the IC starts with the lead time. The timing basis of the watchdog is provided by the internal oscillator. Its time period, Tosc, is adjustable via the external resistor Rwd_osc (34kΩ to 120kΩ). During Silent or Sleep Mode the watchdog is switched off to reduce current consumption. The minimum time for the first watchdog pulse is required after the undervoltage reset at NRES disappears. It is defined as lead time td. After wake up from Sleep or Silent Mode, the lead time td starts with the negative edge of the RXD output. 3.6.1 Typical Timing Sequence with RWD_OSC = 51kΩ The trigger signal Twd i s adjustable between 20ms and 64ms using the external resistor RWD_OSC. For example, with an external resistor of RWD_OSC = 51kΩ ±1%, the typical parameters of the watchdog are as follows: tosc = 0.405 × RWD_OSC – 0.0004 × (RWD_OSC)2 (RWD_OSC in kΩ; tosc in µs) tOSC = 19.6µs due to 51kΩ td = 7895 × 19.6µs = 155ms t1 = 1053 × 19.6µs = 20.6ms t2 = 1105 × 19.6µs = 21.6ms tnres = constant = 4 ms After ramping up the battery voltage, the 5V regulator is switched on. The reset output NRES stays low for the time treset (typically 4ms), then it switches to high, and the watchdog waits for the trigger sequence from the microcontroller. The lead time, t d , follows the reset and is td = 155ms. In this time, the first watchdog pulse from the microcontroller is required. If the trigger pulse NTRIG occurs during this time, the time t1 starts immediately. If no trigger signal occurs during the time td, a watchdog reset with tNRES = 4ms will reset the microcontroller after td = 155ms. The times t1 and t2 have a fixed relationship between each other. A triggering signal from the microcontroller is anticipated within the time frame of t2 = 21.6ms. To avoid false triggering from glitches, the trigger pulse must be longer than tTRIG,min > 200ns. This slope serves to restart the watchdog sequence. If the triggering signal fails in this open window t2, the NRES output will be drawn to ground. A triggering signal during the closed window t1 immediately switches NRES to low. 17 9132F–AUTO–02/12 Figure 3-9. Timing Sequence with RWD_OSC = 51kΩ VCC Undervoltage Reset NRES treset = 4ms Watchdog Reset tnres = 4ms td = 155ms t1 = 20.6ms twd t2 = 21ms t1 t2 NTRIG ttrig > 200ns 3.6.2 Worst Case Calculation with RWD_OSC = 51 kΩ The internal oscillator has a tolerance of 20%. This means that t1 and t2 can vary by 20%. The worst case calculation for the watchdog period twd is calculated below. The ideal watchdog time twd is between the maximum t1 and the minimum t1 plus the minimum t2. t1,min = 0.8 × t1 = 16.5ms, t1,max = 1.2 × t1 = 24.8ms t2,min = 0.8 × t2 = 17.3ms, t2,max = 1.2 × t2 = 26ms twdmax = t1min + t2min = 16.5ms + 17.3ms = 33.8ms twdmin = t1max = 24.8ms twd = 29.3ms ±4.5ms (±15%) A microcontroller with an oscillator tolerance of ±15% is sufficient to correctly supply the trigger inputs. Table 3-2. RWD_OSC kΩ 34 51 91 120 Typical Watchdog Timings Oscillator Period tosc/µs 13.3 19.61 33.54 42.84 Lead Time td/ms 105 154.8 264.80 338.22 Closed Window t1/ms 14.0 20.64 35.32 45.11 Open Window t2/ms 14.7 21.67 37.06 47.34 Trigger Period from Microcontroller twd/ms 19.9 29.32 50.14 64.05 Reset Time tnres/ms 4 4 4 4 18 Atmel ATA6616/ATA6617 9132F–AUTO–02/12 Atmel ATA6616/ATA6617 3.7 Absolute Maximum Ratings Stresses beyond those listed under “Absolute Maximum Ratings” may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or any other conditions beyond those indicated in the operational sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability. Parameters Supply voltage VS Pulse time ≤ 500ms; Ta = 25°C Output current IVCC ≤ 85mA Pulse time ≤ 2min; Ta = 25°C Output current IVCC ≤ 85mA WAKE (with 33kΩ serial resistor) KL_15 (with 47kΩ/100nF) DC voltage Transient voltage due to ISO7637 (coupling 1nF) INH - DC voltage LIN - DC voltage Logic pins (RxD, TxD, EN, NRES, NTRIG, WD_OSC, MODE, TM) Output current NRES PVCC DC voltage VCC DC voltage ESD according to IBEE LIN EMC Test Spec. 1.0 following IEC 61000-4-2 - Pin VS, LIN, KL_15 (47kΩ/100nF) to GND - Pin WAKE (33kΩ serial resistor) to GND ESD HBM following STM5.1 with 1.5kΩ 100pF - Pin VS, LIN, KL_15, WAKE to GND Junction temperature Storage temperature Tj Ts INRES –0.3 –0.3 Symbol VS VS VS –1 –150 Min. –0.3 Typ. Max. +40 +40 27 Unit V V V +40 +100 V V –0.3 –27 –0.3 VS + 0.3 +40 +5.5 +2 +5.5 +6.5 V V V mA V V ±6 ±5 ±6 –40 –55 +150 +150 KV KV KV °C °C 19 9132F–AUTO–02/12 3.8 No. 1 1.1 Electrical Characteristics Parameters VS Pin Nominal DC voltage range Sleep Mode VLIN > VS – 0.5V VS < 14V (Tj = 25°C) Sleep Mode VLIN > VS – 0.5V VS < 14V (Tj = 125°C) Bus recessive VS < 14V (Tj = 25°C) Without load at VCC Bus recessive VS < 14V (Tj = 125°C) Without load at VCC VS VS IVSsleep 5 27 V A Test Conditions Pin Symbol Min. Typ. Max. Unit Type* 5V < VS < 27V, –40°C < Tcase < 125°C, –40°C < Tj < 150°C, unless otherwise specified. All values refer to GND pins VS 3 10 14 µA B 1.2 Supply current in Sleep Mode VS IVSsleep 5 11 16 µA A VS IVSsi 47 57 67 µA B 1.3 Supply current in Silent Mode VS IVSsi 56 66 76 µA A 1.4 Bus recessive Supply current in Normal VS < 14V Mode Without load at VCC Bus dominant Supply current in Normal VS < 14V Mode VCC load current 50 mA Supply current in Fail-safe Mode VS undervoltage threshold VS undervoltage threshold hysteresis RXD Output Pin Low-level output sink current Normal Mode VLIN = 0V VRXD = 0.4V Bus recessive VS < 14V Without load at VCC VS IVSrec 0.3 0.8 mA A 1.5 VS IVSdom 50 53 mA A 1.6 VS IVSfail VSth VSth_hys 250 550 µA A 1.7 1.8 2 2.1 2.2 2.3 3 3.1 3.2 3.3 3.4 VS VS 3.7 4.4 0.2 5 V V A A RXD RXD RXD TXD TXD IRXD VRXDL RRXD VTXDL VTXDH RTXD ITXD 1.3 2.5 8 0.4 mA V kΩ V V kΩ µA A A A A A A A Low-level output voltage IRXD = 1mA Internal resistor to VCC TXD Input/Output Pin Low-level voltage input High-level voltage input Pull-up resistor High-level leakage current VTXD = 0V VTXD = VCC 3 –0.3 2 125 –3 5 7 +0.8 VCC + 0.3V TXD TXD 250 400 +3 3.5 Fail-safe Mode Low-level output sink VLIN = VS current at local wake-up VWAKE = 0V request VTXD = 0.4V TXD ITXDwake 2 2.5 8 mA A *) Type means: A = 100% tested, B = 100% correlation tested, C = Characterized on samples, D = Design parameter 20 Atmel ATA6616/ATA6617 9132F–AUTO–02/12 Atmel ATA6616/ATA6617 3.8 No. 4 4.1 4.2 4.3 4.4 5 5.1 5.2 5.3 5.4 6 6.1 6.2 6.3 7 7.1 7.2 7.3 Electrical Characteristics (Continued) Parameters EN Input Pin Low-level voltage input High-level voltage input Pull-down resistor Low-level input current Low-level voltage input High-level voltage input Pull-up resistor High-level leakage current Mode Input Pin Low-level voltage input High-level voltage input Leakage current INH Output Pin High-level voltage Switch-on resistance between VS and INH Leakage current Sleep Mode VINH = 0V/27V, VS = 27V IINH = –15mA INIT INIT INIT VINHH RINH IINHL –3 VS – 0.75 30 VS 50 +3 V Ω µA A A A VMODE = VCC or VMODE = 0V MODE MODE MODE VMODEL VMODEH IMODE –0.3 2 –3 +0.8 VCC + 0.3V +3 V V µA A A A VNTRIG = 0V VNTRIG = VCC VEN = VCC VEN = 0V EN EN EN EN NTRIG NTRIG NTRIG NTRIG VENL VENH REN IEN VNTRIGL VNTRIGH RNTRIG INTRIG –0.3 2 50 –3 –0.3 2 125 –3 250 125 +0.8 VCC + 0.3V 200 +3 +0.8 VCC + 0.3V 400 +3 V V kΩ µA V V kΩ µA A A A A A A A A Test Conditions Pin Symbol Min. Typ. Max. Unit Type* 5V < VS < 27V, –40°C < Tcase < 125°C, –40°C < Tj < 150°C, unless otherwise specified. All values refer to GND pins NTRIG Watchdog Input Pin 8 LIN Bus Driver: Bus Load Conditions: Load 1 (Small): 1nF, 1kΩ; Load 2 (Large): 10nF, 500Ω; RRXD = 5kΩ; CRXD = 20pF; Load 3 (Medium): 6.8 nF, 660Ω Characterized on Samples; 10.6 and 10.7 Specifies the Timing Parameters for Proper Operation at 20 Kbit/s, 10.8 and 10.9 at 10.4 Kbit/s. Driver recessive output voltage Driver dominant voltage Driver dominant voltage Driver dominant voltage Driver dominant voltage Pull-up resistor to VS Load1/Load2 VVS = 7V Rload = 500Ω VVS = 18V Rload = 500Ω VVS = 7.0V Rload = 1000Ω VVS = 18V Rload = 1000Ω The serial diode is mandatory LIN LIN LIN LIN LIN LIN LIN VBUSrec V_LoSUP V_HiSUP V_LoSUP_1k V_HiSUP_1k RLIN VSerDiode 0.6 0.8 20 0.4 30 60 1.0 0.9 × VS VS 1.2 2 V V V V V kΩ V A A A A A A D 8.1 8.2 8.3 8.4 8.5 8.6 8.7 Voltage drop at the serial In pull-up path with Rslave ISerDiode = 10mA diodes *) Type means: A = 100% tested, B = 100% correlation tested, C = Characterized on samples, D = Design parameter 21 9132F–AUTO–02/12 3.8 No. 8.8 Electrical Characteristics (Continued) Parameters LIN current limitation VBUS = VBatt_max Input leakage current at the receiver including pull-up resistor as specified Leakage current LIN recessive Input leakage current Driver off VBUS = 0V VBatt = 12V Driver off 8V < VBatt < 18V 8V < VBUS < 18V VBUS ≥ VBatt Test Conditions Pin LIN Symbol IBUS_LIM Min. 40 Typ. 120 Max. 200 Unit mA Type* A 5V < VS < 27V, –40°C < Tcase < 125°C, –40°C < Tj < 150°C, unless otherwise specified. All values refer to GND pins 8.9 LIN IBUS_PAS_dom –1 –0.35 mA A 8.10 LIN IBUS_PAS_rec 10 20 µA A 8.11 Leakage current when control unit disconnected from ground. GNDDevice = VS VBatt = 12V Loss of local ground 0V < VBUS < 18V must not affect communication in the residual network. Leakage current at a disconnected battery. Node has to sustain the VBatt disconnected current that can flow VSUP_Device = GND under this condition. Bus 0V < VBUS < 18V must remain operational under this condition. LIN Bus Receiver Center of receiver threshold VBUS_CNT = (Vth_dom + Vth_rec)/2 LIN IBUS_NO_gnd –10 +0.5 +10 µA A 8.12 LIN IBUS_NO_bat 0.1 2 µA A 9 9.1 9.2 9.3 9.4 9.5 9.6 10 10.1 LIN LIN LIN LIN LIN LIN VBUS_CNT VBUSdom VBUSrec VBUShys VLINH VLINL 0.475 × VS 0.6 × VS 0.028 × VS VS – 2V –27 0.5 × VS 0.525 × VS 0.4 × VS 0.175 × VS VS + 0.3V VS – 3.3V V V V A A A A A A Receiver dominant state VEN = 5V Receiver recessive state VEN = 5V Receiver input hysteresis Pre_Wake detection LIN High-level input voltage Pre_Wake detection LIN Activates the LIN receiver Low-level input voltage Internal Timers Dominant time for wake-up via LIN bus Time delay for mode change from Fail-safe into Normal Mode via EN pin VLIN = 0V Vhys = Vth_rec – Vth_dom 0.1 × VS V V V LIN tbus 30 90 150 µs A 10.2 VEN = 5V EN tnorm 5 15 20 µs A 10.3 Time delay for mode change from Normal V = 0V Mode to Sleep Mode via EN EN pin EN tsleep 2 7 12 µs A *) Type means: A = 100% tested, B = 100% correlation tested, C = Characterized on samples, D = Design parameter 22 Atmel ATA6616/ATA6617 9132F–AUTO–02/12 Atmel ATA6616/ATA6617 3.8 No. 10.4 Electrical Characteristics (Continued) Parameters TXD dominant time-out time Test Conditions VTXD = 0V Pin TXD Symbol tdom Min. 6 Typ. 13 Max. 20 Unit ms Type* A 5V < VS < 27V, –40°C < Tcase < 125°C, –40°C < Tj < 150°C, unless otherwise specified. All values refer to GND pins 10.5 Time delay for mode change from Silent V = 5V Mode into Normal Mode EN via EN THRec(max) = 0.744 × VS THDom(max) = 0.581 × VS VS = 7.0V to 18V tBit = 50µs D1 = tbus_rec(min)/(2 × tBit) THRec(min) = 0.422 × VS THDom(min) = 0.284 × VS VS = 7.6V to 18V tBit = 50µs D2 = tbus_rec(max)/(2 × tBit) THRec(max) = 0.778 × VS THDom(max) = 0.616 × VS VS = 7.0V to 18V tBit = 96µs D3 = tbus_rec(min)/(2 × tBit) THRec(min) = 0.389 × VS THDom(min) = 0.251 × VS VS = 7.6V to 18V tBit = 96µs D4 = tbus_rec(max)/(2 × tBit) VS = 7.0V to 18V EN ts_n 5 15 40 µs A 10.6 Duty cycle 1 LIN D1 0.396 A 10.7 Duty cycle 2 LIN D2 0.581 A 10.8 Duty cycle 3 LIN D3 0.417 A 10.9 Duty cycle 4 LIN D4 0.590 A 10.10 11 Slope time falling and rising edge at LIN LIN tSLOPE_fall tSLOPE_rise 3.5 22.5 µs A Receiver Electrical AC Parameters of the LIN Physical Layer LIN Receiver, RXD Load Conditions CRXD = 20pF Propagation delay of V = 7.0V to 18V receiver (Figure 3-10 on S trx_pd = max(trx_pdr , trx_pdf) page 26) Symmetry of receiver VS = 7.0V to 18V propagation delay rising =t –t t edge minus falling edge rx_sym rx_pdr rx_pdf NRES Open Drain Output Pin Low-level output voltage Low-level output low Undervoltage reset time VS ≥ 5.5V INRES = 1mA 10kΩ to 5V VCC = 0V VS ≥ 5.5V CNRES = 20pF NRES NRES NRES NRES VNRESL VNRESLL treset tres_f 2 1.5 4 0.14 0.14 6 10 V V ms µs A A A A RXD trx_pd 6 µs A 11.1 11.2 12 12.1 12.2 12.3 12.4 RXD trx_sym –2 +2 µs A Reset debounce time for VS ≥ 5.5V falling edge CNRES = 20pF *) Type means: A = 100% tested, B = 100% correlation tested, C = Characterized on samples, D = Design parameter 23 9132F–AUTO–02/12 3.8 No. 13 13.1 13.2 13.3 13.4 13.5 13.6 14 14.1 14.2 14.3 14.4 15 15.1 15.2 15.3 15.4 15.5 16 16.1 16.2 16.3 16.4 16.5 Electrical Characteristics (Continued) Parameters Watchdog Oscillator Voltage at WD_OSC in Normal Mode Possible values of resistor Oscillator period Oscillator period Oscillator period Oscillator period Watchdog lead time after reset Watchdog closed window Watchdog open window Watchdog reset time NRES KL_15 Pin High-level input voltage RV = 47 kΩ Low-level input voltage RV = 47 kΩ KL_15 pull-down current Internal debounce time KL_15 wake-up time WAKE Pin High-level input voltage Low-level input voltage WAKE pull-up current High-level leakage current Time of low pulse for wake-up via WAKE pin Initializes a wake-up signal VS < 27V VWAKE = 0V VS = 27V VWAKE = 27V VWAKE = 0V WAKE WAKE WAKE WAKE WAKE VWAKEH VWAKEL IWAKE IWAKEL IWAKEL VS – 1V –1 –30 –5 30 70 –10 +5 150 VS + 0.3V VS – 3.3V V V µA µA µs A A A A A VS < 27V VKL_15 = 27V Without external capacitor RV = 47kΩ, C = 100nF Positive edge initializes a wake-up KL_15 KL_15 KL_15 KL_15 KL_15 VKL_15H VKL_15L IKL_15 TdbKL_15 TwKL_15 80 0.4 4 –1 50 160 2 VS + 0.3V +2 65 250 4.5 V V µA µs ms A A A A C NRES ROSC = 34kΩ ROSC = 51kΩ ROSC = 91kΩ ROSC = 120kΩ IWD_OSC = –200µA VVS ≥ 4V WD_ OSC WD_ OSC VWD_OSC ROSC tOSC tOSC tOSC tOSC 1.13 34 10.65 15.68 26.83 34.2 13.3 19.6 33.5 42.8 1.23 1.33 120 15.97 23.52 40.24 51.4 V kΩ µs µs µs µs A A A A A A Test Conditions Pin Symbol Min. Typ. Max. Unit Type* 5V < VS < 27V, –40°C < Tcase < 125°C, –40°C < Tj < 150°C, unless otherwise specified. All values refer to GND pins Watchdog Timing Relative to tOSC td t1 t2 tnres 3.2 7895 1053 1105 4 4.8 cycles cycles cycles ms A A A A *) Type means: A = 100% tested, B = 100% correlation tested, C = Characterized on samples, D = Design parameter 24 Atmel ATA6616/ATA6617 9132F–AUTO–02/12 Atmel ATA6616/ATA6617 3.8 No. 17 Electrical Characteristics (Continued) Parameters Test Conditions 5.5V < VS < 18V (0mA to 50mA) 6V < VS < 18V (0mA to 85mA) 4V < VS < 5.5V VS > 4V IVCC = –20mA VS > 4V IVCC = –50mA VS > 3.3V IVCC = –15mA 5.5V < VS < 18V 5mA < IVCC < 50mA 10Hz to 100kHz CVCC = 10µF VS = 14V, IVCC = –15mA 0.2Ω < ESR < 5Ω at 100kHz for phase margin ≥ 60° ESR < 0.2Ω at 100kHz for phase margin ≥ 30° Referred to VCC VS > 5.5V Referred to VCC VS > 5.5V Pin Symbol Min. Typ. Max. Unit Type* 5V < VS < 27V, –40°C < Tcase < 125°C, –40°C < Tj < 150°C, unless otherwise specified. All values refer to GND pins VCC Voltage Regulator, PVCC = VCC VCC VCC VCC VS, VCC VS, VCC VS, VCC VCC VCC VCC VCC IVCClim VCCnor VCCnor VCClow VD1 VD2 VD3 VCCline VCCload 50 –240 –130 –85 0.1 0.1 400 4.9 4.9 VS – VD 5.1 5.1 5.1 250 600 200 0.2 0.5 V V V mV mV mV % % dB mA A C A A A A A A D A 17.1 Output voltage VCC 17.2 17.3 17.4 17.5 17.6 17.7 17.8 17.9 Output voltage VCC at low VS Regulator drop voltage Regulator drop voltage Regulator drop voltage Line regulation Load regulation Power supply ripple rejection Output current limitation VS > 5.5V 17.10 External load capacity VCC Cload 1.8 10 µF D 17.11 17.12 17.13 VCC undervoltage threshold Hysteresis of undervoltage threshold VCC VCC VCC VthunN Vhysthun tVCC 4.2 250 130 4.8 V mV A A A Ramp-up time VS > 5.5V CVCC = 2.2µF to VCC = 5V Iload = –5mA at VCC 300 µs *) Type means: A = 100% tested, B = 100% correlation tested, C = Characterized on samples, D = Design parameter 25 9132F–AUTO–02/12 Figure 3-10. Definition of Bus Timing Characteristics tBit TXD (Input to transmitting node) tBit tBit tBus_dom(max) tBus_rec(min) THRec(max) VS (Transceiver supply of transmitting node) THDom(max) LIN Bus Signal THRec(min) THDom(min) Thresholds of receiving node1 Thresholds of receiving node2 tBus_dom(min) tBus_rec(max) RXD (Output of receiving node1) trx_pdf(1) trx_pdr(1) RXD (Output of receiving node2) trx_pdr(2) trx_pdf(2) 26 Atmel ATA6616/ATA6617 9132F–AUTO–02/12 Atmel ATA6616/ATA6617 4. Atmel ATtiny87/ATtiny167 Microcontroller Block for Atmel ATA6616/ATA6617 4.1 Features • High Performance, Low Power AVR 8-bit Microcontroller • Advanced RISC Architecture – 123 Powerful Instructions – Most Single Clock Cycle Execution – 32 × 8 General Purpose Working Registers – Fully Static Operation • Non-volatile Program and Data Memories – 8 Kbytes/16 Kbytes of In-System Programmable (ISP) Program Memory Flash • Endurance: 10,000 Write/Erase Cycles – 512 Bytes In-System Programmable EEPROM • Endurance: 100,000 Write/Erase Cycles – 512 Bytes Internal SRAM – Programming Lock for Self-Programming Flash Program and EEPROM Data Security – Low Size LIN/UART Software In-System Programmable • Peripheral Features – LIN 2.1 and 1.3 Controller or 8-Bit UART – 8-bit Asynchronous Timer/Counter0: • 10-bit Clock Prescaler • 1 Output Compare or 8-bit PWM Channel – 16-bit Synchronous Timer/Counter1: • 10-bit Clock Prescaler • External Event Counter • 2 Output Compares Units or 16-bit PWM Channels each Driving up to 4 Ouput Pins – Master/Slave SPI Serial Interface, – Universal Serial Interface (USI) with Start Condition Detector (Master/Slave SPI, TWI, ...) – 10-bit ADC: • 11 Single Ended Channels • 8 Differential ADC Channel Pairs with Programmable Gain (8x or 20x) – On-chip Analog Comparator with Selectable Voltage Reference – 100µA ±10% Current Source (LIN Node Identification) – On-chip Temperature Sensor – Programmable Watchdog Timer with Separate On-chip Oscillator • Special Microcontroller Features – Dynamic Clock Switching (External/Internal RC/Watchdog Clock) for Power Control, EMC Reduction – DebugWIRE On-chip Debug (OCD) System – Hardware In-System Programmable (ISP) via SPI Port – External and Internal Interrupt Sources – Interrupt and Wake-up on Pin Change – Low Power Idle, ADC Noise Reduction, and Power-down Modes – Enhanced Power-on Reset Circuit – Programmable Brown-out Detection Circuit – Internal Calibrated RC Oscillator 8MHz – 4MHz to 16MHz and 32KHz Crystal/Ceramic Resonator Oscillators 27 9132F–AUTO–02/12 • • I/O and Packages – 16 Programmable I/O Lines – 20-pin SOIC, 32-pad QFN and 20-pin TSSOP • • Operating Voltage: – 2.7V to 5.5V for Atmel ATtiny87/ATtiny167 • • Speed Grade: – 0MHz to 8MHz at 2.7V to 5.5V (Automotive Temperature Range: –40°C to +125°C) – 0MHz to 16MHz at 4.5V to 5.5V (Automotive Temperature Range: –40°C to +125°C) 4.2 4.2.1 Description Comparison between Atmel ATtiny87 and Atmel ATtiny167 Atmel ATtiny87 and Atmel ATtiny167 are hardware and software compatible. They differ only in memory sizes as shown in Table 4-1. Table 4-1. Device ATtiny167 ATtiny87 Memory Size Summary Flash 16KBytes 8KBytes EEPROM 512Bytes 512Bytes SRAM 512Bytes 512Bytes Interrupt Vector size 2-instruction-words / vector 2-instruction-words / vector 4.2.2 Part Description The Atmel® ATtiny87/167 is a low-power CMOS 8-bit microcontroller based on the AVR® enhanced RISC architecture. By executing powerful instructions in a single clock cycle, the Atmel ATtiny87/167 achieves throughputs approaching 1 MIPS per MHz allowing the system designer to optimize power consumption versus processing speed. The AVR core combines a rich instruction set with 32 general purpose working registers. All the 32 registers are directly connected to the Arithmetic Logic Unit (ALU), allowing two independent registers to be accessed in one single instruction executed in one clock cycle. The resulting architecture is more code efficient while achieving throughputs up to ten times faster than conventional CISC microcontrollers. The Atmel ATtiny87/167 provides the following features: 8K/16K byte of In-System Programmable Flash, 512bytes EEPROM, 512bytes SRAM, 16 general purpose I/O lines, 32 general purpose working registers, one 8-bit Timer/Counter with compare modes, one 8-bit high speed Timer/Counter, Universal Serial Interface, a LIN controller, Internal and External Interrupts, a 11-channel, 10-bit ADC, a programmable Watchdog Timer with internal Oscillator, and three software selectable power saving modes. The Idle mode stops the CPU while allowing the SRAM, Timer/Counter, ADC, Analog Comparator, and Interrupt system to continue functioning. The Power-down mode saves the register contents, disabling all chip functions until the next Interrupt or Hardware Reset. The ADC Noise Reduction mode stops the CPU and all I/O modules except ADC, to minimize switching noise during ADC conversions. The device is manufactured using Atmel’s high density non-volatile memory technology. The On-chip ISP Flash allows the Program memory to be re-programmed In-System through an SPI serial interface, by a conventional non-volatile memory programmer or by an On-chip boot code running on the AVR core. The Boot program can use any interface to download the application program in the Flash memory. 28 Atmel ATA6616/ATA6617 9132F–AUTO–02/12 Atmel ATA6616/ATA6617 By combining an 8-bit RISC CPU with In-System Self-Programmable Flash on a monolithic chip, the Atmel® ATtiny87/167 is a powerful microcontroller that provides a highly flexible and cost effective solution to many embedded control applications. The Atmel ATtiny87/167 AVR® is supported with a full suite of program and system development tools including: C Compilers, Macro Assemblers, Program Debugger/Simulators, In-Circuit Emulators, and Evaluation kits. 4.2.3 Automotive Quality Grade The Atmel ATtiny87/167 have been developed and manufactured according to the most stringent requirements of the international standard ISO-TS-16949. This data sheet contains limit values extracted from the results of extensive characterization (temperature and voltage). The quality and reliability of the Atmel® ATtiny87/167 have been verified during regular product qualification as per AEC-Q100 grade 1. As indicated in the ordering information paragraph, this document refers only to grade 1 products, for grade 0 products refer to appendix A. Table 4-2. Temperature Grade Identification for Automotive Products Temperature Identifier Z D Comments Grade 1 Grade 0 Temperature -40°C / +125°C -40°C / +150°C 4.2.4 Disclaimer Typical values contained in this data sheet are based on simulations and characterization of other AVR microcontrollers manufactured on the same process technology. Min. and Max values will be available after the device is characterized. 29 9132F–AUTO–02/12 4.2.5 Block Diagram Figure 4-1. Block Diagram GND VCC Watchdog Timer Watchdog Oscillator Power Supervision POR / BOD & RESET debugWIRE PROGRAM LOGIC Oscillator Circuits / Clock Generation Flash SRAM CPU EEPROM AVCC AGND Timer/Counter-1 DATABUS Timer/Counter-0 A/D Conv. SPI & USI Analog Comp. 2 Internal Voltage References 11 PORT B (8) PORT A (8) LIN / UART RESET XTAL[1;2] PB[0..7] PA[0..7] 4.2.6 Resources A comprehensive set of development tools, application notes and datasheets are available for download on http://www.atmel.com/avr. 30 Atmel ATA6616/ATA6617 9132F–AUTO–02/12 Atmel ATA6616/ATA6617 4.2.7 About Code Examples This documentation contains simple code examples that briefly show how to use various parts of the device. These code examples assume that the part specific header file is included before compilation. Be aware that not all C compiler vendors include bit definitions in the header files and interrupt handling in C is compiler dependent. Please confirm with the C compiler documentation for more details. 4.3 4.3.1 AVR CPU Core Overview This section discusses the AVR® core architecture in general. The main function of the CPU core is to ensure correct program execution. The CPU must therefore be able to access memories, perform calculations, control peripherals, and handle interrupts. Figure 4-2. Block Diagram of the AVR Architecture Data Bus 8-bit Flash Program Memory Program Counter Status and Control Interrupt Unit 32 x 8 General Purpose Registrers Watchdog Timer Instruction Register Indirect Addressing Instruction Decoder A.D.C. Direct Addressing ALU Control Lines Analog Comparator I/O Module1 Data SRAM I/O Module 2 I/O Module n EEPROM I/O Lines 31 9132F–AUTO–02/12 In order to maximize performance and parallelism, the AVR® uses a Harvard architecture – with separate memories and buses for program and data. Instructions in the Program memory are executed with a single level pipelining. While one instruction is being executed, the next instruction is pre-fetched from the Program memory. This concept enables instructions to be executed in every clock cycle. The Program memory is In-System Reprogrammable Flash memory. The fast-access Register File contains 32 x 8-bit general purpose working registers with a single clock cycle access time. This allows single-cycle Arithmetic Logic Unit (ALU) operation. In a typical ALU operation, two operands are output from the Register File, the operation is executed, and the result is stored back in the Register File – in one clock cycle. Six of the 32 registers can be used as three 16-bit indirect address register pointers for Data Space addressing – enabling efficient address calculations. One of the these address pointers can also be used as an address pointer for look up tables in Flash Program memory. These added function registers are the 16-bit X-, Y-, and Z-register, described later in this section. The ALU supports arithmetic and logic operations between registers or between a constant and a register. Single register operations can also be executed in the ALU. After an arithmetic operation, the Status Register is updated to reflect information about the result of the operation. Program flow is provided by conditional and unconditional jump and call instructions, able to directly address the whole address space. Most AVR instructions have a single 16-bit word format. Every Program memory address contains a 16- or 32-bit instruction. During interrupts and subroutine calls, the return address Program Counter (PC) is stored on the Stack. The Stack is effectively allocated in the general data SRAM, and consequently the Stack size is only limited by the total SRAM size and the usage of the SRAM. All user programs must initialize the SP in the Reset routine (before subroutines or interrupts are executed). The Stack Pointer (SP) is read/write accessible in the I/O space. The data SRAM can easily be accessed through the five different addressing modes supported in the AVR architecture. The memory spaces in the AVR architecture are all linear and regular memory maps. A flexible interrupt module has its control registers in the I/O space with an additional Global Interrupt Enable bit in the Status Register. All interrupts have a separate Interrupt Vector in the Interrupt Vector table. The interrupts have priority in accordance with their Interrupt Vector position. The lower the Interrupt Vector address, the higher the priority. The I/O memory space contains 64 addresses for CPU peripheral functions as Control Registers, SPI, and other I/O functions. The I/O memory can be accessed directly, or as the Data Space locations following those of the Register File, 0x20 - 0x5F. 32 Atmel ATA6616/ATA6617 9132F–AUTO–02/12 Atmel ATA6616/ATA6617 4.3.2 ALU – Arithmetic Logic Unit The high-performance AVR® ALU operates in direct connection with all the 32 general purpose working registers. Within a single clock cycle, arithmetic operations between general purpose registers or between a register and an immediate are executed. The ALU operations are divided into three main categories – arithmetic, logical, and bit-functions. Some implementations of the architecture also provide a powerful multiplier supporting both signed/unsigned multiplication and fractional format. See the “Instruction Set” section for a detailed description. Status Register The Status Register contains information about the result of the most recently executed arithmetic instruction. This information can be used for altering program flow in order to perform conditional operations. Note that the Status Register is updated after all ALU operations, as specified in the Instruction Set Reference. This will in many cases remove the need for using the dedicated compare instructions, resulting in faster and more compact code. The Status Register is not automatically stored when entering an interrupt routine and restored when returning from an interrupt. This must be handled by software. 4.3.3.1 SREG – AVR Status Register The AVR Status Register – SREG – is defined as: Bit Read/Write Initial Value 7 I R/W 0 6 T R/W 0 5 H R/W 0 4 S R/W 0 3 V R/W 0 2 N R/W 0 1 Z R/W 0 0 C R/W 0 SREG 4.3.3 • Bit 7 – I: Global Interrupt Enable The Global Interrupt Enable bit must be set for the interrupts to be enabled. The individual interrupt enable control is then performed in separate control registers. If the Global Interrupt Enable Register is cleared, none of the interrupts are enabled independent of the individual interrupt enable settings. The I-bit is cleared by hardware after an interrupt has occurred, and is set by the RETI instruction to enable subsequent interrupts. The I-bit can also be set and cleared by the application with the SEI and CLI instructions, as described in the instruction set reference. • Bit 6 – T: Bit Copy Storage The Bit Copy instructions BLD (Bit LoaD) and BST (Bit STore) use the T-bit as source or destination for the operated bit. A bit from a register in the Register File can be copied into T by the BST instruction, and a bit in T can be copied into a bit in a register in the Register File by the BLD instruction. • Bit 5 – H: Half Carry Flag The Half Carry Flag H indicates a Half Carry in some arithmetic operations. Half Carry is useful in BCD arithmetic. See the “Instruction Set Description” for detailed information. • Bit 4 – S: Sign Bit, S = N ⊕V The S-bit is always an exclusive or between the Negative Flag N and the Two’s Complement Overflow Flag V. See the “Instruction Set Description” for detailed information. • Bit 3 – V: Two’s Complement Overflow Flag The Two’s Complement Overflow Flag V supports two’s complement arithmetics. See the “Instruction Set Description” for detailed information. 33 9132F–AUTO–02/12 • Bit 2 – N: Negative Flag The Negative Flag N indicates a negative result in an arithmetic or logic operation. See the “Instruction Set Description” for detailed information. • Bit 1 – Z: Zero Flag The Zero Flag Z indicates a zero result in an arithmetic or logic operation. See the “Instruction Set Description” for detailed information. • Bit 0 – C: Carry Flag The Carry Flag C indicates a carry in an arithmetic or logic operation. See the “Instruction Set Description” for detailed information. 4.3.4 General Purpose Register File The Register File is optimized for the AVR ® E nhanced RISC instruction set. In order to achieve the required performance and flexibility, the following input/output schemes are supported by the Register File: • One 8-bit output operand and one 8-bit result input • Two 8-bit output operands and one 8-bit result input • Two 8-bit output operands and one 16-bit result input • One 16-bit output operand and one 16-bit result input Figure 4-3 shows the structure of the 32 general purpose working registers in the CPU. Figure 4-3. AVR CPU General Purpose Working Registers 7 R0 R1 R2 … R13 General Purpose Working Registers R14 R15 R16 R17 … R26 R27 R28 R29 R30 R31 0x1A 0x1B 0x1C 0x1D 0x1E 0x1F X-register Low Byte X-register High Byte Y-register Low Byte Y-register High Byte Z-register Low Byte Z-register High Byte 0x0D 0x0E 0x0F 0x10 0x11 0 Addr. 0x00 0x01 0x02 Most of the instructions operating on the Register File have direct access to all registers, and most of them are single cycle instructions. As shown in Figure 4-3, each register is also assigned a Data memory address, mapping them directly into the first 32 locations of the user Data Space. Although not being physically implemented as SRAM locations, this memory organization provides great flexibility in access of the registers, as the X-, Y- and Z-pointer registers can be set to index any register in the file. 34 Atmel ATA6616/ATA6617 9132F–AUTO–02/12 Atmel ATA6616/ATA6617 4.3.4.1 The X-register, Y-register, and Z-register The registers R26..R31 have some added functions to their general purpose usage. These registers are 16-bit address pointers for indirect addressing of the data space. The three indirect address registers X, Y, and Z are defined as described in Figure 4-4 on page 35. Figure 4-4. The X-, Y-, and Z-registers 15 X-register 7 R27 (0x1B) 15 Y-register 7 R29 (0x1D) 15 Z-register 7 R31 (0x1F) ZH 0 7 R30 (0x1E) YH 0 7 R28 (0x1C) ZL 0 0 XH 0 7 R26 (0x1A) YL 0 0 XL 0 0 In the different addressing modes these address registers have functions as fixed displacement, automatic increment, and automatic decrement (see the instruction set reference for details). 4.3.5 Stack Pointer The Stack is mainly used for storing temporary data, for storing local variables and for storing return addresses after interrupts and subroutine calls. The Stack Pointer Register always points to the top of the Stack. Note that the Stack is implemented as growing from higher memory locations to lower memory locations. This implies that a Stack PUSH command decreases the Stack Pointer. The Stack Pointer points to the data SRAM Stack area where the Subroutine and Interrupt Stacks are located. This Stack space in the data SRAM must be defined by the program before any subroutine calls are executed or interrupts are enabled. The Stack Pointer must be set to point above 0x60. The Stack Pointer is decremented by one when data is pushed onto the Stack with the PUSH instruction, and it is decremented by two when the return address is pushed onto the Stack with subroutine call or interrupt. The Stack Pointer is incremented by one when data is popped from the Stack with the POP instruction, and it is incremented by two when data is popped from the Stack with return from subroutine RET or return from interrupt RETI. The AVR® Stack Pointer is implemented as two 8-bit registers in the I/O space. The number of bits actually used is implementation dependent. Note that the data space in some implementations of the AVR architecture is so small that only SPL is needed. In this case, the SPH Register will not be present 35 9132F–AUTO–02/12 4.3.5.1 SPH and SPL – Stack Pointer Register Bit 15 SP15 SP7 7 Read/Write R/W R/W Initial Value 14 SP14 SP6 6 R/W R/W 13 SP13 SP5 5 R/W R/W 12 SP12 SP4 4 R/W R/W 11 SP11 SP3 3 R/W R/W 10 SP10 SP2 2 R/W R/W 9 SP9 SP1 1 R/W R/W 8 SP8 SP0 0 R/W R/W SPH SPL ISRAM end (See Table 4-3 on page 39) 4.3.6 Instruction Execution Timing This section describes the general access timing concepts for instruction execution. The AVR® CPU is driven by the CPU clock clkCPU, directly generated from the selected clock source for the chip. No internal clock division is used. Figure 4-5 shows the parallel instruction fetches and instruction executions enabled by the Harvard architecture and the fast access Register File concept. This is the basic pipelining concept to obtain up to 1MIPS per MHz with the corresponding unique results for functions per cost, functions per clocks, and functions per power-unit. Figure 4-5. The Parallel Instruction Fetches and Instruction Executions T1 T2 T3 T4 clkCPU 1st Instruction Fetch 1st Instruction Execute 2nd Instruction Fetch 2nd Instruction Execute 3rd Instruction Fetch 3rd Instruction Execute 4th Instruction Fetch Figure 4-6 shows the internal timing concept for the Register File. In a single clock cycle an ALU operation using two register operands is executed, and the result is stored back to the destination register. Figure 4-6. Single Cycle ALU Operation T1 T2 T3 T4 clkCPU Total Execution Time Register Operands Fetch ALU Operation Execute Result Write Back 36 Atmel ATA6616/ATA6617 9132F–AUTO–02/12 Atmel ATA6616/ATA6617 4.3.7 Reset and Interrupt Handling The AVR® provides several different interrupt sources. These interrupts and the separate Reset Vector each have a separate Program Vector in the Program memory space. All interrupts are assigned individual enable bits which must be written logic one together with the Global Interrupt Enable bit in the Status Register in order to enable the interrupt. The lowest addresses in the Program memory space are by default defined as the Reset and Interrupt Vectors. The complete list of vectors is shown in Section 4.8 “Interrupts” on page 82. The list also determines the priority levels of the different interrupts. The lower the address the higher is the priority level. RESET has the highest priority, and next is INT0 – the External Interrupt Request 0. 4.3.7.1 Interrupt behavior When an interrupt occurs, the Global Interrupt Enable I-bit is cleared and all interrupts are disabled. The user software can write logic one to the I-bit to enable nested interrupts. All enabled interrupts can then interrupt the current interrupt routine. The I-bit is automatically set when a Return from Interrupt instruction – RETI – is executed. There are basically two types of interrupts. The first type is triggered by an event that sets the Interrupt Flag. For these interrupts, the Program Counter is vectored to the actual Interrupt Vector in order to execute the interrupt handling routine, and hardware clears the corresponding Interrupt Flag. Interrupt Flags can also be cleared by writing a logic one to the flag bit position(s) to be cleared. If an interrupt condition occurs while the corresponding interrupt enable bit is cleared, the Interrupt Flag will be set and remembered until the interrupt is enabled, or the flag is cleared by software. Similarly, if one or more interrupt conditions occur while the Global Interrupt Enable bit is cleared, the corresponding Interrupt Flag(s) will be set and remembered until the Global Interrupt Enable bit is set, and will then be executed by order of priority. The second type of interrupts will trigger as long as the interrupt condition is present. These interrupts do not necessarily have Interrupt Flags. If the interrupt condition disappears before the interrupt is enabled, the interrupt will not be triggered. When the AVR exits from an interrupt, it will always return to the main program and execute one more instruction before any pending interrupt is served. Note that the Status Register is not automatically stored when entering an interrupt routine, nor restored when returning from an interrupt routine. This must be handled by software. When using the CLI instruction to disable interrupts, the interrupts will be immediately disabled. No interrupt will be executed after the CLI instruction, even if it occurs simultaneously with the CLI instruction. The following example shows how this can be used to avoid interrupts during the timed EEPROM write sequence. 37 9132F–AUTO–02/12 Assembly Code Example in cli sbi sbi out r16, SREG EECR, EEMPE EECR, EEPE SREG, r16 ; restore SREG value (I-bit) ; store SREG value ; start EEPROM write ; disable interrupts during timed sequence C Code Example char cSREG; cSREG = SREG; /* store SREG value */ /* disable interrupts during timed sequence */ _CLI(); EECR |= (1
ATA6616_12 价格&库存

很抱歉,暂时无法提供与“ATA6616_12”相匹配的价格&库存,您可以联系我们找货

免费人工找货