Remote-processing RPC-2350 Manuel d'utilisateur Page 25

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 83
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 24
SERIAL PORTS CHAPTER 4
4-6
The table below is the pin out for SPI port J11.
Pin No. Description
1 Clock output to device
2 Serial data to external device
3 Serial data from external device
4 SPI 1 select (active low). Used for touch
screen select.
5 SPI 2 select (active low)
6 + 5V supply
7 Ground
SPI Port connector type information
The SPI port connector header is a Molex-Waldom type.
Its part number is 22-23-2071. This is a 0.1" center,
0.025 post connector.
The mating connector (terminal housing) part number is
22-01-3077. Cr imp terminal part number s are 08-50-
0114 (tin plate) or 08-55-0102 (gold). A low cost
crimping tool is 63811-1000. Parts and tools are
available from Digi-Key (800 344 4539 or
www.digikey.com)
Other housings and terminals are available (such as high
pressure). Refer to a Molex data book for more
information. AMP M T connectors (such as 87499-1)
can also be used. They fit, but are not polarized.
SERIAL PORT FILE NUMBERS
CAM BASIC references the ser ial I/O ports by file
numbers. The following table lists the corresponding
file number to serial I/O port and how they ar e used with
the various ports.
Description File Examples
COM1 1 PRINT "Hello"
PRINT #1," Hello"
INPUT A$
A$ = INKEY$(1)
COM2 2 PRINT #2," Hello"
INPUT #2,A$
A$ = INKEY$(2)
COM1 is J1, the console port. COM2 is J4, the primary
port.
COMMANDS
The following is a list of CAMBASIC commands used
for serial I/O. Some variations are not listed here. Refer
to the CAMBA SIC Programming Manual for more
information.
Command Function
CLEAR COM$ Clears serial input buffer
COM$ Returns string from buffer
CONFIG BREAK Prevents < ESC> from
stopping the program
CONFIG BAUD Sets serial port parameters
CONFIG COM$ Configures port for ON
COM $(n) interrupt
INKEY$ Returns a character from the
serial buffer
INPUT Receives string or number
from port
LIST Outputs program listing
ON COM$ Calls subroutine on serial input
PRINT Outputs data in various formats
SPI Serial I/O for external IC’s
TAB Tabs to predetermined positions
Vue de la page 24
1 2 ... 20 21 22 23 24 25 26 27 28 29 30 ... 82 83

Commentaires sur ces manuels

Pas de commentaire