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

  • 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 50
KEYPAD PORT CHAPTER 9
9-2
The following example sets up CAMBASIC to scan a 16
position keypad. P orts A and B are set fo r outputs
(presumably to drive the LCD display and high current
port) The results are echo' ed to the display.
10 CONFIG PIO 1,0,0,1,0,64
20 'Optionally change keypad char 'B'
30 ' to the letter 'M'
40 POKE SYS(8)+7,77
60 ON KEYPAD$ 16 GOSUB 500
70 PRINT " Enter a number";
100 'loop for this example
110 GOTO 100
500 A$ = KEYPAD$(0)
510 IF A$ = "C" THEN ..clear_beep
520 IF A$ = CHR$(13) THEN ..enter
530 PRINT A$;
540 B$ = B$+A$
560 RETURN
600 ..clear_beep
610 B$=""
630 DELAY .4
650 PRINT CHR$(12); “ ” CAR$(12);
660 RETURN
700 ..enter
710 FL = 1
730 RETURN
Program Explanation
Lines 10-80 set up the parameters for the keypad.
Lines 500 to 730 process the key press. If a "C " or "#"
is pressed, it is an exception and is handled that way.
Otherwise, the character is displayed and stored.
Lines 700 to 730 process the "enter" key. The enter
flag, FL , is set to a 1 to indicate to another part of the
program that B$ has complete data.
The KEYPAD$(0) function returns a single character
string that has been assigned to a particular key.
Characters ar e assigned usin g the SYS(8 ) statemen t.
Keypad Commands
There are several keypad commands. See the table at
the end of this chapter.
KEYPAD PORT PI N OUT - J5
The keypad port uses port C from an 82C55. Lower
port C is configured as an input. Upper port C are
outputs.
The table below lists J5' s pin out, 82C55 port and bit,
and its intended function.
Pin 82C55
Port/bit @ U19
Function
1 C/0 Row 1
2 C/6 Column 3
3 C/5 Column 2
4 C/1 Row 2
5 C/2 Row 3
6 C/4 Column 1
7 C/7 Column 4
8 C/3 Row 4
9 B/0 Column 5
10 B/1 Column 6
Ground is not used.
COMMANDS
The following is a list of CAMBASIC commands for the
keypad.
Command Function
CONFIG PIO Configures digital I/O port
INPUT KEYPAD$ Input data from a keypad
KEYPA D$(n) Returns last key from keypad
port.
ON KEYPAD $ 16
ON KEYPAD $ 24
Causes a program branch
when a key is pressed
SYS(8) Returns keypad string address
to modify characters.
Vue de la page 50
1 2 ... 46 47 48 49 50 51 52 53 54 55 56 ... 82 83

Commentaires sur ces manuels

Pas de commentaire

LG OLED55C7V manuals

Owner’s manuals and user’s guides for Unknown LG OLED55C7V.
We providing 5 pdf manuals LG OLED55C7V for download free by document types: User Manual






More products and manuals for Unknown LG

Models Document Type
T8 User Manual   LG T8 Owner’s Manual, 2 pages
LPUY72D2G.ACN User Manual   LG LPNY722GDAA.ACN,LPNY7224DAA,LPNY722NDAA.ACN,LPUY72D24.ACN,LPUY72D2G.ACN,LPUY72D2N.ACN 产品说明书, 40 pages
32SM5KB-B User Manual LG 22SM3B-B,32SM5KB-B,32SM5B-B,55SM5B-B,SM3B,SM5-K-B Οδηγός Χρήσης, 56 pages
L228 User Manual   LG L228 Інструкція користувача, 29 pages
NB4530A User Manual   LG NB4530A Руководство пользователя [et] , 32 pages
50PZ950S User Manual   LG 50PZ950S,42LV3701,42LV3700,50PZ750S,60PZ750S,60PZ950S Інструкція користувача, 155 pages
SJ8S User Manual LG SJ8S Brukermanual, 73 pages
GR-M237JGNN User Manual   LG GR-M237JGNN Owner’s Manual, 36 pages
GC-B399BLCW User Manual LG GC-B399BCW,GC-B399BLCW Brukermanual, 27 pages
F4J6JY0W User Manual LG F4J6JY0W Instruktionsbogen, 48 pages
RE-44NZ21RB User Manual   LG RE-44NZ21RB Owner’s Manual, 28 pages
WD-1465FD User Manual LG WD-1465FD Instruktionsbogen, 27 pages
JTNQ48GMLE3.APUNE User Manual     LG JTNQ18GPLE3.APUNE,JTNQ24GNLE3.APUNE,JTNQ36GMLE3.APUNE,JTNQ42GMLE3.APUNE,JTNQ48GMLE3.APUNE Owner’s Manual, 85 pages
PDRYCB400.ENCXLEU User Manual   LG PDRYCB400.ENCXLEU Owner’s Manual, 16 pages
22LS4R User Manual   LG 19LS4R,17LS5R,22LS4R,20LS5R Εγχειρίδιο Χρήσης, 72 pages
GC-B247SLUV User Manual   LG GC-B247SLUV คู่มือการใช้งาน [it] , 38 pages
RT-29CC25VB User Manual   LG RT-29CC25VB Owner's manual, 32 pages
GA-B439ZLQA User Manual   LG GA-B439YAQA,GA-B439ZAQZ,GA-B489YAKZ,GA-B439ZAQA,GA-B439ZLQA Руководство пользователя, 32 pages
47WS50MS-B User Manual   LG 47WS50MS-B Інструкція користувача, 85 pages
T2515VSAM User Manual   LG T2515VSAM Owner’s Manual, 45 pages