Atmel AT90PWM2 Manual page 256

8-bit avr microcontroller with 8k bytes in-system programmable flash
Table of Contents

Advertisement

21.10.2
Amplifier 1Control and Status register – AMP1CSR
4317I–AVR–01/08
• Bit 7 – AMP0EN: Amplifier 0 Enable Bit
Set this bit to enable the Amplifier 0.
Clear this bit to disable the Amplifier 0.
Clearing this bit while a conversion is running will take effect at the end of the conversion.
Warning: Always clear AMP0TS1:0 when clearing AMP0EN.
• Bit 6– AMP0IS: Amplifier 0 Input Shunt
Set this bit to short-circuit the Amplifier 0 input.
Clear this bit to normally use the Amplifier 0.
• Bit 5, 4– AMP0G1, 0: Amplifier 0 Gain Selection Bits
These 2 bits determine the gain of the amplifier 0.
The different setting are shown in
Table 21-8.
Amplifier 0 Gain Selection
AMP0G1
AMP0G0
0
0
0
1
1
0
1
1
To ensure an accurate result, after the gain value has been changed, the amplifier input needs
to have a quite stable input value during at least 4 Amplifier synchronization clock periods.
• Bit 1, 0– AMP0TS1, AMP0TS0: Amplifier 0 Trigger Source Selection Bits
In accordance with the Table 21-9, these 2 bits select the event which will generate the trigger
for the amplifier 0. This trigger source is necessary to start the conversion on the amplified
channel.
Table 21-9.
AMP0 Auto Trigger Source Selection
AMP0TS1
AMP0TS0
0
0
0
1
1
0
1
1
Bit
7
AMP1EN
Read/Write
R/W
Initial Value
0
• Bit 7 – AMP1EN: Amplifier 1 Enable Bit
Set this bit to enable the Amplifier 1.
Clear this bit to disable the Amplifier 1.
Clearing this bit while a conversion is running will take effect at the end of the conversion.
Warning: Always clear AMP1TS1:0 when clearing AMP1EN.
• Bit 6– AMP1IS: Amplifier 1 Input Shunt
Table
21-8.
Description
Gain 5
Gain 10
Gain 20
Gain 40
Description
Auto synchronization on ADC Clock/8
Trig on PSC0ASY
Trig on PSC1ASY
Trig on PSC2ASY
6
5
4
AMP1IS
AMP1G1
AMP1G0
R/W
R/W
R/W
0
0
0
AT90PWM2/3/2B/3B
3
2
1
-
-
AMP1TS1
AMP1TS0
-
-
R/W
0
0
0
0
AMP1CSR
R/W
0
257

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the AT90PWM2 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

At90pwm3At90pwm2bAt90pwm3b

Table of Contents