
Rev. 1.20
58
November 20, 2019
Rev. 1.20
59
November 20, 2019
HT66F2740
12V High Current Flash MCU
HT66F2740
12V High Current Flash MCU
• SLEDC Register
Bit
7
6
5
4
3
2
1
0
Name
SLEDC7 SLEDC6 SLEDC5 SLEDC4 SLEDC3 SLEDC2 SLEDC1 SLEDC0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
0
0
0
0
0
0
0
0
Bit 7~6
SLEDC7~SLEDC6
: PD5~PD4 source current selection
00: Level 0 (Min.)
01: Level 1
10: Level 2
11: Level 3 (Max.)
Bit 5~4
SLEDC5~SLEDC4
: PD3~PD0 source current selection
00: Level 0 (Min.)
01: Level 1
10: Level 2
11: Level 3 (Max.)
Bit 3~2
SLEDC3~SLEDC2
: PA7~PA4 source current selection
00: Level 0 (Min.)
01: Level 1
10: Level 2
11: Level 3 (Max.)
Bit 1~0
SLEDC1~SLEDC0
: PA3~PA0 source current selection
00: Level 0 (Min.)
01: Level 1
10: Level 2
11: Level 3 (Max.)
Pin-shared Functions
The flexibility of the microcontroller range is greatly enhanced by the use of pins that have more
than one function. Limited numbers of pins can force serious design constraints on designers but by
supplying pins with multi-functions, many of these difficulties can be overcome. For these pins, the
desired function of the multi-function I/O pins is selected by a series of registers via the application
program control.
Pin-shared Function Selection Registers
The limited number of supplied pins in a package can impose restrictions on the amount of functions
a certain device can contain. However by allowing the same pins to share several different functions
and providing a means of function selection, a wide range of different functions can be incorporated
into even relatively small package sizes. The device includes Port “x” Output Function Selection
register “n”, labeled as PxSn, and Input Function Selection register “i”, labeled as IFSi, which can
select the desired functions of the multi-function pin-shared pins.
The most important point to note is to make sure that the desired pin-shared function is properly
selected and also deselected. For most pin-shared functions, to select the desired pin-shared function,
the pin-shared function should first be correctly selected using the corresponding pin-shared control
register. After that the corresponding peripheral functional setting should be configured and then the
peripheral function can be enabled. However, a special point must be noted for some digital input
pins, such as INTn, xTCK, xTPI, etc, which share the same pin-shared control configuration with
their corresponding general purpose I/O functions when setting the relevant pin-shared control bit
fields. To select these pin functions, in addition to the necessary pin-shared control and peripheral
functional setup aforementioned, they must also be setup as an input by setting the corresponding bit
in the I/O port control register. To correctly deselect the pin-shared function, the peripheral function