Datasheet
Pinouts and pin description STM8S207xx, STM8S208xx
32/103 Doc ID 14733 Rev 12
5.2 Alternate function remapping
As shown in the rightmost column of the pin description table, some alternate functions can
be remapped at different I/O ports by programming one of eight AFR (alternate function
remap) option bits. Refer to
Section 8: Option bytes on page 46. When the remapping
option is active, the default alternate function is no longer available.
To use an alternate function, the corresponding peripheral must be enabled in the peripheral
registers.
Alternate function remapping does not effect GPIO capabilities of the I/O ports (see the
GPIO section of the family reference manual, RM0016).
79 63 47 43 31
PD6/
UART3_RX
(1)
I/O X XX O1XXPort D6
UART3 data
receive
80 64 48 44 32 PD7/TLI I/O X
XX O1XXPort D7
Top leve l
interrupt
TIM1_CH4
[AFR4]
(5)
1. The default state of UART1_RX and UART3_RX pins is controlled by the ROM bootloader. These pins are pulled up as
part of the bootloader activation process and returned to the floating state before a return from the bootloader.
2. The beCAN interface is available on STM8S208xx devices only
3. In the open-drain output column, âTâ defines a true open-drain I/O (P-buffer, weak pull-up, and protection diode to V
DD
are
not implemented).
4. The PD1 pin is in input pull-up during the reset phase and after the internal reset release.
5. Available in 44-pin package only. On other packages, the AFR4 bit is reserved and must be kept at 0.
Table 6. Pin description (continued)
Pin number
Pin name
Type
Input Output
Main function
(after reset)
Default
alternate
function
Alternate
function
after remap
[option bit]
LQFP80
LQFP64
LQFP48
LQFP44
LQFP32
floating
wpu
Ext. interrupt
High sink
Speed
OD
PP