Manual
Table Of Contents
- Features
- Pin Configurations
- Description
- Architectural Overview- General Purpose Register File
- ALU – Arithmetic Logic Unit
- In-System Programmable Flash Program Memory
- SRAM Data Memory
- Program and Data Addressing Modes- Register Direct, Single Register Rd
- Register Direct, Two Registers Rd and Rr
- I/O Direct
- Data Direct
- Data Indirect with Displacement
- Data Indirect
- Data Indirect with Pre- decrement
- Data Indirect with Post- increment
- Constant Addressing Using the LPM Instruction
- Indirect Program Addressing, IJMP and ICALL
- Relative Program Addressing, RJMP and RCALL
 
- EEPROM Data Memory
- Memory Access Times and Instruction Execution Timing
- I/O Memory
- Reset and Interrupt Handling- Reset Sources
- Power-on Reset
- External Reset
- Brown-out Detection
- Watchdog Reset
- MCU Status Register – MCUSR
- Interrupt Handling
- General Interrupt Mask Register – GIMSK
- General Interrupt Flag Register – GIFR
- Timer/Counter Interrupt Mask Register – TIMSK
- Timer/Counter Interrupt Flag Register – TIFR
- External Interrupts
- Interrupt Response Time
- MCU Control Register – MCUCR
 
- Sleep Modes
 
- Timer/Counters
- 16-bit Timer/Counter1
- Watchdog Timer
- EEPROM Read/Write Access
- Serial Peripheral Interface – SPI
- UART
- Analog Comparator
- Analog-to-Digital Converter
- I/O Ports
- Memory Programming
- Electrical Characteristics
- External Clock Drive Waveforms
- Typical Characteristics
- Register Summary
- Instruction Set Summary
- Ordering Information
- Packaging Information
- Errata for AT90S/LS4433 Rev. Rev. C/D/E/F
- Data Sheet ChangeLog for AT90S/LS4433
- Table of Contents

42
AT90S/LS4433
1042G–AVR–09/02
Note that in the PWM mode, the ten least significant OCR1 bits, when written, are trans-
ferred to a temporary location. They are latched when Timer/Counter1 reaches TOP.
This prevents the occurrence of odd-length PWM pulses (glitches) in the event of an
unsynchronized OCR1 write. See Figure 34 for an example.
Figure 34. Effects on Unsynchronized OCR1 Latching
During the time between the write and the latch operation, a read from OCR1 will read
the contents of the temporary location. This means that the most recently written value
always will read out of OCR1.
When OCR1 contains $0000 or TOP, the output OC1 is updated to low or high on the
next compare match according to the settings of COM11 and COM10. This is shown in
Table 15.
In PWM mode, the Timer Overflow Flag1 (TOV1) is set when the counter changes direc-
tion at $0000. Timer Overflow Interrupt1 operates exactly as in normal Timer/Counter
mode, i.e., it is executed when TOV1 is set, provided that Timer Overflow Interrupt1 and
global interrupts are enabled. This also applies to the Timer Output Compare1 Flag and
interrupt.
Table 14. Compare1 Mode Select in PWM Mode
COM11 COM10 Effect on OC1
0 0 Not connected
0 1 Not connected
10
Cleared on compare match, up-counting. Set on compare match, down-
counting (non-inverted PWM).
11
Cleared on compare match, down-counting. Set on compare match, up-
counting (inverted PWM).
Table 15. PWM Outputs OCR = $0000 or TOP
COM11 COM10 OCR1 Output OC1
1 0 $0000 L
10TOP H
1 1 $0000 H
11TOP L










