English
Language : 

W83787IF Datasheet, PDF (121/123 Pages) Winbond – WINBOND I/O WITH SERIAL-INFRARED SUPPORT
2-1. Short the terminal of IRTX and IRRX, then use the program TIR.EXE supplied by Winbond.
2-2. Also you can use DEBUG.EXE command in DOS prompt. The commands are shown as follows:
-O 2fb 80
// First you must set Baud rate in COMB.
-O 2f8 0c
// Set Baud rate 9600bps
-O 2f9 00
-O 2fb 03
*** Test IR function ***
- I 2f8 // Clear the data buffer
- I 2fd // The return value must be 60, if not, you must execute "-i 2f8" until "-i 2fd" return 60
- O 2f8 aa
- I 2fd // Must return "61", i.e, there is a data in data register.
- I 2f8 // Must return "AA", that is, read data from data register
- O 2f8 55
- I 2fd // Must return "61"
- I 2f8 / Must return "55"
You can output any 8-bit value to the data register, and then you can receiver an original send value. If
you have finished the above phase and obtained correct results, I congratulate you, i.e., you have finished
the IR testing roughly.
3-1. If you have IR module such as HPSIR or SIR2 or TEMIC, you can connect the module to 787IF. Then
repeat above method, and you should obtain same results.
D. Application test:
Our 787IF have been tested by the some applications such lap-linker (LL5.EXE, version 5.0), fx-linker (FX.EXE,
version 2.0), and PUMA's tranxit (executing for windows). In this testing you must have two computers with IR function.
Note that: (1) if you use LL5.EXE or FX.EXE, you should configure the register of 787IR to half duplex
because the applications are old version which do not support IR function and the IR is only
using in half duplex.
duplex can
What is half duplex? That is, IR receiver (IRRX) could not receive any data when the IR
transceiver (IRTX) transmit data. This is called half duplex. In the other word, full
receive and transmit data simultaneously.
operation.
(2) If you use Trasxit or another application tools which support IR function, you must set the
configuration register of 787IF to Full duplex, otherwise they can not be normal
Introduction of SELFTIR.EXE
The program is self-test W83787IF IR function in the full duplex which is similar to UART loopback function. If you have
no IR module, you still to test the IR function. As follows, we show the procedure of this program.
787I APN 4
Page 2 of 4