Datasheet

DocID15962 Rev 13 35/131
STM8L151xx, STM8L152xx Pin description
56
Note: The slope control of all GPIO pins, except true open drain pins, can be programmed. By
default, the slope control is limited to 2 MHz.
4.1 System configuration options
As shown in Table 5: Medium density STM8L15x pin description, some alternate functions
can be remapped on different I/O ports by programming one of the two remapping registers
described in the “ Routing interface (RI) and system configuration controller” section in the
STM8L15x and STM8L16x reference manual (RM0031).
40 - - - V
SS2
S IOs ground voltage
13228A4
PA0
(9)
/[USART1_CK]
(4)
/
SWIM/BEEP/IR_TIM
(10)
I/O X
X
(9)
X
HS
(10)
XXPort A0
[USART1 synchronous
clock]
(4)
/ SWIM input
and output /
Beep output / Infrared
Timer output
1. At power-up, the PA1/NRST pin is a reset input pin with pull-up. To be used as a general purpose pin (PA1), it can be
configured only as output open-drain or push-pull, not as a general purpose input. Refer to Section Configuring NRST/PA1
pin as general purpose output in the STM8L15x and STM8L16x reference manual (RM0031).
2. Available on STM8L152xx devices only.
3. In the 3.6 V tolerant I/Os, protection diode to V
DD
is not implemented.
4. [ ] Alternate function remapping option (if the same alternate function is shown twice, it indicates an exclusive choice not a
duplication of the function).
5. In the 5 V tolerant I/Os, protection diode to V
DD
is not implemented.
6. A pull-up is applied to PB0 and PB4 during the reset phase. These two pins are input floating after reset release.
7. 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).
8. Available on STM8L151xx devices only.
9. The PA0 pin is in input pull-up during the reset phase and after reset release.
10. High Sink LED driver capability available on PA0.
Table 5. Medium density STM8L15x pin description (continued)
Pin number
Pin name
Type
I/O level
Input Output
Main function
(after reset)
Default alternate
function
LQFP48 and UFQFPN48
LQFP32 and UFQFPN32
UFQFPN28
WLCSP28
floating
wpu
Ext. interrupt
High sink/source
OD
PP