# AT91SAM7L128 SUPC

## Supply Controller (SUPC) User Interface

### Registers

Register Mapping
Address | Register | Name | Access | Reset
--- | --- | --- | --- | ---
0xFFFFFD10 | Supply Controller Control Register | SUPC_CR | write-only | -
0xFFFFFD14 | Supply Controller Brownout Mode Register | SUPC_BOMR | read-write | 0x00000000
0xFFFFFD18 | Supply Controller Mode Register | SUPC_MR | read-write | 0x00080a00
0xFFFFFD1C | Supply Controller Wake Up Mode Register | SUPC_WUMR | read-write | 0x00000000
0xFFFFFD20 | Supply Controller Wake Up Inputs Register | SUPC_WUIR | read-write | 0x00000000
0xFFFFFD24 | Supply Controller Status Register | SUPC_SR | read-only | 0x00000800
0xFFFFFD28 | Supply Controller Flash Wake-up Timer Register | SUPC_FWUTR | read-write | 0x0000005a

### Register Fields

#### SUPC Supply Controller Control Register

Name: SUPC_CR

Access: write-only

Address: 0xFFFFFD10

31 | 30 | 29 | 28 | 27 | 26 | 25 | 24
KEY
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16
- | - | - | - | - | - | - | -
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8
- | - | - | - | - | - | - | -
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0
- | - | - | - | XTALSEL | VROFF | SHDWEOF | SHDW

- SHDW: Shut Down Command

- 0 = No effect.
- 1 = If KEY is correct, enters the device in off mode.

- SHDWEOF: Shut Down After End of Frame

- 0 = No effect.
- 1 = If KEY is correct, enters the device in off mode at the End of Frame from the LCD Controller.

- VROFF: Voltage Regulator Off

- 0 = No effect.
- 1 = If KEY is correct, asserts vddcore_nreset and stops the voltage regulator..

- XTALSEL: Crystal Oscillator Select

- 0 = No effect.
- 1 = If KEY is correct, switches the slow clock on the crystal oscillator output.

- KEY: Password

-

#### SUPC Supply Controller Brownout Mode Register

Name: SUPC_BOMR

Access: read-write

Address: 0xFFFFFD14

31 | 30 | 29 | 28 | 27 | 26 | 25 | 24
- | - | - | - | - | - | - | -
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16
- | - | - | - | - | - | - | -
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8
- | - | - | BODRSTEN | - | BODSMPL
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0
- | - | - | - | BODTH

- BODTH: Brownout Threshold

- 0x0 = 1.9 V
- 0x1 = 2.0 V
- 0x2 = 2.1 V
- 0x3 = 2.2 V
- 0x4 = 2.3 V
- 0x5 = 2.4 V
- 0x6 = 2.5 V
- 0x7 = 2.6 V
- 0x8 = 2.7 V
- 0x9 = 2.8 V
- 0xA = 2.9 V
- 0xB = 3.0 V
- 0xC = 3.1 V
- 0xD = 3.2 V
- 0xE = 3.3 V
- 0xF = 3.4 V

- BODSMPL: Brownout Sampling Period

-

- BODRSTEN: Brownout Reset Enable

- 0 = The core reset signal, vddcore_nreset is not affected when a brownout occurs.
- 1 = The core reset signal, vddcore_nreset is asserted when a brownout occurs.

#### SUPC Supply Controller Mode Register

Name: SUPC_MR

Access: read-write

Address: 0xFFFFFD18

31 | 30 | 29 | 28 | 27 | 26 | 25 | 24
KEY
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16
- | - | - | OSCBYPASS | FLASHON | RTON | SRAMON | -
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8
- | - | - | VRRSTEN | VRVDD | VRDEEP
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0
- | - | LCDMODE | LCDOUT

- LCDOUT: LCD Charge Pump Output Voltage Selection

- 0x0 = 2.400 V
- 0x1 = 2.467 V
- 0x2 = 2.533 V
- 0x3 = 2.600 V
- 0x4 = 2.667 V
- 0x5 = 2.733 V
- 0x6 = 2.800 V
- 0x7 = 2.867 V
- 0x8 = 2.933 V
- 0x9 = 3.000 V
- 0xA = 3.067 V
- 0xB = 3.133 V
- 0xC = 3.200 V
- 0xD = 3.267 V
- 0xE = 3.333 V
- 0xF = 3.400 V

- LCDMODE: LCD Power Supply Mode

- 0x0 = The internal supply source and the external supply source are both deselected and the on-chip charge pump is turned off.
- 0x1 = At the End of Frame from the LCD Controller, the internal supply source and the external supply source are both deselected and the on-chip charge pump is turned off.
- 0x2 = The external supply source is selected.
- 0x3 = The internal supply source is selected and the on-chip charge pump is turned on.

- VRDEEP: Voltage Regulator Deep Mode

- 0 = Voltage Regulator Deep Mode is disabled.
- 1 = Voltage Regulator Deep Mode is enabled.

- VRVDD: Voltage Regulator Output Voltage Selection

-

- VRRSTEN: Voltage Regulation Loss Reset Enable

- 0 = Losing the voltage regulation does not affect the core reset signal, vddcore_nreset.
- 1 = Losing the voltage regulation asserts the core reset signal, vddcore_nreset.

- SRAMON: SRAM On

- 0 = SRAM (Backup) switched off in backup mode.
- 1 = SRAM (Backup) switched on in backup mode.

- RTON: Real Time Clock Alarm Power Switch On

- 0 = Real Time Clock Alarm switched off.
- 1 = Real Time Clock Alarm switched on.

- FLASHON: Flash Memory Power Switch On

- 0 = Flash Memory switched off.
- 1 = Flash Memory switched on.

- OSCBYPASS: Oscillator Bypass

- 0 = No effect. Clock selection depends on XTALSEL value.
- 1 = The 32-KHz XTAL oscillator is selected and is put in bypass mode.

- KEY: Password Key

-

#### SUPC Supply Controller Wake Up Mode Register

Name: SUPC_WUMR

Access: read-write

Address: 0xFFFFFD1C

31 | 30 | 29 | 28 | 27 | 26 | 25 | 24
- | - | - | - | - | - | - | -
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16
- | - | - | - | - | - | - | -
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8
- | WKUPDBC | - | FWUPDBC
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0
- | - | - | - | RTCEN | - | BODEN | FWUPEN

- FWUPEN: Force Wake Up Enable

- 0 = The Force Wake Up pin has no wake up effect.
- 1 = The Force Wake Up pin low forces the wake up of the core power supply.

- BODEN: Brownout Wake Up Enable

- 0 = The brownout alarm signal has no wake up effect.
- 1 = The brownout alarm signal forces the wake up of the core power supply.

- RTCEN: Real Time Clock Wake Up Enable

- 0 = The RTC alarm signal has no wake up effect.
- 1 = The RTC alarm signal forces the wake up of the core power supply.

- FWUPDBC: Force Wake Up Debouncer

-

- WKUPDBC

-

#### SUPC Supply Controller Wake Up Inputs Register

Name: SUPC_WUIR

Access: read-write

Address: 0xFFFFFD20

31 | 30 | 29 | 28 | 27 | 26 | 25 | 24
- | - | - | - | - | - | - | -
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16
- | - | - | - | - | - | - | -
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8
- | - | - | - | - | - | - | -
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0
- | - | - | - | - | - | - | -

#### SUPC Supply Controller Status Register

Name: SUPC_SR

Access: read-only

Address: 0xFFFFFD24

31 | 30 | 29 | 28 | 27 | 26 | 25 | 24
WKUPIS15 | WKUPIS14 | WKUPIS13 | WKUPIS12 | WKUPIS11 | WKUPIS10 | WKUPIS9 | WKUPIS8
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16
WKUPIS7 | WKUPIS6 | WKUPIS5 | WKUPIS4 | WKUPIS3 | WKUPIS2 | WKUPIS1 | WKUPIS0
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8
- | - | - | FWUPIS | FLASHS | RTS | - | LCDS
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0
OSCSEL | BROWNOUT | BODS | BODRSTS | VRRSTS | BODWS | WKUPS | FWUPS

- FWUPS: FWUP Wake Up Status

- 0 = No wake up due to the assertion of the FWUP pin has occurred since the last read of SUPC_SR.
- 1 = At least one wake up due to the assertion of the FWUP pin has occurred since the last read of SUPC_SR.

- WKUPS: WKUP Wake Up Status

- 0 = No wake up due to the assertion of the WKUP pins has occurred since the last read of SUPC_SR.
- 1 = At least one wake up due to the assertion of the WKUP pins has occurred since the last read of SUPC_SR.

- BODWS: Brownout Detection Wake Up Status

- 0 = No wake up due to a brownout detection has occurred since the last read of SUPC_SR.
- 1 = At least one wake up due to a brownout detection has occurred since the last read of SUPC_SR.

- VRRSTS: Voltage Regulation Loss Reset Status

- 0 = No voltage regulation loss has generated a core reset since the last read of the SUPC_SR.
- 1 = At least one voltage regulation loss has generated a core reset since the last read of the SUPC_SR.

- BODRSTS: Brownout Detection Reset Status

- 0 = No brownout detection has generated a core reset since the last read of the SUPC_SR.
- 1 = At least one brownout detection has generated a core reset since the last read of the SUPC_SR.

- BODS: Brownout Detector Status

- 0 = No brownout has been detected since the last read of SUPC_SR.
- 1 = At least one brownout has been detected since the last read of SUPC_SR.

- BROWNOUT: Brownout Detector Output Status

- 0 = The brownout detector detected VDDIO1 higher than its threshold at its last measurement.
- 1 = The brownout detector detected VDDIO1 lower than its threshold at its last measurement.

- OSCSEL: 32-kHz Oscillator Selection Status

- 0 = The slow clock, SLCK is generated by the embedded 32-kHz RC oscillator.
- 1 = The slow clock, SLCK is generated by the 32-kHz crystal oscillator.

- LCDS: LCD Status

- 0 = The LCD Controller is off and cannot be used.
- 1 = The LCD Controller is on and can be used.

- RTS: Clock Status

- 0 = The Clock is off and cannot be used.
- 1 = The Clock is on and can be used.

- FLASHS: Flash Memory Status

- 0 = The Flash Memory is off and cannot be used.
- 1 = The Flash Memory is on and can be used.

- FWUPIS: FWUP Input Status

- 0 = FWUP input is tied low.
- 1 = FWUP input is tied high.

- WKUPIS0: WKUP Input Status 0

- 0 = The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake up event.
- 1 = The corresponding wake-up input was active at the time the debouncer triggered a wake up event.

- WKUPIS1: WKUP Input Status 1

- 0 = The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake up event.
- 1 = The corresponding wake-up input was active at the time the debouncer triggered a wake up event.

- WKUPIS2: WKUP Input Status 2

- 0 = The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake up event.
- 1 = The corresponding wake-up input was active at the time the debouncer triggered a wake up event.

- WKUPIS3: WKUP Input Status 3

- 0 = The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake up event.
- 1 = The corresponding wake-up input was active at the time the debouncer triggered a wake up event.

- WKUPIS4: WKUP Input Status 4

- 0 = The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake up event.
- 1 = The corresponding wake-up input was active at the time the debouncer triggered a wake up event.

- WKUPIS5: WKUP Input Status 5

- 0 = The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake up event.
- 1 = The corresponding wake-up input was active at the time the debouncer triggered a wake up event.

- WKUPIS6: WKUP Input Status 6

- 0 = The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake up event.
- 1 = The corresponding wake-up input was active at the time the debouncer triggered a wake up event.

- WKUPIS7: WKUP Input Status 7

- 0 = The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake up event.
- 1 = The corresponding wake-up input was active at the time the debouncer triggered a wake up event.

- WKUPIS8: WKUP Input Status 8

- 0 = The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake up event.
- 1 = The corresponding wake-up input was active at the time the debouncer triggered a wake up event.

- WKUPIS9: WKUP Input Status 9

- 0 = The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake up event.
- 1 = The corresponding wake-up input was active at the time the debouncer triggered a wake up event.

- WKUPIS10: WKUP Input Status 10

- 0 = The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake up event.
- 1 = The corresponding wake-up input was active at the time the debouncer triggered a wake up event.

- WKUPIS11: WKUP Input Status 11

- 0 = The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake up event.
- 1 = The corresponding wake-up input was active at the time the debouncer triggered a wake up event.

- WKUPIS12: WKUP Input Status 12

- 0 = The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake up event.
- 1 = The corresponding wake-up input was active at the time the debouncer triggered a wake up event.

- WKUPIS13: WKUP Input Status 13

- 0 = The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake up event.
- 1 = The corresponding wake-up input was active at the time the debouncer triggered a wake up event.

- WKUPIS14: WKUP Input Status 14

- 0 = The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake up event.
- 1 = The corresponding wake-up input was active at the time the debouncer triggered a wake up event.

- WKUPIS15: WKUP Input Status 15

- 0 = The corresponding wake-up input is disabled, or was inactive at the time the debouncer triggered a wake up event.
- 1 = The corresponding wake-up input was active at the time the debouncer triggered a wake up event.

#### SUPC Supply Controller Flash Wake-up Timer Register

Name: SUPC_FWUTR

Access: read-write

Address: 0xFFFFFD28

31 | 30 | 29 | 28 | 27 | 26 | 25 | 24
- | - | - | - | - | - | - | -
23 | 22 | 21 | 20 | 19 | 18 | 17 | 16
- | - | - | - | - | - | - | -
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8
- | - | - | - | - | - | FWUT
7 | 6 | 5 | 4 | 3 | 2 | 1 | 0
FWUT

- FWUT: Flash Wake Up Timer

-