EasyManua.ls Logo

Atmel AVR ATtiny15L User Manual

Atmel AVR ATtiny15L
85 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #60 background imageLoading...
Page #60 background image
60
ATtiny15L
1187H–AVR–09/07
The device is clocked from the internal clock at the uncalibrated minimum frequency
(0.8 - 1.6 MHz). The minimum low and high periods for the serial clock (SCK) input are
defined as follows:
Low: > 2 MCU clock cycles
High: > 2 MCU clock cycles
Low-voltage Serial
Programming Algorithm
When writing serial data to the ATtiny15L, data is clocked on the rising edge of SCK.
When reading data from the ATtiny15L, data is clocked on the falling edge of SCK. See
Figure 34, Figure 35, and Table 28 for timing details. To program and verify the
ATtiny15L in the Serial Programming mode, the following sequence is recommended
(See 4-byte instruction formats in Table 27):
1. Power-up sequence:
Apply power between V
CC
and GND while RESET and SCK are set to “0”. If the pro-
grammer cannot guarantee that SCK is held low during Power-up, RESET
must be
given a positive pulse of at least two MCU cycles duration after SCK has been set to
“0”.
2. Wait for at least 20 ms and enable serial programming by sending the Program-
ming Enable serial instruction to the MOSI (PB0) pin. Refer to the above section
for minimum low and high periods for the serial clock input SCK.
3. The serial programming instructions will not work if the communication is out of
synchronization. When in sync, the second byte ($53) will echo back when issu-
ing the third byte of the Programming Enable instruction. Whether the echo is
correct or not, all four bytes of the instruction must be transmitted. If the $53 did
not echo back, give SCK a positive pulse and issue a new Programming Enable
instruction. If the $53 is not seen within 32 attempts, there is no functional device
connected.
4. If a Chip Erase is performed (must be done to erase the Flash), wait t
WD_ERASE
after the instruction, give RESET
a positive pulse, and start over from step 2.
See Table 29 on page 63 for t
WD_ERASE
value.
5. The Flash or EEPROM array is programmed one byte at a time by supplying the
address and data together with the appropriate write instruction. An EEPROM
memory location is first automatically erased before new data is written. Use
data polling to detect when the next byte in the Flash or EEPROM can be written.
If polling is not used, wait t
WD_PROG_FL
or t
WD_PROG_EE
, respectively, before trans-
mitting the next instruction. See Table 30 on page 63 for the t
WD_PROG_FL
and
t
WD_PROG_EE
values. In an erased device, no $FFs in the data file(s) need to be
programmed.
6. Any memory location can be verified by using the Read instruction, which
returns the content at the selected address at the serial output MISO (PB1) pin.
7. At the end of the programming session, RESET
can be set high to commence
normal operation.
8. Power-off sequence (if needed):
Set RESET
to “1”.
Turn V
CC
power off.

Table of Contents

Other manuals for Atmel AVR ATtiny15L

Question and Answer IconNeed help?

Do you have a question about the Atmel AVR ATtiny15L and is the answer not in the manual?

Atmel AVR ATtiny15L Specifications

General IconGeneral
Architecture8-bit AVR
Flash Memory1 KB
SRAM64 Bytes
I/O Pins6
ADC Channels4
Temperature Range-40°C to +85°C
Operating Voltage2.7V - 6.0V
Timers1 x 8-bit
Package8-pin PDIP, SOIC

Summary

Features

Non-volatile Program and Data Memories

1K Byte Flash Program Memory and 64 Bytes EEPROM.

Description

Block Diagram

Pin Descriptions

ATtiny15L Architectural Overview

The General Purpose Register File

Details the 32 general purpose working registers and their access.

The ALU - Arithmetic Logic Unit

Explains the Arithmetic Logic Unit's operation and integration.

The Flash Program Memory

Describes the 1K byte Flash memory, its organization and endurance.

Reset and Interrupt Handling

Interrupt Handling

External Interrupt

Pin Change Interrupt

The MCU Control Register – MCUCR

Sleep Modes

Defines Idle, ADC Noise Reduction, and Power-down modes.

Tuneable Internal RC Oscillator

Timer/Counters

The Timer/Counter0 Prescaler

Details prescaler options for Timer/Counter0.

The Timer/Counter1 Prescaler

Details prescaler options for Timer/Counter1.

The 8-bit Timer/Counter0

Explains Timer/Counter0 operation, clock sources, and control.

The 8-bit Timer/Counter1

Describes Timer/Counter1, including PWM capabilities.

The Watchdog Timer

EEPROM Read/Write Access

Preventing EEPROM Corruption

Techniques to avoid data corruption during low voltage or reset.

The Analog Comparator

The Analog-to-Digital Converter, Analog Multiplexer, and Gain Stages

I/O Port B

Memory Programming

Electrical Characteristics

Absolute Maximum Ratings

Specifies limits beyond which damage may occur.

Typical Characteristics

ATtiny15L Register Summary

ATtiny15L Instruction Set Summary

Ordering Information

Packaging Information

Related product manuals