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 #56 background imageLoading...
Page #56 background image
56
ATtiny15L
1187H–AVR–09/07
High-voltage Serial
Programming Algorithm
To program and verify the ATtiny15L in the High-voltage Serial Programming mode, the
following sequence is recommended (See instruction formats in Table 25):
1. Power-up sequence:
Apply 4.5 - 5.5V between V
CC
and GND. Set PB5 and PB0 to “0” and wait at least
30 µs.
Set PB3 to “0”. Wait at least 100 ns.
Apply 12V to PB5 and wait at least 100 ns before changing PB0. Wait 8 µs
before giving any instructions.
2. The Flash array is programmed one byte at a time by supplying first the address,
then the low and high data byte. The write instruction is self-timed; wait until the
PB2 (RDY/BSY
) pin goes high.
3. The EEPROM array is programmed one byte at a time by supplying first the
address, then the data byte. The write instruction is self-timed; wait until the PB2
(RDY/BSY
) pin goes high.
4. Any memory location can be verified by using the Read instruction, which
returns the contents at the selected address at serial output PB2.
5. Power-off sequence:
Set PB3 to “0”.
Set PB5 to “0”.
Turn V
CC
power off.
When writing or reading serial data to the ATtiny15L, data is clocked on the eigth rising
edge of the 16 external clock pulses needed to generate the internal clock. See Figure
31, Figure 32, and Table 26 for an explanation.
Figure 31. High-voltage Serial Programming Waveforms
MSB
MSB
MSB LSB
LSB
LSB
012345678910
SERIAL DATA INPUT
PB0
SERIAL INSTR. INPUT
PB1
SERIAL DATA OUTPUT
PB2
INTERNAL CK
SERIAL CLOCK INPUT
PB3
16x

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