DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

ST92E163N4D0 View Datasheet(PDF) - STMicroelectronics

Part Name
Description
Manufacturer
ST92E163N4D0 Datasheet PDF : 224 Pages
First Prev 11 12 13 14 15 16 17 18 19 20 Next Last
ST92163 - GENERAL DESCRIPTION
How to configure the I/O ports
To configure the I/O ports, use the information in
Table 3 and Table 4 and the Port Bit Configuration
Table in the I/O Ports Chapter on page 100.
I/O Note = the hardware characteristics fixed for
each port line.
Inputs:
– If I/O note = TTL/CMOS, either TTL or CMOS in-
put level can be selected by software.
– If I/O note = Schmitt trigger, selecting CMOS or
TTL input by software has no effect, the input will
always be Schmitt Trigger.
Outputs:
– If I/O note = Push-Pull, either Push Pull or Open
Drain can be selected by software.
– If I/O note = Open Drain, selecting Push-Pull by
software has no effect, the input will always be
Open Drain.
Alternate Functions (AF) = More than one AF
cannot be assigned to an external pin at the same
time: it can be selected as follows, but simultane-
ous availability of several functions of one pin is
obviously impossible.
AF Inputs:
– AF is selected implicitly by enabling the corre-
sponding peripheral. Exceptions to this are ADC
inputs which are selected explicitly as AF by soft-
ware.
AF Outputs or Bidirectional Lines:
– In the case of Outputs or I/Os, AF is selected
explicitly by software.
Example 1: Timer/Watchdog input
AF: WDIN, Port: P5.5, I/O note: Input Schmitt Trig-
ger.
Write the port configuration bits:
P5C2.5=1
P5C1.5=0
P5C0.5=1
Enable the WDT peripheral by software as de-
scribed in the WDT chapter.
Example 2: Timer/Watchdog output
AF: WDOUT, Port: P5.7, I/O note: None
Write the port configuration bits:
P5C2.7=0
P5C1.7=1
P5C0.7=1
Example 3: ADC input
AF: AIN0, Port: P6.2, I/O note: Does not apply to
ADC
Write the port configuration bits:
P6C2.2=1
P6C1.2=1
P6C0.2=1
18/224

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]