Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
89
Добавлен:
01.03.2016
Размер:
3.56 Mб
Скачать

Auto-wakeup (AWU)

RM0016

 

 

12.4AWU registers

12.4.1Control/status register (AWU_CSR)

Address offset: 0x00

Reset value: 0x00

7

6

5

4

3

2

1

0

 

 

 

 

 

 

 

 

Reserved

AWUF

AWUEN

 

Reserved

 

MSR

 

 

 

 

 

rc_r

rw

 

 

rw

 

 

 

 

 

 

 

 

 

 

 

 

 

Bits 7:6

Reserved

 

 

 

 

 

 

Bit 5

AWUF: Auto-wakeup flag

 

 

 

 

 

 

This bit is set by hardware when the AWU module generates an interrupt and cleared by reading the

 

AWU_CSR register. Writing to this bit does not change its value.

 

 

0:No AWU interrupt occurred

1:AWU interrupt occurred

Bit 4 AWUEN: Auto-wakeup enable

This bit is set and cleared by software. It enables the auto-wakeup feature. If the microcontroller enters Active-halt or Wait mode, the AWU feature wakes up the microcontroller after a programmable time delay.

0:AWU (Auto-wakeup) disabled

1:AWU (Auto-wakeup) enabled

Bits 3:1 Reserved

Bit 0 MSR: Measurement enable

This bit connects the fLS clock to a timer input capture. This allows the timer to be used to measure the LS frequency (fLS).

0:Measurement disabled

1:Measurement enabled

Note: Refer to the datasheet for information on which timer input capture can be connected to the LSI clock in the specific product).

12.4.2Asynchronous prescaler register (AWU_APR)

Address offset: 0x01

Reset value: 0x3F

7

6

5

4

3

2

1

0

Reserved

 

 

 

APR[5:0]

 

 

 

 

 

 

 

 

 

 

 

rw

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bits 7:6

Reserved

 

 

 

 

 

 

Bits 5:0

APR[5:0]: Asynchronous prescaler divider

 

 

 

 

These bits are written by software to select the prescaler divider (APRDIV) feeding the counter clock.

0x00: APRDIV = 2 0x0E: APRDIV = 16 0x01: APRDIV = 3 0x0F: APRDIV = 17

... ...

0x06: APRDIV = 8 0x3E: APRDIV = 64

Note: This register must not be kept at its reset value (0x3F)

118/454

Doc ID 14587 Rev 9

Соседние файлы в папке Минимум документации STM8