Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
CodeVision AVR 1.25.7, user manual.pdf
Скачиваний:
236
Добавлен:
12.08.2013
Размер:
1.22 Mб
Скачать

CodeVisionAVR

5.13 Setting the I2C Bus

By selecting the I2C tab of the CodeWizardAVR, you can specify the I2C bus configuration.

Using the I2C Port list box you can specify which port is used for the implementation of the I2C bus. The SDA Bit and SCL Bit list boxes allow you to specify which port bits the I2C bus uses.

© 1998-2007 HP InfoTech S.R.L.

Page 204

CodeVisionAVR

5.13.1 Setting the LM75 devices

If you use the LM75 temperature sensor, you must select the LM75 tab and check the LM75 Enabled check box.

The LM75 Address list box allows you to specify the 3 lower bits of the I2C addresses of the LM75 devices connected to the bus. Maximum 8 LM75 devices can be used.

The Output Active High check box specifies the active state of the LM75 O.S. output.

The Hyst., respectively O.S. , spinedit boxes specify the hysterezis, respectively O.S. temperatures.

The LM75 devices are accessed through the National Semiconductor LM75 Temperature Sensor Functions.

© 1998-2007 HP InfoTech S.R.L.

Page 205

CodeVisionAVR

5.13.2 Setting the DS1621 devices

If you use the DS1621 thermometer/thermostat, you must select the DS1621 tab and check the

DS1621 Enabled check box.

The Output Active High check box specifies the active state of the DS1621 Tout output.

The Low, respectively High, spinedit boxes specify the low, respectively high temperatures trigger temperatures for the Tout output.

The DS1621 devices are accessed through the Maxim/Dallas Semiconductor DS1621 Thermometer/Thermostat functions.

© 1998-2007 HP InfoTech S.R.L.

Page 206

CodeVisionAVR

5.13.3 Setting the PCF8563 devices

If you use the PCF8563 RTC, you must select the PCF8563 tab and check the PCF8563 Enabled check box.

The CLKOUT list box specifies the frequency of the pulses on the CLKOUT output.

The Alarm Interrupt check box enables the generation of interrupts, on the INT pin, when the alarm conditions are met.

The Timer|Clock list box specifies the countdown frequency of the PCF8563 Timer.

If the Int. Enabled check box is checked, an interrupt will be generated when the Timer countdown value will be 0.

If the INT Pulses check box is checked, the INT pin will issue short pulses when the Timer countdown value reaches 0.

The Timer|Value spinedit box specifies the Timer reload value when the countdown reaches 0.

The PCF8563 devices are accessed through the Philips PCF8563 Real Time Clock Functions.

© 1998-2007 HP InfoTech S.R.L.

Page 207