UM0629
2.9
2.10
2.11
Downloaded from
Elcodis.com
electronic components distributor
Display and input devices
Display devices available are:
122x32 dot-matrix serial interface LCD (U2)
4 general purpose LED's (LD2,3,4,5)
Input devices available are:
4-direction joystick
selection key
general purpose button (B2)
Table 5.
122x32 dot matrix LCD U13
Pin on U2
1
2
3
4
5
6
7
8
Bi-color LED
A bi-color LED is connected to PB0 through a voltage translator which guarantees that the
bi-color LED works when the STM8L101 is powered by an adjustable voltage from 1.8 V to
3.3 V.
Economic measurement and potentiometer RV1
The economic measurement solution is demonstrated based on the internal comparator
inside the STM8L101 and potentiometer RV1.
As shown in
Figure
5, the voltage divided by resister bridge R10 and R11 can be measured
by using an internal comparator of the STM8L1, with Vref connected to channel 2 of the
comparator and an RC charge circuit connected to the COM channel of the comparator.
To measure the voltage Vin from the potentiometer:
1.
Compare Vref with the voltage on C8 which is charged by a series of pulses generated
by PC4.
2.
Record pulse number PN_Vref when the voltage on C8 reaches voltage reference Vref.
3.
Another charge pulse PN_Vin can be obtained with voltage connected to CH1 also like
PN_Vref.
4.
The voltage Vin can be calculated based on both numbers PN_Vref and PN_Vin.
Description
Vss
Vcc
VO
CLK
SID
CS
A
K
Doc ID 15312 Rev 2
STM8L1/L2 motherboard
Pin connection
GND
+3V3
-
PB5
PB6
PD1
+5V
GND
11/26
Need help?
Do you have a question about the STM8L101-EVAL and is the answer not in the manual?