ST10F269-T3
Figure 20 :
Hysteresis for Special Input Thresholds
Hysteresis
Input level
Bit state
12.2.3 - Output Driver Control
The port output control registers POCONx allow
to select the port output driver characteristics of a
port. The aim of these selections is to adapt the
output drivers to the application鈥檚 requirements,
and to improve the EMI behaviour of the device.
Two characteristics may be selected:
Edge characteristic
defines the rise/fall time for
the respective output. Slow edges reduce the
peak currents that are sinked/sourced when
changing the voltage level of an external
capacitive load. For a bus interface or pins that
are changing at frequency higher than 1MHz,
however, fast edges may still be required.
Driver characteristic
defines either the general
driving capability of the respective driver, or if the
POCONx (F0yyh / zzh) for 8-bit Ports
15
-
14
-
13
-
12
-
11
-
10
-
9
-
driver strength is reduced after the target output
level has been reached or not. Reducing the
driver strength increases the output鈥檚 internal
resistance, which attenuates noise that is
imported via the output line. For driving LEDs or
power transistors, however, a stable high output
current may still be required as described below.
This rise / fall time of 4 I/O pads (a nibble) is
selected using 2-bit named
PNxEC.
That means
Port Nibble
(x = nibble number, it could be 3 as for
Port 2.15 to 2.12)
Edge Characteristic.
The sink / source capability of the same 4 I/O
pads is selected using 2-bit named
PNxDC.
That
means
Port Nibble
(x = nibble number)
Drive
Characteristic
(See Table 14).
Reset Value: --00h
6
RW
5
RW
4
3
RW
2
1
RW
0
PN1DC
PN1EC
PN0DC
PN0EC
ESFR
8
-
7
POCONx (F0yyh / zzh) for 16-bit Ports
15
RW
Bit
14
13
RW
12
11
RW
10
9
RW
PN3DC
PN3EC
PN2DC
PN2EC
ESFR
8
7
RW
Function
6
5
RW
4
3
PN1DC
PN1EC
Reset Value: 0000h
2
RW
1
RW
0
PN0DC
PN0EC
PNxEC
Port Nibble x Edge Characteristic (rise/fall time)
00:
Fast edge mode, rise/fall times depend on the size of the driver.
01:
Slow edge mode, rise/fall times ~60 ns
10:
Reserved
11:
Reserved
Port Nibble x Driver Characteristic (output current)
00:
High Current mode:
Driver always operates with maximum strength.
01:
Dynamic Current mode:
Driver strength is reduced after the target level has been reached.
10:
Low Current mode:
Driver always operates with reduced strength.
11:
Reserved
PNxDC
Note: In case of reading an 8 bit P0CONX register, high Byte (bit 15.8) is read as 00h
58/160