STM8 FLASH编程手册

STM8 FLASH编程手册
STM8 FLASH编程手册

June 2011Doc ID 14614 Rev 31/27

PM0051

Programming manual

How to program STM8S and STM8A Flash program memory and data EEPROM

Introduction

This manual describes how to program Flash program memory and data EEPROM on

STM8 microcontrollers. It applies to access and performance line STM8S and medium and high density STM8A devices. It is intended to provide information to the programming tool manufacturers and to the customers who want to implement programming by themselves on their production line.

The in-circuit programming (ICP) method is used to update the content of Flash program memory and data EEPROM while the user software is not running. It uses the Single wire interface module (SWIM) to communicate between the programming tool and the device.In contrast to the ICP method, in-application programming (IAP) can use any

communication interface supported by the microcontroller (I/Os, SPI, USART , I 2C, USB, CAN...). IAP has been implemented for users who want their application software to update itself by re-programming the Flash program memory during program execution. The main advantage of IAP is its ability to re-program Flash program memory and data EEPROM when the chip has already been soldered on the application board and while the user

software is running. Nevertheless, part of the Flash program memory has to be previously programmed using ICP .

Some devices also contain a bootloader embedded in a ROM memory. Through this firmware the device memory can be re-programmed using a standard communication interface. This programming method is not described in this document.

For details on memory implementation and features, registers or stack top addresses, refer to the product datasheets.

Related documents

●STM8 SWIM communication protocol and debug module (UM0470)●STM8 bootloader user manual (UM0560)l

●STM8S and STM8A microcontroller families reference manual (RM0016)

●Basic in-application programming example using the STM8 I 2C and SPI peripherals (AN2737)

●STM8 in-application programming example (AN2659)

●Performance line datasheet (high density Flash program and data EEPROM)●Access line datasheets (low and medium density Flash program and data EEPROM)●

STM8A datasheets (up to 32 Kbytes and up to 128Kbytes of Flash program memory)

https://www.360docs.net/doc/ba13146705.html,

Contents PM0051

Contents

1Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

2Memory organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

2.1Low density STM8S microcontrollers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

2.2Medium density STM8S microcontrollers . . . . . . . . . . . . . . . . . . . . . . . . . . 7

2.3High density STM8S microcontrollers . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

2.4Medium density STM8A microcontrollers . . . . . . . . . . . . . . . . . . . . . . . . . 10

2.5High density STM8A microcontrollers . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

3Memory protection strategy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

3.1Readout protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

3.2User Boot Code area protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

3.3Unwanted memory access protection . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

4Programming STM8 Flash microcontrollers . . . . . . . . . . . . . . . . . . . . . 16

4.1Unlocking the Memory Access Security System (MASS) . . . . . . . . . . . . 16

4.2Block programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

4.3Word programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

4.4Byte programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

4.5Programming the option bytes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

4.5.1Summary of memory dedicated option bytes . . . . . . . . . . . . . . . . . . . . 22

4.5.2How to program the option bytes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

4.6Memory access versus programming method . . . . . . . . . . . . . . . . . . . . . 23

4.6.1ICP methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

4.6.2IAP method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 5Flash program memory and data EEPROM comparison . . . . . . . . . . . 25 6Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

2/27Doc ID 14614 Rev 3

PM0051List of tables List of tables

Table 1.Low density STM8S memory partition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Table 2.Medium density STM8S memory partition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Table 3.High density STM8S memory partition. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Table 4.Medium density STM8A memory partition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Table 5.High density STM8A memory partition. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Table 6.Recommended minimum and maximum sizes of the UBC area . . . . . . . . . . . . . . . . . . . . 15 Table 7.MASS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Table 8.Memory access versus programming method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 Table https://www.360docs.net/doc/ba13146705.html,parison between STM8S and STM8A devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 Table 10.Document revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

Doc ID 14614 Rev 33/27

Glossary PM0051 1 Glossary

This section gives a brief definition of acronyms and terms used in this document:

●Block

A block is a set of bytes that can be programmed or erased in one single programming

operation. Operations that are available on a block are fast programming, erase only,

and standard programming (which includes an erase operation). Refer to Section2:

Memory organization for details on block size according to the device.

●Bootloader

The bootloader is an IAP application embedded in the system memory of the device. It

is used to erase and program the device using a standard serial communication port.

The bootloader is not available on small devices, and is not described in the present

document. Refer to STM8 bootloader user manual (UM0500) for more details.

●Driver

A driver is a control program defined by the application developer. It is used to manage

the allocation of system resources to start application programs. In this document two

drivers are described, ICP and IAP drivers.

●In-application programming (IAP)

IAP is the ability to re-program the Flash program memory and data EEPROM (DAT A)

of a microcontroller while the device is already plugged-in to the application and the

application is running.

●In-circuit programming (ICP)

ICP is the ability to program the Flash program memory and data EEPROM of a

microcontroller using the SWIM protocol while the device is plugged-in to the

application.

●In-circuit debugging (ICD)

ICD is the ability to debug the user software using the SWIM protocol. The user has the

ability to connect the device to a debugger and insert breakpoints in his firmware.

Debugging may be intrusive (application patched to allow debugging) or non intrusive

(using a debug module).

●Memory access security system (MASS) keys

The Memory access security system (MASS) consists of a memory write protection

lock designed to prevent unwanted memory modifications due to EMS or program

counter loss. To unlock the memory protection, one or more keys must be written in a

dedicated register and in a specific order. When the operation (write or erase) is

completed, the MASS must be activated again to provide good memory security.

4/27 Doc ID 14614 Rev 3

PM0051Glossary

●Page

A page is a set of blocks. The number of blocks in a page may differ from one device to

another. Refer to Section2: Memory organization for details on page size according to

the device.

A dedicated option byte can be used to configure by increments of one page the size of

the user boot code. Refer to Section5: Flash program memory and data EEPROM

comparison for a description of available areas and option bytes according to the

devices.

●Read-while-write (RWW)

The RWW feature provides the ability for the software to perform write operation on

data EEPROM while reading and executing the program memory. Execution time is

therefore optimized. The opposite operation is not allowed: the software cannot read

data memory while writing program memory.

The RWW feature is not available on all STM8 devices. Refer to Table9 for information

on devices with RWW capability.

●Single wire interface module (SWIM)

The SWIM is a communication protocol managed by hardware in the STM8

microcontrollers. The SWIM main purpose is to provide non intrusive debug capability.

It can also be used to download programs into RAM and execute them. It can also write

(registers or RAM) or read any part of the memory space and jump to any memory

address. The SWIM protocol is used for ICP. It is accessed by providing a specific

sequence on the SWIM pin either during the reset phase or when the device is running

(if allowed by the application).

●System memory

The STM8 system memory is a small ROM accessible when the user software is

executed. It contains the bootloader. The system ROM and the bootloader are not

available on all STM8 devices.

●User boot code area (UBC)

The user boot code area is a write-protected area which contains reset vector, interrupt

vectors, and IAP routine for the device to be able to recover from interrupted or

erroneous IAP programming.

●User mode

The user mode is the standard user software running mode in the STM8. It is entered

either by performing a power-on-reset on the device or by issuing the SWIM SRST

command from a development tool.

●Word

A word is a set of 4 bytes and corresponds to the memory granularity.

Doc ID 14614 Rev 35/27

Memory organization PM0051

6/27 Doc ID 14614 Rev 3

2 Memory organization

This section describes the memory organization corresponding to:

●Access line and performance line STM8S microcontrollers ●

Medium and high density STM8A microcontrollers

STM8S microcontrollers offer low density (8Kbytes), medium density (from 16 to

32Kbytes) and high density (from 32 to 128Kbytes) Flash program memory, plus data EEPROM.

STM8A microcontrollers feature medium density (from 8 to 32Kbytes) and high density (from 32 to 128Kbytes) Flash memory, plus data EEPROM.

The memory organization differs from one STM8 family to another. Refer to Section 2.1, Section 2.2, Section 2.3, Section 2.4, and Section 2.3 for a description of the memory organization according to microcontroller family and memory density.

A memory accelerator takes advantage of the parallel 4-byte storage, which corresponds to a word. The Flash program memory and data EEPROM can be erased and programmed at byte level, word level or block level. In word programming mode, 4 bytes can be

programmed/erased during the same cycle, while in block programming mode, a whole block is programmed/erase during the same cycle. Refer to Section 2.1, Section 2.2, Section 2.3, Section 2.4, and Section 2.3 for information on block size according to the devices.

2.1 Low density STM8S microcontrollers

The memory array is divided into two areas:

8Kbytes of Flash program memory organized in 128 pages or blocks of 64 bytes each. The Flash program memory is divided into 2 areas, the user boot code area (UBC), which size can be configured by option byte, and the main program memory area. The Flash program memory is mapped in the upper part of the STM8S addressing space and includes the reset and interrupt vectors.

640 bytes of data EEPROM (DATA) organized in 10 pages or blocks of 64bytes each. One block (64bytes) contains the option bytes of which 11 are used to configure the device hardware features. The options bytes can be programmed in user, IAP and ICP/SWIM modes.

Refer to T able 1 for a detailed description of the memory partition for low density STM8S microcontrollers.

PM0051Memory organization

Doc ID 14614 Rev 37/27

2.2 Medium density STM8S microcontrollers

The memory is divided into two arrays:

From 16 to 32Kbytes of Flash program memory organized in up to 64 pages of 4

blocks of 128 bytes each. The Flash program memory is divided into 2 areas, the user boot code area (UBC), which size can be configured by option byte, and the main

program memory area. The Flash program memory is mapped in the upper part of the STM8S addressing space and includes the reset and interrupt vectors.

1Kbytes of data EEPROM (DATA) organized in up to 2 pages of 4 blocks of 128bytes each. One block (128 bytes) contains the option bytes of which 13 are used to

configure the device hardware features. The options bytes can be programmed in user, IAP and ICP/SWIM modes.

Refer to T able 2 for a detailed description of the memory partition for medium density STM8S microcontrollers.

Table 1.

Low density STM8S memory partition

Area

Page number (1 page=1 block)

Block number (1 block=64bytes)

Address Data EEPROM

000x004000-0x00403F 1

10x004040-0x00407F 220x004080-0x0040BF

(9)

9

0x004240-0x00427F Option bytes -0 (one block only)

0x004800-0x00483F Flash program memory

000x008000-0x00803F 1

10x008040-0x00807F 220x008080-0x0080BF

(127)

127

0x009FC0-0x009FFF

Memory organization PM0051

8/27 Doc ID 14614 Rev 3

Table 2.

Medium density STM8S memory partition (1)

Area

Page number (1 page=4 blocks)Block number (1 block=128bytes)

Address Data EEPROM 0

00x004000-0x00407F 1

0x004080-0x0040FF 20x004100-0x00417F 3

0x004180-0x0041FF 1

4-7

0x004200-0x0043FF Option bytes -

0 (one block only)

0x004800-0x00487F Flash program memory

00x008000-0x00807F 1

0x008080-0x0080FF 20x008100-0x00817F 3

0x008180-0x0081FF 14-70x008200-0x0083FF

...

(63)

2520x00FE00-0x00FE7F 253

0x00FE80-0x00FEFF 2540x00FF00-0x00FF7F 255

0x00FF80-0x00FFFF

1.The memory mapping is given for the devices featuring 32Kbytes of Flash program memory.

PM0051Memory organization

Doc ID 14614 Rev 39/27

2.3 High density STM8S microcontrollers

The memory is divided into two arrays:

From 32 to 128Kbytes of Flash program memory organized in up to 256 pages of 4 blocks of 128 bytes each. The Flash program memory is divided into 2 areas, the user boot code area (UBC), which size can be configured by option byte, and the main

program memory area. The Flash program memory is mapped in the upper part of the STM8S addressing space and includes the reset and interrupt vectors.

From 1 to 2Kbytes of data EEPROM (DATA) organized in up to 4 pages of 4 blocks of 128bytes each. The size of the DATA area is fixed for a given microcontroller. One block (128bytes) contains the option bytes of which 15 are used to configure the device hardware features. The options bytes can be programmed in user, IAP and ICP/SWIM modes.

Refer to T able 3 for a detailed description of the memory partition for high density STM8S microcontrollers.

Table 3.

High density STM8S memory partition (1)

Area

Page number (1 page=4 blocks)Block number (1 block=128bytes)

Address Data EEPROM

00x004000-0x00407F 1

0x004080-0x0040FF 2

0x004100-0x00417F 30x004180-0x0041FF 1 4 to 70x004200-0x0043FF 28 to 110x004400-0x0045FF 3

12 to 150x004600-0x0047FF Option bytes

-

0 (one block only)

0x004800-0x00487F

Memory organization PM0051

10/27 Doc ID 14614 Rev 3

2.4 Medium density STM8A microcontrollers

The memory is divided into two arrays:

From 8 to 32Kbytes of Flash program memory organized in up to 64 pages of 4 blocks of 128 bytes each. The Flash program memory is divided into 2 areas, the user boot code area (UBC), which size can be configured by option byte, and the main program memory area. The Flash program memory is mapped in the upper part of the STM8A addressing space and includes the reset and interrupt vectors.

From 384 bytes to 1Kbytes of data EEPROM (DATA) organized in up to 2 pages of 4 blocks of 128bytes each. One block (128 bytes) contains the option bytes of which 13 are used to configure the device hardware features. The options bytes can be programmed in user, IAP and ICP/SWIM modes.

Refer to T able 4 for a detailed description of the memory partition for medium density STM8A microcontrollers.

Flash program memory

00x008000-0x00807F 1

0x008080-0x0080FF 20x008100-0x00817F 3

0x008180-0x0081FF 1

4 to 70x00 8200-0x00 83FF 28 to 110x00 8400-0x00 85FF

...

(255)

10200x00 27E00-0x00 27E7F 1021

0x00 27E80-0x00 27EFF 10220x00 27F00-0x00 27F7F 1023

0x00 27F80-0x00 27FFF

1.The memory mapping is given for the devices featuring 128Kbytes of Flash program memory and 2Kbytes of data

EEPROM.

Table 3.

High density STM8S memory partition (1) (continued)

Area

Page number (1 page=4 blocks)

Block number (1 block=128bytes)

Address

PM0051Memory organization

Doc ID 14614 Rev 311/27

Table 4.

Medium density STM8A memory partition (1)

Area

Page number (1 page=4 blocks)Block number (1 block=128bytes)

Address Data EEPROM 0

00x004000-0x00407F 1

0x004080-0x0040FF 20x004100-0x00417F 3

0x004180-0x0041FF 1

4-7

0x004200-0x0043FF Option bytes -

0 (one block only)

0x004800-0x00487F Flash program memory

00x008000-0x00807F 1

0x008080-0x0080FF 20x008100-0x00817F 3

0x008180-0x0081FF 14-70x008200-0x0083FF

...

(63)

2520x00FE00-0x00FE7F 253

0x00FE80-0x00FEFF 2540x00FF00-0x00FF7F 255

0x00FF80-0x00FFFF

1.The memory mapping is given for the devices featuring 32Kbytes of Flash program memory.

Memory organization PM0051

12/27 Doc ID 14614 Rev 3

2.5 High density STM8A microcontrollers

The memory is divided into two arrays:

From 32 to 128Kbytes of Flash program memory organized in up to 256 pages of 4 blocks of 128 bytes each. The Flash program memory is divided into 2 areas, the user boot code area (UBC), which size can be configured by option byte, and the main

program memory area. The Flash program memory is mapped in the upper part of the STM8A addressing space and includes the reset and interrupt vectors.

From 1 to 2Kbytes of data EEPROM (DATA) organized in up to 4 pages of 4 blocks of 128bytes each. The size of the DATA area is fixed for a given microcontroller. One block (128bytes) contains the option bytes of which 15 are used to configure the device hardware features. The options bytes can be programmed in user, IAP and ICP/SWIM modes.

Refer to T able 5 for a detailed description of the memory partition for high density STM8A microcontrollers.

Table 5.

High density STM8A memory partition (1)

Area

Page number (1 page=4 blocks)Block number (1 block=128bytes)

Address Data EEPROM

00x004000-0x00407F 1

0x004080-0x0040FF 2

0x004100-0x00417F 30x004180-0x0041FF 1 4 to 70x004200-0x0043FF 28 to 110x004400-0x0045FF 3

12 to 150x004600-0x0047FF Option bytes

-

0 (one block only)

0x004800-0x00487F

PM0051Memory organization

Doc ID 14614 Rev 313/27

Flash program memory

00x008000-0x00807F 1

0x008080-0x0080FF 20x008100-0x00817F 3

0x008180-0x0081FF 1

4 to 70x00 8200-0x00 83FF 28 to 110x00 8400-0x00 85FF

...

(255)

10200x00 27E00-0x00 27E7F 1021

0x00 27E80-0x00 27EFF 10220x00 27F00-0x00 27F7F 1023

0x00 27F80-0x00 27FFF

1.The memory mapping is given for the devices featuring 128Kbytes of Flash program memory and 2Kbytes of data

EEPROM.

Table 5.

High density STM8A memory partition (1) (continued)

Area

Page number (1 page=4 blocks)

Block number (1 block=128bytes)

Address

3 Memory protection strategy

The STM8 devices feature several mechanisms allowing to protect the content of the Flash

program and data EEPROM areas:

●Readout protection

The software can prevent application code and data stored in the Flash program

memory and data EEPROM from being read and modified in ICP/SWIM mode. The

readout protection is enabled and disabled by programming an option byte in

ICP/SWIM mode. Refer to Section3.1 for details.

●User boot code area (UBC)

In order to guaranty the capability to recover from an interrupted or erroneous IAP

programming, all STM8 devices provide a write-protected area called user boot code

(UBC). This area is a part of the Flash program memory which cannot be modified in

user mode (that is protected against modification by the user software). The content of

the UBC area can be modified only in ICP/SWIM mode after clearing the UBC option

byte.

The size of the user boot code area can be configured through an option byte by

increments of one page.

Refer to Section3.2 for details on user boot code area.

●Unwanted memory access protection

All STM8 devices offer unwanted memory access protection, which purpose is to

prevent unintentional modification of program memory and data EEPROM (for example

due to a firmware bug or EMC disturbance).

This protection consists of authorizing write access to the memory only through a

specific software sequence which is unlikely to happen randomly or by mistake. Access

to Flash program and data EEPROM areas is enabled by writing MASS keys into key

registers.

Refer to Section3.3 for details on unwanted memory access protection.

protection

3.1 Readout

The readout protection is enabled by writing 0xAA in the ROP option byte. It is disabled by

reprogramming the ROP option byte with any value except for 0xAA and resetting the

device.

The readout protection can only be disabled in ICP/SWIM mode.

When the readout protection is selected, reading or modifying the Flash program memory in

ICP mode (using the SWIM interface) is forbidden. When available, the data EEPROM

memory is also protected against read and write access through ICP.

Erasing the ROP option byte to disable the readout protection causes the Flash program

memory, the DATA area and the option bytes to be erased.

Even though no protection can be considered as totally unbreakable, the readout protection

feature provides a very high level of protection for general purpose microcontrollers. Of

course, a software that allows the user to dump the Flash program memory content make

this readout protection useless. Table8 describes possible accesses to each memory areas

versus the different modes and readout protection settings.

14/27 Doc ID 14614 Rev 3

Doc ID 14614 Rev 3

15/27

3.2 User Boot Code area protection

Whatever the memory content, it is always possible to restart an ICP session after a critical error by applying a reset and restarting the SWIM communication.

On the contrary, during IAP sessions, the programming software driver must always be write protected to be able to recover from any critical failure that might happen during programming (such as power failure).

The pages where the IAP driver is implemented must be located in the write-protected boot code area (UBC). The application reset and interrupt vectors and the reset routine must also be stored in the UBC. These conditions allow the user software to manage the recovery from potential critical failure by applying a reset and restarting the IAP routine from the protected boot area.

The UBC size is defined by the user boot code (UBC) area option byte. This option byte may slightly differ from one product to another. See the following table for the minimum and maximum size of the UBC area. Its maximum size is equal to the full memory size

3.3 Unwanted memory access protection

The unwanted memory access protection consists of writing two 8-bit keys in the right order into dedicated MASS key registers.

Writing the correct sequence of keys in the program memory MASS key register

(FLASH_PUKR) enables the programming of the program memory area excluding the UBC. If wrong keys are provided, a reset must to be generated to be able to reprogram the right keys.

Once the write memory protection has been removed, it is possible to reactivate the protection of the area by resetting the PUL bit in FLASH_IAPSR.

To enable write access to the data EEPROM area, another specific MASS key register (FLASH_DUKR) and a different key sequence must be used. Once the data

EEPROM/option byte area is unlocked, it is possible to reactivate the protection of the area by resetting the DUL bit in FLASH_IAPSR.

If wrong keys have been provided to the FLASH_PUKR register, the device must be reset before performing a new key program sequence. However, when wrong keys are provided to the FLASH_DUKR register, new keys can be entered without the device being previously reset.

In order to be as effective as possible, the application software must lock again the

unwanted memory access protection as soon as the programming is completed. Otherwise, the protection level of the MASS is significantly reduced. To activate the MASS protection again, the user must reset the corresponding bits in the FLASH_IAPSR register (DUL bit for data EEPROM or PUL bit for Flash program memory).

Table 6.Recommended minimum and maximum sizes of the UBC area

STM8 microcontroller family

Recommended minimum size

of the UBC area

Maximum size of the UBC area

Low density STM8S

2 pages = 128bytes Full memory size Medium density STM8S and STM8A 2 pages = 1Kbyte

Full memory size

High density STM8S and STM8A

16/27 Doc ID 14614 Rev 3

Note:

1The mechanism to lock and unlock unwanted memory access protection is identical for option bytes and data EEPROM (see Ta ble 7: MASS ).

2

Before starting programming program memory or data EEPROM, the software must verify that the area is not write protected by checking that the PUL or DUL bit is effectively set.

4 Programming STM8 Flash microcontrollers

This section describes how to program STM8 single-voltage Flash microcontrollers.

4.1 Unlocking the Memory Access Security System (MASS)

The memory must be unlocked before attempting to perform any erase or write operation. To unlock it, follow the procedure described in Section 3.3: Unwanted memory access protection , and Table 7.

The software must poll the PUL and DUL bit, before attempting to write to program memory and data EEPROM, respectively.

4.2 Block programming

Block write operations allow to program an entire block in one shot, thus minimizing the

programming time.

There are three possible block programming modes: erase, write only (also called fast programming) and combined erase/write cycle (also called standard block programming).

Table 7.

MASS

Microcontroller

family

Data EEPROM and option bytes Program memory

Unlock Lock Unlock Lock STM8S and STM8A

Write 0xAE then

56h in FLASH_DUKR (0x00 5064)(1)(2)

1.The OPT and NOPT bits of FLASH_CR2 and FLASH_NCR2 registers must be set/cleared to enable

access to the option bytes.2.If wrong keys have been entered, another key programming sequence can be issued without resetting the

device.Reset bit 3 (DUL) in FLASH_IAPSR (0x00 505F)

Write 0x56 then

0xAE in FLASH_PUKR (0x00 5062)(3)

3.If wrong keys have been entered, the device must be reset, and a key program sequence issued.

Reset bit 1 (PUL) in FLASH_IAPSR (0x00 505F)

The programming mode is selected through two complementary registers, FLASH_CR2 and

FLASH_NCR2.

The memory must be unlocked before performing any of these operations.

Block program operations can be performed both to main program memory and DATA area:

●Programming a block of main program memory:

The block program operation has to be executed totally from RAM.

The program execution continues from RAM. If the program goes back to main program

memory, it is stalled until the block program operation is complete.

●Programming a block of data EEPROM with RWW capability:

The block program operation can be executed from main program memory. However

the data loading phase has to be executed from RAM (see below).

Normal program execution can continue from main program memory, after checking

the HVOFF bit in the FLASH_IAPSR register.

●Programming a block of data EEPROM on devices without RWW capability:

The block program operation must be executed totally from RAM.

The programming can also be performed directly through the SWIM interface. In this case, it

is recommended to stall the device in order to prevent the core from accessing the Flash

program memory during the block program or erase operation. This can be done by setting

the STALL bit in the DM_CSR2 debug module register. Refer to the STM8 SWIM

communication protocol and debug module (UM0470) for more information.

Caution:During a block program or erase operation, it is recommended to avoid executing instructions performing a read access to program memory.

Caution:If the number of written memory locations is higher than what is required in the block program/erase sequence, the additional locations are handled as redundant byte write

operations.

If the number of written memory locations is lower than what is specified in the block

program/erase sequence, the block program/erase process does not start and the CPU

stalls waiting for the remaining operations to be performed.

Caution:EOP and WR_PG_DIS bits of FLASH_IAPSR register are automatically cleared when a program/erase operation starts.

Caution:If a block program or erase sequence is interrupted by a reset, the data programmed in the memory may be corrupted.

Doc ID 14614 Rev 317/27

Standard block programming

The following sequence is required to perform a standard block program sequence (block

erased and programmed):

1.Unlock the memory if not already done.

The UBC option byte can be read to check if the block to program is not in the UBC

area. If necessary, reprogram it to allow erasing and programming the targeted block.

2. Write 0x01 in FLASH_CR2 (PRG bit active), and 0xFE in FLASH_NCR2 (NPRG bit

active).

3. Write all the data bytes of the block you want to program starting with the very first

address of the block. No read or write access to the program memory is allowed during

these load operations as they might corrupt the values to be programmed.

The programming cycle starts automatically when all the data in the block have been

written.

4. Check the WR_PG_DIS bit in FLASH_IAPSR to verify if the block you attempted to

program was not write protected (optional)

5. For devices with RWW capability, poll the HVOFF bit in FLASH_IAPSR register for the

start of program operation (high voltage mode). HVOFF is reset when the program

operation starts, thus indicating that the memory is ready for RWW.

6. To check if the program operation is complete, poll the EOP bit in FLASH_IAPSR from

program memory. EOP is set to ‘1’ when the standard block program operation has

completed. To avoid polling the EOP bit, an interrupt can be generated when EOP is

set.

Note:It is mandatory to execute steps 2 to 5 from RAM.

Caution:EOP and WR_PG_DIS bits are cleared by reading the FLASH_IAPSR register. It is consequently strongly recommended to perform one single read operation to the

FLASH_IAPSR register to check the values of these bits.

Caution:FLASH_CR2 and FLASH_NCR2 must be written consecutively to be taken into account. If only one register is set, both are forced to their reset values, causing the program operation

to be performed at byte level.

18/27 Doc ID 14614 Rev 3

Fast block programming operation

The following sequence is required to perform a fast block program sequence (block

programmed without previous erase):

1.Unlock the memory if not already done.

The UBC option byte can be read to check if the block to program is not in the UBC

area. If necessary, reprogram it to allow programming the targeted block.

2. Write 0x10 in FLASH_CR2 (FPRG bit active), and 0xEF in FLASH_NCR2 (NFPRG bit

active).

3. Write all the data bytes of the block you want to program starting with the very first

address of the block. No read or write access to the program memory is allowed during

these load operations as they might corrupt the values to be programmed.

The programming cycle starts automatically when the complete block has been written.

4. Check the WR_PG_DIS bit in FLASH_IAPSR to verify if the block you attempted to

program was not write protected (optional).

5. For devices with RWW capability, poll the HVOFF bit in FLASH_IAPSR register for the

start of program operation (high voltage mode). HVOFF is reset when the program

operation starts, thus indicating that the memory is ready for RWW.

6. To check if the program operation is complete, poll the EOP bit in FLASH_IAPSR from

program memory. EOP is set to ‘1’ when the block program operation has completed.

To avoid polling the EOP bit, an interrupt can be generated when EOP is set.

Note:It is mandatory to execute steps 2 to 5 from RAM.

Caution:FLASH_CR2 and FLASH_NCR2 must be written consecutively to be taken into account. If only one register is set, both are forced to their reset values, causing the program operation

to be performed at byte level.

Caution:EOP and WR_PG_DIS bits are cleared by reading the FLASH_IAPSR register. It is consequently strongly recommended to perform one single read operation to the

FLASH_IAPSR register to check the values of these bits.

Caution:The memory block must be empty when performing a fast block programming operation.

Doc ID 14614 Rev 319/27

Block erase operation

The following sequence is required to perform a block erase sequence:

1.Unlock the memory if not already done.

The UBC option byte can be read to check if the block to erase is not in the UBC area.

If necessary, reprogram it to allow erasing the targeted block.

2. Write 0x20 in FLASH_CR2 (ERASE bit active), and 0xDF in FLASH_NCR2 (NERASE

bit active).

3. Write '0x00 00 00 00' to any word inside the block to be erased using a LOAD

instruction.

4. Check the WR_PG_DIS bit in FLASH_IAPSR to verify if the block you attempted to

erase was not write protected (optional).

5. For devices with RWW capability, poll the HVOFF bit in FLASH_IAPSR register for the

start of erase operation (high voltage mode). HVOFF is reset when the erase operation

starts, thus indicating that the memory is ready for RWW.

6. To check if the erase operation is complete, poll the EOP bit in FLASH_IAPSR from

program memory. EOP is set to ‘1’ when the block erase operation has completed. To

avoid polling the EOP bit, an interrupt can be generated when EOP is set.

Note:It is mandatory to execute steps 2 to 5 from RAM.

Caution:EOP and WR_PG_DIS bits are cleared by reading the FLASH_IAPSR register. It is consequently strongly recommended to perform one single read operation to the

FLASH_IAPSR register to check the values of these bits.

Caution:FLASH_CR2 and FLASH_NCR2 must be written consecutively to be taken into account. If only one register is set, both are forced to their reset values, causing the erase operation to

be performed at byte level.

programming

4.3 Word

Both main program memory and data EEPROM can be programmed and erased at word

level. Word operations are performed in the same way as block operations. They can be

executed either from program memory or from RAM.

When a new word program operation starts, EOP and WR_PG_DIS bits of FLASH_IAPSR

register are automatically cleared.

Contrary to word programming of the Flash program memory, the word programming of data

EEPROM with RWW feature (when available) does not stop program execution. The EOP

bit can then be used to know if the previous operation has completed. This bit is

automatically reset when reading FLASH_IAPSR.

20/27 Doc ID 14614 Rev 3

PS教程实例1000例

https://www.360docs.net/doc/ba13146705.html,/thread-446934-1-1.html Photoshop绘制逼真头发发丝效果 https://www.360docs.net/doc/ba13146705.html,/thread-446912-1-1.html Photoshop合成在空中漂移的陆地 https://www.360docs.net/doc/ba13146705.html,/thread-446909-1-1.html Photoshop制作漂亮的紫色水晶字效果 https://www.360docs.net/doc/ba13146705.html,/thread-446908-1-1.html Photoshop打造梦想效果的背景字教程 https://www.360docs.net/doc/ba13146705.html,/thread-446900-1-1.html Photoshop简单制作灯光下的黄金字 https://www.360docs.net/doc/ba13146705.html,/thread-446907-1-1.html Photoshop制作菊花照片马赛克效果 https://www.360docs.net/doc/ba13146705.html,/thread-446889-1-1.html Photoshop转手绘教程:给玄彬照片转手绘https://www.360docs.net/doc/ba13146705.html,/thread-446745-1-1.html Photoshop调出男性外景颓废黄调 https://www.360docs.net/doc/ba13146705.html,/thread-446740-1-1.html Photoshop调色美女模特青褐色效果 https://www.360docs.net/doc/ba13146705.html,/thread-446737-1-1.html Photoshop使用通道给儿童照去除雀斑 https://www.360docs.net/doc/ba13146705.html,/thread-446559-1-1.html Photoshop制作唯美效果的风景照 https://www.360docs.net/doc/ba13146705.html,/thread-446557-1-1.html Photoshop制作印有犀利哥标志的T恤 https://www.360docs.net/doc/ba13146705.html,/thread-446538-1-1.html Photoshop为照片打造柔美朦胧效果 https://www.360docs.net/doc/ba13146705.html,/thread-446212-1-1.html Photoshop打造漂亮的镶钻字教程 https://www.360docs.net/doc/ba13146705.html,/thread-446201-1-1.html Photoshop音画教程:绘制逼真的缝绳效果https://www.360docs.net/doc/ba13146705.html,/thread-446198-1-1.html Photoshop音画教程:自定义形状缝线制作方法https://www.360docs.net/doc/ba13146705.html,/thread-446192-1-1.html Photoshop签名教程:灰色魔女动漫成签https://www.360docs.net/doc/ba13146705.html,/thread-446190-1-1.html Photoshop音画教程:立体边框效果制作https://www.360docs.net/doc/ba13146705.html,/thread-446187-1-1.html Photoshop加手绘板绘制中国风的美女 https://www.360docs.net/doc/ba13146705.html,/thread-446159-1-1.html Photoshop把美女照片转成海报效果 https://www.360docs.net/doc/ba13146705.html,/thread-446172-1-1.html Photoshop制作甜心蛋糕公主签名教程 https://www.360docs.net/doc/ba13146705.html,/thread-446147-1-1.html Photoshop给视频截图调出亮白艳丽效果https://www.360docs.net/doc/ba13146705.html,/thread-446140-1-1.html Photoshop简单三步做出照片泛白LOMO风格https://www.360docs.net/doc/ba13146705.html,/thread-446077-1-1.html Photoshop边框教程:简单制作撒点边框https://www.360docs.net/doc/ba13146705.html,/thread-446042-1-1.html Photoshop制作破碎的玻璃字教程 https://www.360docs.net/doc/ba13146705.html,/thread-445950-1-1.html Photoshop制作尘封的记忆古签名 https://www.360docs.net/doc/ba13146705.html,/thread-445882-1-1.html Photoshop简单的制作蕾丝边框 https://www.360docs.net/doc/ba13146705.html,/thread-445690-1-1.html Photoshop调出美女水嫩的肌肤效果 https://www.360docs.net/doc/ba13146705.html,/thread-445678-1-1.html Photoshop为汽车添加闪亮的车灯效果 https://www.360docs.net/doc/ba13146705.html,/thread-445672-1-1.html Photoshop调出清爽色调的海滩照片 https://www.360docs.net/doc/ba13146705.html,/thread-445656-1-1.html Photoshop制作炫彩的花纹文字特效 https://www.360docs.net/doc/ba13146705.html,/thread-445565-1-1.html Photoshop调出照片的复古怀旧色 https://www.360docs.net/doc/ba13146705.html,/thread-445561-1-1.html Photoshop轻松打造MM水清纯靓丽肌肤https://www.360docs.net/doc/ba13146705.html,/thread-445511-1-1.html Photoshop调出人物的淡雅粉嫩肤色教程https://www.360docs.net/doc/ba13146705.html,/thread-445488-1-1.html Photoshop+IR制作花瓣飘落GIF动态效果https://www.360docs.net/doc/ba13146705.html,/thread-445480-1-1.html Photoshop制作墙上的霓虹灯文字效果 https://www.360docs.net/doc/ba13146705.html,/thread-445475-1-1.html Photoshop制作美女照片漂亮的素描风格https://www.360docs.net/doc/ba13146705.html,/thread-445465-1-1.html Photoshop制作真实的建筑物雪景效果 https://www.360docs.net/doc/ba13146705.html,/thread-445441-1-1.html Photoshop打造美女迷人的眼妆 https://www.360docs.net/doc/ba13146705.html,/thread-445428-1-1.html Photoshop快速给人物加上闪亮的蜜唇 https://www.360docs.net/doc/ba13146705.html,/thread-445422-1-1.html Photoshop巧用匹配颜色校正偏黄色照片https://www.360docs.net/doc/ba13146705.html,/thread-444870-1-1.html Photoshop制作汤姆克鲁斯的阿凡达特效https://www.360docs.net/doc/ba13146705.html,/thread-444407-1-1.html Photoshop曲线工具基础教程:色彩对比 https://www.360docs.net/doc/ba13146705.html,/thread-444406-1-1.html Photoshop色阶实例教程:调整照片色彩明暗度https://www.360docs.net/doc/ba13146705.html,/thread-444071-1-1.html Photoshop调色教程:人物淡彩及美白教程https://www.360docs.net/doc/ba13146705.html,/thread-444069-1-1.html Photoshop绘制真实的香水瓶效果 https://www.360docs.net/doc/ba13146705.html,/thread-444007-1-1.html Photoshop打造简单的彗星划过效果 https://www.360docs.net/doc/ba13146705.html,/thread-444003-1-1.html Photoshop保持肤色细节给人物美白 https://www.360docs.net/doc/ba13146705.html,/thread-444002-1-1.html Photoshop设计一个简洁灰色系的网页模板https://www.360docs.net/doc/ba13146705.html,/thread-444001-1-1.html Photoshop简单调出人物质感铜色效果 https://www.360docs.net/doc/ba13146705.html,/thread-443999-1-1.html Photoshop随心随遇制作人物阿凡达效果https://www.360docs.net/doc/ba13146705.html,/thread-443997-1-1.html Photoshop制作滚动显示的文字GIF动态效果https://www.360docs.net/doc/ba13146705.html,/thread-443955-1-1.html Photoshop调出黄转粉色调 https://www.360docs.net/doc/ba13146705.html,/thread-443791-1-1.html Photoshop照片转手绘之头发的画法教程https://www.360docs.net/doc/ba13146705.html,/thread-443789-1-1.html巧用Photoshop随心所欲给汽车皮肤换颜色

Photoshop经典实例教程3000例(PDF打印版)

Photoshop经典实例教程3000例 1、教你打造偏色艺术色调教程 2、·教你打造偏色艺术色调教程 3、Photoshop┾製造制造另类婚纱照片 4、⒈款粉帥氣de游戲做圖 5、PS(IR)可爱的棒棒糖 6、ps打造唯美色调 7、PS打造超炫人物效果 8、一款比较自然的眨眼教程 9、Photoshop最简易的磨皮法 10、Photoshop]制作下雨的效果 11、小菱形背景和圆点背景的做法 12、[Photoshop]PS打造淡彩风格的幻眼效果 13、Photoshop]用Photoshop滤镜打造梦幻艺术效果 14、Photoshop]巧用PS打造镶满诱人钻石的文字 15、Photoshop]PS制作幽冥火焰 16、Photoshop]简单的叠影制作方法 17、Photoshop]制作冬季恋歌浪漫雪景效果 18、Photoshop]用Photoshop设计另类树皮人体 19、Photoshop]教你设计绚丽光芒效果 20、Photoshop]教你设计胶片风情电影海报 21、Photoshop]教你设计神秘炫光黑洞效果 22、Photoshop]PS特效字:闪亮钻石效果 23、[Photoshop]巧绘晶莹剔透的水晶樱桃 24、Fireworks]QQ空间初级玩家必学的11条技巧 25、Flash]给FLASH初学者的10点制作经验 26、Flash]Flash全屏效果全攻略 27、Photoshop]利用PS图层样式绘制彩色玻璃立体文字 28、Photoshop]Photoshop制作逼真的洁白羽毛 29、Photoshop]用PS把秋景照片变为冬景效果 30、[Photoshop]Photoshop教你给MM的衣服换个颜色 31、Photoshop]用PS制作周迅的怀旧效果图 32、Photoshop]转用PS轻松给MM衣服添加图案 33、Photoshop]用PS的动态画笔制作鞭炮 34、Photoshop]教你做天使翅膀的卡通效果 35、Photoshop]制作融化的冰淇淋 36、Photoshop]打造宇宙场景爆炸星球特效 37、Photoshop]教你设计恐怖电影海报 Photoshop]制作奔驰中的汽车 [Photoshop]蝴蝶结边框 [Photoshop]印章制作小教程(ps新手适用)[Photoshop]Photoshop高级柔化处理人物照片

ps滤镜艺术效果大全(含图,适合自学,教学)

实用滤镜大全(适合教学,自学,含图) 一.Artistic(艺术效果) Artistic(艺术效果) 滤镜模拟天然或传统的艺术效果。(注:此组滤镜不能应用于CMYK和Lab模式的图像) 1、Fresco(壁画滤镜) 作用:使用小块的颜料来粗糙地绘制图像。 调节参数: 画笔大小:调节颜料的大小。 画笔细节:控制绘制图像的细节程度。 纹理:控制纹理的对比度。 图解效果:

原图像壁画效果2、Colored Pencil(彩色铅笔滤镜) 作用:使用彩色铅笔在纯色背景上绘制图像。 调节参数:

铅笔宽度:调节铅笔笔触的宽度。 描边压力:调节铅笔笔触绘制的对比度。 纸张亮度:调节笔触绘制区域的亮度。 图解效果: 原图像彩色铅笔效果 第九组:Artistic(艺术效果) Artistic(艺术效果) 滤镜模拟天然或传统的艺术效果。(注:此组滤镜不能应用于CMYK和Lab模式的图像) 1、Fresco(壁画滤镜) 作用:使用小块的颜料来粗糙地绘制图像。 调节参数:

画笔大小:调节颜料的大小。 画笔细节:控制绘制图像的细节程度。 纹理:控制纹理的对比度。 图解效果: 原图像壁画效果2、Colored Pencil(彩色铅笔滤镜) 作用:使用彩色铅笔在纯色背景上绘制图像。 调节参数:

铅笔宽度:调节铅笔笔触的宽度。 描边压力:调节铅笔笔触绘制的对比度。 纸张亮度:调节笔触绘制区域的亮度。 图解效果: 原图像彩色铅笔效果

5、Palette Knife(调色刀) 作用:降低图像的细节并淡化图像,使图像呈现出绘制在湿润的画布上的效果。调节参数: 描边大小:调节色块的大小。 线条细节:控制线条刻画的强度。 软化度:淡化色彩间的边界。 图解效果: 原图像调色刀效果 6、Dry Brush(干画笔)

ps新手入门实例大全详细教程

ps新手入门实例大全详细教程(二) 来源:网络作者:admin 发布时间:2011-06-29 点击:1262 目录 4.照片边框处理 5.简单照片合成 6.快速蒙版教程 7.认识色阶——————————————————————————————————————(4):照片边框处理 今天我们来学习制作一个简单的照片边框,通过制作过程,来熟悉PS的一些工具与制作手法。 1、打开PS,打开一张照片。现在我们要为这张照片做一个背景图,并改变一下照片的边框。 2、为背景层改名。在图层面板,现在有一个图层名为“背景”。这个背景层的右边有一个小锁。凡是第一次打开一个图片总是有这样一个上了锁的背景层。现在我们要改变它的名称。双击背景层,弹出一个对话框。在名称中写上“照片”后按“好”字。 3、创建新的图层。按一下图层面板最下面的“创建新的图层”按钮,在背景层的上面出现了一个新图层,名称为“图层1”。新图层是不会上锁的,改名就比较容易。我们可以双击这三个字,改名称为“新背景”。

4、凡是新建的图层,都是全透明的。我们可以看到在“新背景”这三个字左边有个小图,全是格子,这表示它是透明的。 我们还可以把“照片”层前的小眼睛关闭,这时,工作区中只有透明的格子样子了。现在我们要把“新背景”层填上颜色。 填充颜色分为两个步骤: A、第一步:要确定前景色还是背景色。 现在到窗口菜单下点“颜色”,出来一个颜色面板。在颜色两字的下面,有二个方的色块。前面黑色的是前景色,后面白色的是背景色。你需要设置前景色时(多数情况下我们是设置前景色),就点前面那块。现在我们按下前景色按钮。黑色的方块的外面多了一个外框,表示现在是设置前景色。 B、第二步:选择颜色。可以选择颜色的地方有好几个。右边的R右边由黑到红的长条下面,有一个小三角形,可以拉动它来改变颜色。你可以把这三条都拉一下,再看前景色有什么变化。 最右边的数字框也可以直接填入由0到255之间的数字。例如:在R(红)里,填入217;在G (绿)里,填入253;在B里填入249,现在前景色变成了浅绿色。这是RGB三原色组合表示一种颜色的方法。最下面有一个多彩的粗条,在这里可以多选一些颜色。最右边是黑白两色。这个颜色面板是非常方便来选择颜色的。更直观的方法是点“色板”标签。

PS经典实例教程

用Photoshop从无到有绘制一种仿真的水纹效果。 新建500*500像素的RGB模式文件。快捷键D把前景色设置为黑,背景色设置为白。[滤镜]―[渲染]―[云彩],[滤镜]―[模糊]―[径向模糊],数量23,模糊方法―旋转,品质―最好,[滤镜]―[模糊]―[高斯模糊]5.5,[滤镜]―[素描]―[基底凸现],细节12,平滑度10,光照方向―底,[滤镜]―[素描]―[铬黄]细节7,平滑度4,[滤镜]―[扭曲]―[旋转扭曲],角度120,[滤镜]―[扭曲]―[水波],数量12%,起伏5,按快捷键CTRL+U或者[图像]―[调整]―[色相/饱和度]命令,在弹出的对话框中选择着色,色相调整为205,饱和度为55。得到最终结果。 利用PS画笔模拟在水雾玻璃上写字 打开雨滴玻璃素材,进行色相/饱和度调整,色相10,饱和度35。执行图象--调整-去色。图象-图象大小,将背景图象改为600*450.拉入汽车素材图,改模式为叠加。将背景素材图进行滤镜--模糊--高斯模糊5.5。后设置画笔 在所有图层上新建图层“字体”,用黑色画笔写出字体。用15px的画笔画出墨迹滴落的感觉。在所有图层上新建图层编辑填充白色,改模式为柔光,不透明度55%。、最后我们将字体图层的不透明度改为85%。 Photoshop制作华丽的花纹黄金字 新建一1280×1024像素的文件。设置前景色#6a000c,背景色#111111。选择渐变工具,选择前景色到背景渐变,径向渐变。后从文档中心拖动到其中一个角

落来创建渐变。 用文字工具,创建文字,颜色#f9df78。复制文字图层两次,第二个副本的填充值改为0。双击文字图层应用如下图层样式。斜面和浮雕:样式“描边浮雕”,深度250 ,光泽等高线选择环形—双,勾选消除锯齿,高光模式为“线性光”,阴影模式颜色#96794b。理:选择素材图案,可先存下图的纹理素材,打开后定义为图案。

ps几个实例教程

照片名称:调出照片柔和的蓝黄色-简单方法, 1、打开原图素材,按Ctrl + J把背景图层复制一层,点通道面板,选择蓝色通道,图像 > 应用图像,图层为背景,混合为正片叠底,不透明度50%,反相打钩, 2、回到图层面板,创建曲线调整图层,蓝通道:44,182,红通道:89,108 3、新建一个图层,填充黑色,图层混合模式为正片叠底,不透明度为60%,选择椭圆选框工具选区中间部分,按Ctrl + Alt + D羽化,数值为70,然后按两下Delete键删除,再打上文字,完成最终效果。 照片名称:调出照片漂亮的红黄色, 1、打开原图素材,Ctrl + J把背景图层复制一层,按Ctrl + Shift + U去色,执行:滤镜 > 模糊 > 高斯模糊,数值4,图层混合模式为滤色,图层不透明度改为27%。 2、新建一个图层,按Ctrl + Alt + Shift + E盖印图层,图层混合模式为颜色。 3、创建渐变映射调整图层,紫色-橘色,Alt+Ctrl + G加上剪贴蒙版。 4、创建亮度/对比度调整图层,-5,-21 5、创建智能锐化调整图层,设置为默认值,数量46,半径0.8,高斯模糊, 6、创建色阶调整图层,8,1.00,255 7、创建可选颜色调整图层,红色:+17,-8,+16,0,黄色:-54,0,+10,+18,白色:-5,0,0,0,

照片名称:打造美女冷艳张扬蓝色调, 1、在做图之前,可以先对图进行:图像-调整-自动色阶,自动对比度,自动颜色的调节, 2、打开原图,复制背景图层, 3、新建色相饱和度调整层,红:-80,黄:-80,蓝:+32 4、色彩平衡:-20,+20,+50 5、曲线调整,数值:38,36 6、色相饱和度,蓝色:-45 7、可选颜色,青:-10,+20,+24,0,蓝色:+20,0,+10,0,中性色:(黑色)+5,黑色:(黑色)+5 8、载入蓝色通道选区,做曲线调节,数值:74,119 9、亮度对比度:0,+10 10、盖印所有图层,(Ctrl+Shift+Alt+E),把图片进行磨皮等简单柔化处理, 11、把开始复制的背景副本层置顶,混合模式为柔光,不透明度25% 12、再次盖印所有图层,打上光照效果,滤镜-渲染-光照效果,不透明度50%,其他数值为默认值。添加蒙版,把曝光过度的地方擦回来, 13、刷上自己喜欢的笔刷,添加文字,完成

免费PS经典教程超级详细——Photoshop经典实例教程3000例

文章由情难枕精心整理,希望对大家的学习和工作带来帮助整理人:情难枕 整理时间:2011-4-10 PS经典教程 1、教你打造偏色艺术色调教程 2、·教你打造偏色艺术色调教程 3、Photoshop┾製造制造另类婚纱照片 4、⒈款粉帥氣de游戲做圖 5、PS(IR)可爱的棒棒糖 6、ps打造唯美色调 7、PS打造超炫人物效果 8、一款比较自然的眨眼教程 9、Photoshop最简易的磨皮法 10、Photoshop] 制作下雨的效果 11、小菱形背景和圆点背景的做法 12、[Photoshop] PS打造淡彩风格的幻眼效果 13、Photoshop] 用Photoshop滤镜打造梦幻艺术效果 14、Photoshop] 巧用PS打造镶满诱人钻石的文字 15、Photoshop] PS制作幽冥火焰 16、Photoshop] 简单的叠影制作方法 17、Photoshop] 制作冬季恋歌浪漫雪景效果 18、Photoshop] 用Photoshop设计另类树皮人体

19、Photoshop] 教你设计绚丽光芒效果 20、Photoshop] 教你设计胶片风情电影海报 21、Photoshop] 教你设计神秘炫光黑洞效果 22、Photoshop] PS特效字:闪亮钻石效果 23、[Photoshop] 巧绘晶莹剔透的水晶樱桃 24、Fireworks] QQ空间初级玩家必学的11条技巧 25、Flash] 给FLASH初学者的10点制作经验 26、Flash] Flash全屏效果全攻略 27、Photoshop] 利用PS图层样式绘制彩色玻璃立体文字 28、Photoshop] Photoshop制作逼真的洁白羽毛 29、Photoshop] 用PS把秋景照片变为冬景效果 30、[Photoshop] Photoshop教你给MM的衣服换个颜色 31、Photoshop] 用PS制作周迅的怀旧效果图 32、Photoshop] 转用PS轻松给MM衣服添加图案 33、Photoshop] 用PS的动态画笔制作鞭炮 34、Photoshop] 教你做天使翅膀的卡通效果 35、Photoshop] 制作融化的冰淇淋 36、Photoshop] 打造宇宙场景爆炸星球特效 37、Photoshop] 教你设计恐怖电影海报 Photoshop] 制作奔驰中的汽车 [Photoshop] 蝴蝶结边框

经典photoshop实例教程

照片名称:Photoshop, 照片名称:调出照片柔和的蓝黄色-简单方法, 1、打开原图素材,按Ctrl + J把背景图层复制一层,点通道面板,选择蓝色通道,图像> 应用图像,图层为背景,混合为正片叠底,不透明度50%,反相打钩, 2、回到图层面板,创建曲线调整图层,蓝通道:44,182,红通道:89,108 3、新建一个图层,填充黑色,图层混合模式为正片叠底,不透明度为60%,选择椭圆选框工具选区中间部分,按Ctrl + Alt + D羽化,数值为70,然后按两下Delete键删除,再打上文字,完成最终效果。

照片名称:调出照片漂亮的红黄色, 1、打开原图素材,Ctrl + J把背景图层复制一层,按Ctrl + Shift + U去色,执行:滤镜> 模糊> 高斯模糊,数值4,图层混合模式为滤色,图层不透明度改为27%。 2、新建一个图层,按Ctrl + Alt + Shift + E盖印图层,图层混合模式为颜色。 3、创建渐变映射调整图层,紫色-橘色,Alt+Ctrl + G加上剪贴蒙版。 4、创建亮度/对比度调整图层,-5,-21 5、创建智能锐化调整图层,设置为默认值,数量46,半径0.8,高斯模糊, 6、创建色阶调整图层,8,1.00,255 7、创建可选颜色调整图层,红色:+17,-8,+16,0,黄色:-54,0,+10,+18,白色:-5,0,0,0,

照片名称:打造美女冷艳张扬蓝色调, 1、在做图之前,可以先对图进行:图像-调整-自动色阶,自动对比度,自动颜色的调节, 2、打开原图,复制背景图层, 3、新建色相饱和度调整层,红:-80,黄:-80,蓝:+32 4、色彩平衡:-20,+20,+50 5、曲线调整,数值:38,36 6、色相饱和度,蓝色:-45 7、可选颜色,青:-10,+20,+24,0,蓝色:+20,0,+10,0,中性色:(黑色)+5,黑色:(黑色)+5 8、载入蓝色通道选区,做曲线调节,数值:74,119 9、亮度对比度:0,+10 10、盖印所有图层,(Ctrl+Shift+Alt+E),把图片进行磨皮等简单柔化处理, 11、把开始复制的背景副本层置顶,混合模式为柔光,不透明度25% 12、再次盖印所有图层,打上光照效果,滤镜-渲染-光照效果,不透明度50%,其他数值为默认值。添加蒙版,把曝光过度的地方擦回来, 13、刷上自己喜欢的笔刷,添加文字,完成 照片名称:精心制作水做的女人, 1、打开原图素材,先用钢笔工具把人物勾出来,按Ctrl + Enter 把路径转为选区,按Ctrl + J 把人物复制到新的图层。 2、按Ctrl + M 对抠出的人物调整曲线,数值:47,60 3、新建一个图层,填充颜色:#0A6A60 4、把人物皮肤到头部这上半部分抠出来,复制到新的图层。 5、把前景颜色设置为翠绿色,(水的颜色可以根据作图需要设定所需要),背景设置为白色,选择菜单:图像> 调整> 渐变映射。调节出有明暗对比的单色图像。 6、滤镜> 艺术效果> 塑料包装,数据根据个人需要做调节,主要是提取有水效果的高光部分,所以作图的是很可以想象一下水做的人脸上的高光密度和疏散度进行调节,根据水的特征,人物眼睛能接收到的信息就是只有高光和最暗的部分,其它部分则是透明的。 7、选择图层3副本,按Ctrl + Alt + Shift + ~ 调出高光选区,再按Ctrl + Alt + Shift 鼠标点击图层3副本,这样把人物外部的选区减掉,然后新建图层4填充白色。 8、按住Ctrl键点击图层4转成选区,按Ctrl + Shift + I 反选,按Delete删除,多点几次删除

ps新手入门各种实例(详细步骤)

1.首先准备一副线条明显示的图。 2.执行“滤镜”(Filter)|“模糊”(Blur)|“高斯模糊”(Gaussian Blur), 设置“半径”(Radius)为“1pixels”。 3.执行“滤镜”(Filter)|“风格化”(Stylize)|“查找边缘”(Find Edges), 将整个图像的轮廓勾勒出来。 4.按Ctrl+I进行反向操作。 5.执行“滤镜”(Filter)|“其它”(Other)|“最大化”(Maximum),以增强 霓红的效果。

1.使用菜单“文件”——“新建”,在Photoshop中新建一张300*200象素 的图片; 2.将工具栏中前景色变为绿色; 3.选工具栏中“文字工具”,输入自己想要的文字; 4.使用菜单“滤镜”——“风格化”——“风”,方法:风,方向:从右; 5.使用菜单“滤镜”——“模糊”——“动感模糊”,8象素; 6.再次使用菜单“滤镜”——“风格化”——“风”,方法:风,方向:从 右;(这次会产生更强烈的动感效果) 7.使用菜单“滤镜”——“锐化”——“USM锐化”,数值75%,半径4, 阈值3;(由于使用动感模糊文字边缘很模糊,用此滤镜可达到锐化边缘的作用) 8.使用菜单“滤镜”——“扭曲”——“切变”,调节控制杆弯曲度,达到 扭曲的效果; 9.使用菜单“滤镜”——“扭曲”——“球面化”,数量50,模式正常;

1.使用菜单“文件”——“新建”,在Photoshop中新建一张300*200象素的图片; 2.选工具栏中的“文字工具”,写上“welcome”,设一种较粗的字体; 3.按住Ctrl键不放,再点击“图层”面板的文字层,则文字被选中,边框出现“行走的蚂 蚁线”; 4.选工具栏中的“渐变工具”,在选项对话框窗口(F8可控制其显示/关闭)中选“透明 彩虹渐变”; 此时你会发现渐变工具在文字层无法工作,怎么办? 5.点击文字层使之成为当前层,使用菜单“图层”——“栅格化”——“文字”; 6.使用渐变工具给文字加色彩,渐变方向从左到右; 7.在文字层按鼠标右键——“混合选项”,选“投影”,即可得如图效果;

免费PS经典教程超级详细——Photoshop经典实例教程3000例(全) 免费

PS经典教程 1、教你打造偏色艺术色调教程 2、·教你打造偏色艺术色调教程 3、Photoshop┾製造制造另类婚纱照片 4、⒈款粉帥氣de游戲做圖 5、PS(IR)可爱的棒棒糖 6、ps打造唯美色调 7、PS打造超炫人物效果 8、一款比较自然的眨眼教程 9、Photoshop最简易的磨皮法 10、Photoshop] 制作下雨的效果 11、小菱形背景和圆点背景的做法 12、[Photoshop] PS打造淡彩风格的幻眼效果 13、Photoshop] 用Photoshop滤镜打造梦幻艺术效果 14、Photoshop] 巧用PS打造镶满诱人钻石的文字 15、Photoshop] PS制作幽冥火焰 16、Photoshop] 简单的叠影制作方法 17、Photoshop] 制作冬季恋歌浪漫雪景效果 18、Photoshop] 用Photoshop设计另类树皮人体 19、Photoshop] 教你设计绚丽光芒效果 20、Photoshop] 教你设计胶片风情电影海报 21、Photoshop] 教你设计神秘炫光黑洞效果

22、Photoshop] PS特效字:闪亮钻石效果 23、[Photoshop] 巧绘晶莹剔透的水晶樱桃 24、Fireworks] QQ空间初级玩家必学的11条技巧 25、Flash] 给FLASH初学者的10点制作经验 26、Flash] Flash全屏效果全攻略 27、Photoshop] 利用PS图层样式绘制彩色玻璃立体文字 28、Photoshop] Photoshop制作逼真的洁白羽毛 29、Photoshop] 用PS把秋景照片变为冬景效果 30、[Photoshop] Photoshop教你给MM的衣服换个颜色 31、Photoshop] 用PS制作周迅的怀旧效果图 32、Photoshop] 转用PS轻松给MM衣服添加图案 33、Photoshop] 用PS的动态画笔制作鞭炮 34、Photoshop] 教你做天使翅膀的卡通效果 35、Photoshop] 制作融化的冰淇淋 36、Photoshop] 打造宇宙场景爆炸星球特效 37、Photoshop] 教你设计恐怖电影海报 Photoshop] 制作奔驰中的汽车 [Photoshop] 蝴蝶结边框 [Photoshop] 印章制作小教程(ps新手适用)[Photoshop] Photoshop高级柔化处理人物照片Photoshop] 神奇的Photoshop修图美容--很实用

PS滤镜介绍大全.

滤镜产生效果 风格化 可以产生不同风格的印象派艺术效果。有些滤镜可以强调图像的轮廓:用彩色线条勾画出彩色图像边缘,用白色线条勾画出灰度图像边缘。 查找边缘 可以强调图像的轮廓,用彩色线条勾画出彩色图像边缘,用白色线条勾画出灰度图像边缘。 等高线可以查找图像中主要亮度区域的过渡区域,并对每个颜色通道用细线勾画这些边缘。 风可以在图像中创建细小的水平线以模拟风效果。 浮雕 可以将图像的颜色转换为灰色,并用原图像的颜色勾画边缘,使选区显得突出或下陷。 扩散 滤镜根据所选的选项搅乱选区内的像素,使选区看起来聚焦较低。 拼贴可以将图像拆散为一系列的拼贴。 暴光过度 可以混合正片和负片图像,与在冲洗过程中将相片简单的暴光以加亮相似。 凸出可以创建三维立体图像。 照亮边缘可以查找图像中颜色的边缘并给他们增加类似霓红灯的亮光。 画笔描边 可以使用不同的画笔和油墨笔接触产生不同风格的绘画效果。一些滤镜可以对图像增加颗粒,绘画,杂色,边缘细线或纹理,以得到点画效果。 成角的线条 可以用对角线修描图像。图像中较亮的区域用一个线条方向绘制,较暗的区域用相反方向的线条绘制。 喷溅可以产生与喷枪喷绘一样的效果。喷色描边可以产生斜纹的喷色线条。 强化的边缘 可以强化图像的边缘。当边缘亮度控制被设置为较高的值时,强化效果与白色粉笔相似;亮度设置为较低时,强化效果与黑色油墨相似。 深色线条 使用短,密的线条绘制图像中与黑色接近的深色区域,并用长的,白色线条绘画图像中较浅的颜色。 烟灰墨 可以在原来的细节上用精细的细线重绘图像,用的是钢笔油墨风格。 阴影线 可以模拟铅笔阴影线为图像添加纹理,并保留原图像的细节和特征。对话框中的“Strength”选项以控制阴影线通过的数量。 油墨概念 可以绘制油墨风格的图像,使图像产生像是用饱和黑色墨水的湿画笔在宣纸上绘画的效果。 模糊 可以模糊图像。这对修饰图像非常有用。模糊的原理是将图像中要模糊的原理是将图像中要模糊的硬边区域相邻近的像素值平均而产生平滑的过滤效果。 动感模糊能以某种方向(从-360度至+360度)和某种强度(从1到999)

经典教程超级详细——Photoshop经典实例教程3000例

文章由剑舞冲天精心整理,希望对大家的学习和工作带来帮助整理人:剑舞冲天 整理时间:2011-4-10 PS经典教程 1、教你打造偏色艺术色调教程 2、·教你打造偏色艺术色调教程 3、Photoshop┾製造制造另类婚纱照片 4、⒈款粉帥氣de游戲做圖 5、PS(IR)可爱的棒棒糖 6、ps打造唯美色调 7、PS打造超炫人物效果 8、一款比较自然的眨眼教程 9、Photoshop最简易的磨皮法 10、Photoshop] 制作下雨的效果 11、小菱形背景和圆点背景的做法 12、[Photoshop] PS打造淡彩风格的幻眼效果 13、Photoshop] 用Photoshop滤镜打造梦幻艺术效果 14、Photoshop] 巧用PS打造镶满诱人钻石的文字 15、Photoshop] PS制作幽冥火焰 16、Photoshop] 简单的叠影制作方法 17、Photoshop] 制作冬季恋歌浪漫雪景效果 18、Photoshop] 用Photoshop设计另类树皮人体

19、Photoshop] 教你设计绚丽光芒效果 20、Photoshop] 教你设计胶片风情电影海报 21、Photoshop] 教你设计神秘炫光黑洞效果 22、Photoshop] PS特效字:闪亮钻石效果 23、[Photoshop] 巧绘晶莹剔透的水晶樱桃 24、Fireworks] QQ空间初级玩家必学的11条技巧 25、Flash] 给FLASH初学者的10点制作经验 26、Flash] Flash全屏效果全攻略 27、Photoshop] 利用PS图层样式绘制彩色玻璃立体文字 28、Photoshop] Photoshop制作逼真的洁白羽毛 29、Photoshop] 用PS把秋景照片变为冬景效果 30、[Photoshop] Photoshop教你给MM的衣服换个颜色 31、Photoshop] 用PS制作周迅的怀旧效果图 32、Photoshop] 转用PS轻松给MM衣服添加图案 33、Photoshop] 用PS的动态画笔制作鞭炮 34、Photoshop] 教你做天使翅膀的卡通效果 35、Photoshop] 制作融化的冰淇淋 36、Photoshop] 打造宇宙场景爆炸星球特效 37、Photoshop] 教你设计恐怖电影海报 Photoshop] 制作奔驰中的汽车 [Photoshop] 蝴蝶结边框

PS滤镜的使用案例

PS滤镜的使用案例 第一步:新建文件,黑色。执行滤镜-渲染-镜头光晕,位置自己拖动,什么位置都行,这里我用了两次,斜对角排列的。 第二步:滤镜-画笔描边-强化的边缘,边缘宽度2,边缘亮度50,平滑度1. 第三步:滤镜-风格化-照亮边缘,边缘宽度1,边缘亮度20,平滑度15. 第四步:新建一个图层,选择渐变工具,在渐变编辑器里选择那个叫橙色黄色橙色的渐变,铺满新建的图层。当然你也可以选择其它的,或者自己设置颜色。 第五步:最后把图层模式改为叠加,效果就出来了 制作一个爆炸效果(使用软件:Photoshop6.0) 1. 开一个背景为黑色的新文件。 2. 按D键,使前景色、背景色分别为黑、白色。 3. 使用滤镜Filter—Render—Clouds。

4. 使用滤镜Filter—Stylize—Find Edges,得到如图所示的效果。 5. 按CTRL L调出Level调节面板,点击面板右方的Auto钮并确定。 结果如图 6. 现在用黑色勾画出烟雾的大致外形,可以用喷笔来画。得到图中的样子。 读者可以按自己喜欢的形状来画,只要看上去有点象云彩的形状就可以了,并把周围 不需要的部分全涂黑。

7. 用魔棒工具在图上“云彩”周围的黑色部分单击一下,然后按 CTRL SHIFT I或菜单命令Select—Inverse,这样反转选区后,被选取的部分就是“云彩”了。 8. 按CTRL SHIFT X或菜单Image—Liquify,出现如图所示的面板,面板上预览区里的红色部分是遮罩,表示红色部分是被“保护”而不会被编辑的。

9. 现在要用面板左边从上至下第四个(使画面收缩)和第五个工具(使画面膨胀)来加工出爆炸时的烟雾的团状体积感。这一步可能稍稍有点难度,因为效果是因人而异的,可以一边画,一边回忆看到过的电影中的爆炸效果是什么样的。结果如图,“云彩”上隆起了个几个“泡”而一些边缘部位被收缩了。 确定后按CTRL D取消选择区。 10. 在layer面板上单击下边数起第四个按钮,在拉出的菜单里选择Gradient Map,如图

相关文档
最新文档