AT90LS8535-4PC Atmel, AT90LS8535-4PC Datasheet - Page 46
![IC MCU 8K FLSH 4MHZ A/D LV 40DIP](/photos/6/70/67049/453-40-dip_sml.jpg)
AT90LS8535-4PC
Manufacturer Part Number
AT90LS8535-4PC
Description
IC MCU 8K FLSH 4MHZ A/D LV 40DIP
Manufacturer
Atmel
Series
AVR® 90LSr
Specifications of AT90LS8535-4PC
Core Processor
AVR
Core Size
8-Bit
Speed
4MHz
Connectivity
SPI, UART/USART
Peripherals
Brown-out Detect/Reset, POR, PWM, WDT
Number Of I /o
32
Program Memory Size
8KB (4K x 16)
Program Memory Type
FLASH
Eeprom Size
512 x 8
Ram Size
512 x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 6 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
0°C ~ 70°C
Package / Case
40-DIP (0.600", 15.24mm)
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
AT90LS8535-4PC
Manufacturer:
NS
Quantity:
6 229
Asynchronous Status
Register – ASSR
46
AT90S/LS8535
Table 20. PWM Outputs OCR2 = $00 or $FF
In PWM mode, the Timer Overflow Flag (TOV2) is set when the counter advances from
$00. Timer Overflow Interrupt2 operates exactly as in normal Timer/Counter mode, i.e.,
it is executed when TOV2 is set, provided that Timer Overflow Interrupt and global inter-
rupts are enabled. This also applies to the Timer Output Compare flag and interrupt.
The frequency of the PWM will be Timer Clock Frequency divided by 510.
• Bit 7..4 – Res: Reserved Bits
These bits are reserved bits in the AT90S8535 and always read as zero.
• Bit 3 – AS2: Asynchronous Timer/Counter2
When AS2 is set (one), Timer/Counter2 is clocked from the TOSC1 pin. Pins PC6 and
PC7 become connected to a crystal oscillator and cannot be used as general I/O pins.
When cleared (zero), Timer/Counter2 is clocked from the internal system clock, CK.
When the value of this bit is changed, the contents of TCNT2, OCR2 and TCCR2 might
get corrupted.
• Bit 2 – TCN2UB: Timer/Counter2 Update Busy
When Timer/Counter2 operates asynchronously and TCNT2 is written, this bit becomes
set (one). When TCNT2 has been updated from the temporary storage register, this bit
is cleared (zero) by hardware. A logical “0” in this bit indicates that TCNT2 is ready to be
updated with a new value.
• Bit 1 – OCR2UB: Output Compare Register2 Update Busy
When Timer/Counter2 operates asynchronously and OCR2 is written, this bit becomes
set (one). When OCR2 has been updated from the temporary storage register, this bit is
cleared (zero) by hardware. A logical “0” in this bit indicates that OCR2 is ready to be
updated with a new value.
• Bit 0 – TCR2UB: Timer/Counter Control Register2 Update Busy
When Timer/Counter2 operates asynchronously and TCCR2 is written, this bit becomes
set (one). When TCCR2 has been updated from the temporary storage register, this bit
is cleared (zero) by hardware. A logical “0” in this bit indicates that TCCR2 is ready to be
updated with a new value.
If a write is performed to any of the three Timer/Counter2 registers while its Update Busy
flag is set (one), the updated value might get corrupted and cause an unintentional inter-
rupt to occur.
The mechanisms for reading TCNT2, OCR2 and TCCR2 are different. When reading
TCNT2, the actual timer value is read. When reading OCR2 or TCCR2, the value in the
temporary storage register is read.
Bit
$22 ($22)
Read/Write
Initial Value
COM21
1
1
1
R
7
–
0
R
6
–
0
COM20
0
1
1
R
5
–
0
4
–
R
0
OCR2
AS2
R/W
$FF
$FF
$00
3
0
TCN2UB
R
2
0
OCR2UB
R
1
0
Output PWM2
TCR2UB
H
H
L
R
0
0
1041H–11/01
ASSR