Atmel 7698AAUTO01-07, ATAVRAUTO200 User Manual

ATAVRAUTO200
..............................................................................................
User Guide
Table of Contents
Section 1
Introduction ........................................................................................... 1-1
Section 2
Using the ATAVRAUTO200.................................................................. 2-3
2.2 Power Supply ............................................................................................2-4
2.3 Oscillator Sources .....................................................................................2-4
2.4 On-board Resources.................................................................................2-4
2.5 In-System Programming ...........................................................................2-8
2.6 Debugging...............................................................................................2-11
Section 3
Technical Specifications ..................................................................... 3-13
Section 4
Technical Support............................................................................... 4-14
Section 5
Complete Schematics......................................................................... 5-17
ATAVRAUTO200 User Guide i
7698A–AUTO–01/07

Section 1

Introduction

Congratulations on your purchase of the ATAVRAUTO200 board. This board includes all elements necessary for designers to quickly develop code related to LIN communica­tion node implementing the ATmega88 and for prototyping and testing of new designs.

1.1 Overview

This document describes the ATAVRAUTO200 dedicated to the ATmega88 AVR micro controllers. This board is designed to allow an easy evaluation of the product using demonstration firmware.
To increase its demonstrative capabilities, this stand alone board has numerous on­board resources (motor relay, motor FET, hall sensor inputs, current measurements, power supply measurement, LIN, push buttons).
Figure 1-1. ATAVRAUTO200
ATAVRAUTO200 User Guide 1-1
7698A–AUTO–01/07
Introduction

1.2 ATAVRAUTO200 features

The ATAVRAUTO200 provides the following features:
ATmega88 QFN32
AVR Studio® software interface
(1)
,
Power supply
– Regulated 5V
– From LIN connector (LIN network power supply)
JTAG connector:
– for on-chip In Situ Programming (ISP)
– for on-chip debugging using JTAG ICE
DC Motor connector
– DC Motor power supply output
– Hall effect sensor(s) power supply and input(s)
Serial interface:
– 1 LIN interface 1.3 and 2.0 compliant (firmware library available on the ATMEL
website for LIN 1.3).
On-board resources:
– 1 LIN transceiver with internal regulator
– Relay for DC motor control
– Shunt Resistor for motor current measurement
– Speed/Position measurement Inputs
– Power supply measurement
System clock:
– Internal RC oscillator
Dimension: 45 mm x 45 mm
Note: The ATmega88 is supported by AVR Studio, version 4.12 or higher. For up-to-
date information on this and other AVR tool products, please consult our web site. The newest version of AVR Studio, AVR tools and this user guide can be found in the AVR section of the Atmel web site, http://www.atmel.com.
1-2 ATAVRAUTO200 User Guide
7698A–AUTO–01/07

2.1 Overview

AT
AV
LIN
Connector
Motor Relay
Hall
Motor
Current
ATmega88
ISP
LIN
Measurement
Connector
Connector
Sensor
Transceiver
Regulator
Connector
ATmega88
JTAG
Power supply Measurement
Lin Transceiver
Power supply
12 Vdc
from LIN
LIN
Network
DC Motor
Relay
Motor Shunt
Position sensor
Motor
Output
Motor ring
Hall sensor
ISP
ISP & Debugger
(AVR Studio)
ISP
(AVR Studio)

Section 2

Using the ATAVRAUTO200

Figure 2-1. Board Overview
Figure 2-2. Block Diagram
ATAVRAUTO200 User Guide 2-3
7698A–AUTO–01/07
Using the ATAVRAUTO200

2.2 Power Supply

The on-board power supply circuitry is supplied through the LIN connector.

2.2.1 LIN powered The LIN connector power line is used to provide VBAT to the ATAVRAUTO200 LIN

transceiver.
A LIN network has to be connected to have your LIN interface function (Input supply from 8 up to 18V DC, see Figure 2-3 on page 5) .

2.3 Oscillator Sources

The ATAVRAUTO200 board allows only one oscillator source:
Internal RC oscillator (Default configuration).
Note: The “Divide by 8” Fuse is configured by default. The first step in the demonstra-
tion application is to clear the prescaler to have the internal RC oscillator run­ning at 8MHz:
CLKPR = (1<<CLKPCE); //! Clear Prescaler
CLKPR = 0;

2.3.1 Interal RC oscillatorn

A LIN Slave node with a run-time oscillator calibration can be used with the internal RC oscillator.
At ambiant temperature and normal Vcc, the internal oscillator is precise enough to be compliant with LIN 1.3 and 2.0 specifications. For wider temperature and/or power ranges, a run-time calibration of the internal RC oscillator can be used as explained in the application note AVR140: “ATMega48/88/168 family run-time calibration of the inter­nal RC oscillator” available on the Atmel website.

2.4 On-board Resources

2.4.1 LIN & Power supply

The LIN screwed connector allows the user to select his own connector. Note: The LIN power supply input is reverse voltage protected.
LIN transceiver control is realized by the micrcontroller. All modes depend on microcon­troller’s ports configuration.
2-4 ATAVRAUTO200 User Guide
7698A–AUTO–01/07
Using the ATAVRAUTO200
+VBat
G
N
D
L
I
N
V
IN
3.55 V
AD C
1
×=
Table 2-1. LIN ressources
Function Port State Description
LIN_NSLP PD2 Low LIN transceiver in Sleep mode
High LIN transceiver in normal mode
NRES_LIN PC6 Low Perform MCU reset when NISP Jumper is inserted
High No Action
Figure 2-3. LIN transceiver and power supply
Note: The LIN transceiver undervoltage protection can be disabled by removing the
NISP jumper.
Note: The NISP jumper has to be removed when programming.

2.4.2 Power supply measurement

The voltage measurement is realized with a bridge of resistors. The read value is 0.281 of the LIN power supply (47 K/ (47 K+ 120 K)). Input voltage on channel 1 of the ADC is limited to 5.1V by a zener diode. This will give a voltage reading range from 0 to
18.1V with Vcc as reference.
The power supply measurement can be performed using the A/D converter. See the ATmega48/88/168 datasheet for how to use the ADC. The input voltage value (VIN) is calculated with the following expression:
Where: V
V
ADC7
IN
= Input voltage value (V)
= Voltage value on ADC-1 input (V)
ATAVRAUTO200 User Guide 2-5
7698A–AUTO–01/07
Loading...
+ 14 hidden pages