English
Language : 

MEC1322 Datasheet, PDF (337/456 Pages) Microchip Technology – Keyboard and Embedded Controller for Notebook PC
MEC1322
TABLE 28-16: EC-ONLY REGISTER SUMMARY
Offset
Register Name (Mnemonic)
00h
LED Configuration Register
04h
LED Limits Register
08h
LED Delay Register
0Ch
LED Update Stepsize Register
10h
LED Update Interval Register
In the following register definitions, a “PWM period” is defined by time the PWM counter goes from 000h to its maximum
value (FFh in 8-bit mode, FEh in 7-bit mode and FCh in 6-bit mode, as defined by the PSCALE field in register
LED_CFG). The end of a PWM period occurs when the PWM counter wraps from its maximum value to 0.
The registers in this block can be written 32-bits, 16-bits or 8-bits at a time. Writes to LED Configuration Register take
effect immediately. Writes to LED Limits Register are held in a holding register and only take effect only at the end of a
PWM period. The update takes place at the end of every period, even if only one byte of the register was updated. This
means that in blink/PWM mode, software can change the duty cycle with a single 8-bit write to the MIN field in the
LED_LIMIT register. Writes to LED Delay Register, LED Update Stepsize Register and LED Update Interval Register
also go initially into a holding register. The holding registers are copied to the operating registers at the end of a PWM
period only if the Enable Update bit in the LED Configuration Register is set to 1. If LED_CFG is 0, data in the holding
registers is retained but not copied to the operating registers when the PWM period expires. To change an LED breath-
ing configuration, software should write these three registers with the desired values and then set LED_CFG to 1. This
mechanism ensures that all parameters affecting LED breathing will be updated consistently, even if the registers are
only written 8 bits at a time.
28.10.1 LED CONFIGURATION REGISTER
Offset 00h
Bits
31:16 Reserved
16 SYMMETRY
Description
Type
R
R/W
1=The rising and falling ramp times are in Asymmetric mode.
Table 28-12, "Asymmetric Breathing Mode Register Usage"
shows the application of the Stepsize and Interval registers to the
four segments of rising duty cycles and the four segments of fall-
ing duty cycles.
0=The rising and falling ramp times (as shown in Figure 28-2, "Breath-
ing LED Example") are in Symmetric mode. Table 28-11, "Sym-
metric Breathing Mode Register Usage" shows the application of
the Stepsize and Interval registers to the 8 segments of both ris-
ing and falling duty cycles.
15:8 WDT_RELOAD
R/W
The PWM Watchdog Timer counter reload value. On system reset, it
defaults to 14h, which corresponds to a 4 second Watchdog timeout
value.
7 RESET
W
Writes of’1’ to this bit resets the PWM registers to their default val-
ues. This bit is self clearing.
Writes of ‘0’ to this bit have no effect.
Default
-
0b
Reset
Event
-
VCC1_
RESET
14h
VCC1_
RESET
0b
VCC1_
RESET
 2014 - 2015 Microchip Technology Inc.
DS00001719D-page 337