Atmel STK502 manual 1.2 PF10 Switch, ATmega169

Page 18

Using the STK502 Top Module

 

2.7.1.1 AREF Switch

The switch named AREF selects the input to the AREF-pin on the ATmega169.

 

Figure 2-18. AREF Switch

From

STK500

AREF

AVR

AREF

STK502 VREF

STK502

Voltage refernce

for the sensor

 

AREF

Switch

Positions:

￿ AREF: In this position the AREF from the STK500 is connected to the AREF pin on

 

the ATmega169. This is the default position.

 

￿ VREF: In this position the VREF from the 1.263V voltage reference on the STK502 is

 

connected to the AREF pin on the ATmega169. Select this position in order to run the

 

code in Application Note “AVR064: STK502 – A Temperature Monitoring System with

 

LCD Output”

2.7.1.2 PF[1:0] Switch

The PF[1:0] switch selects the input to the PF1 and PF0 pins (ADC channel 1/0) on the

 

ATmega169.

 

Figure 2-19.PF[1:0] Switch

PORTF0

Sensor

pin 1

PORTF1

Sensor

pin 2

PF[1:0]

Switch

AVR

PF0 (ADC0)

PF1 (ADC1)

Positions:

￿PIN: In this position the PF0 and PF1 are from the PORTF on the STK502 are connected to the PF0 and PF1 on the ATmega169. Default position.

￿Sensor: In this position the pin 1 from the screw-terminal on the STK502 are connected to PF0 on the ATmega169, and the pin 2 from the screw-terminal are connected to PF1 on the ATmega169. Select this position in order to run the code in Application Note “AVR064: STK502 – A Temperature Monitoring System with LCD output”

In the sensor position both PF0 and PF1 are connected to the senor pins, regardless of using single ended or differential ADC-measurements in the application. This means that it's not possible to use PF1 as an ordinary I/O-port even though only PF0 (single ended) is used with the ADC.

2-12

STK502 User Guide

2528A–AVR–11/02

Image 18
Contents STK502 User Guide Page Table of Contents Technical Support Section Introduction STK502 Top Module for STK500Features Supports the ATmega169 with Built-in LCD ControllerPlacing an Section Using the STK502 Top ModuleConnecting the STK502 to the STK500 Starter Kit ATmega169 onConnectors Are not duplicated on the STK502STK502 must be used 2.1 PG0 PG5 2.2Programming the ATmega169 In-SystemProgramming High-voltage High-voltage Parallel ProgrammingJtag Connector Configuration STK502-PCB or in Complete SchematicsLCD Display 11.Pin out for LCD Headers On the Display12.Jumper to connect COL1 to COL2 AVR Sensor 1.2 PF10 Switch ATmega169Section Troubleshooting Guide Troubleshooting GuideTroubleshooting Guide Operating Conditions Section Technical SpecificationsSystem Unit LCD-displayLayout for the STK502 LCD-display Number Three STK502 LCD Bit MappingsNumber Two Number FourNumber Seven Number SixBit Mappings for LCD Alphanumeric Digit Number Six Bit Mappings for LCD Alphanumeric Digit Number SevenSection Technical Support Technical Support Section Complete Schematics Schematics, 1 Schematics FigureSchematics Assembly Drawing, 1 Complete Schematics Atmel Headquarters