ST7265XEVALMS STMicroelectronics, ST7265XEVALMS Datasheet - Page 50

no-image

ST7265XEVALMS

Manufacturer Part Number
ST7265XEVALMS
Description
Manufacturer
STMicroelectronics
Datasheet

Specifications of ST7265XEVALMS

Lead Free Status / Rohs Status
Supplier Unconfirmed
ST7265x
I/O PORTS (Cont’d)
9.2.5 Bit manipulation on Open Drain Outputs
As mentioned in
avoid using bit manipulation instructions on the DR
register in open drain output mode, but must al-
ways access it using byte instructions. If bit manip-
ulation is needed, the solution is to use a copy of
the DR register in RAM, change the bits (using
BRES or BCLR instructions for example) and copy
the whole byte into the DR register each time the
value has to be output on a port. This way, no bit
manipulation is performed on the DR register but
each bit of the DR register can be controlled sepa-
rately.
9.3 I/O PORT IMPLEMENTATION
The hardware implementation on each I/O port de-
pends on the settings in the DDR and OR registers
and specific feature of the I/O port such as ADC In-
put or true open drain.
Port B (without Option Register)
PB[7:0]
Table 14. Port Configuration (with Option Register)
50/163
1
floating input
push-pull output
Port A
Port C
Port D
Port E
Port F
Port
PA7:0
PC7:4
PC3:0
PD7:0
PE7:6
PE5
PE4:3
PE2:0
PF6:4
PF3:2
PF1:0
Pin name
MODE
Section
9.2.2, software should
OR = 0
floating
floating
floating
floating
floating
floating
floating
floating
floating
floating
floating
Input
with pull-up, if se-
byte see
lected by option
DDR
with interrupt
with interrupt
with interrupt
with interrupt
0
1
OR = 1
floating
floating
floating
floating
15.1)
Section
Switching these I/O ports from one state to anoth-
er should be done in a sequence that prevents un-
wanted side effects. Recommended safe transi-
tions are illustrated in
are potentially risky and should be avoided, since
they are likely to present unwanted side-effects
such as spurious interrupt generation.
Figure 32. Interrupt I/O Port State Transitions
The I/O port register configurations are summa-
rized as follows.
floating/pull-up
see
ed by option byte
pull-up, if select-
open drain (with
interrupt
INPUT
01
open drain
open drain
open drain
open drain
open drain
Section
OR = 0
True open drain
True open drain
15.1)
push-pull
push-pull
push-pull
(reset state)
floating
INPUT
00
push-pull
push-pull
push-pull
push-pull
push-pull
push-pull
Figure 32
Output
OR = 1
open-drain
OUTPUT
10
XX
Other transitions
= DDR, OR
High-Sink
OUTPUT
push-pull
Yes
Yes
Yes
Yes
Yes
Yes
No
No
No
No
No
11