Microcomputer Systems MSI-P602 Manual de usuario Pagina 12

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 17
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 11
Page 12 MSI-P604 User Manual
CASE “2” ‘set digital outputs to &h5 ‘(send &HA since MCR bits
are inverted)
outvalue = &HA ‘ inverted bit is sent to J1
GOSUB setDOutput
GOTO begin
CASE “3” ‘set digital outputs to &hA ‘(send &H5 since MCR
bits are inverted)
outvalue = &H5 ‘ inverted bit is sent to J1
GOSUB setDOutput
GOTO begin
CASE “4” ‘display digital inputs
GOSUB getDInputs
GOTO begin
CASE “5”
CLS : PRINT “”
INPUT “Enter 1, 2, 3 or 4 for COM1, COM2, COM3 or
COM4 = “, x
SELECT CASE x
CASE 1: PRIMARY = &H3F8: PRINT “JP2
Jumpers: A8 Off, A4 Off”
WHILE INKEY$ = “”: WEND: GOSUB init
OFFSET = 0
CASE 2: PRIMARY = &H2F8: PRINT “JP2 Jumpers: A8
On, A4 Off”
WHILE INKEY$ = “”: WEND: GOSUB init
OFFSET = 0
CASE 3: PRIMARY = &H3E8: PRINT “JP2 Jumpers: A8
Off, A4 On”
WHILE INKEY$ = “”: WEND: GOSUB init
OFFSET = 0
CASE 4: PRIMARY = &H2E8: PRINT “JP2 Jumpers: A8
On, A4 On”
WHILE INKEY$ = “”: WEND: GOSUB init
OFFSET = 0
CASE ELSE: PRINT “Error. Repeat entry”
WHILE INKEY$ = “”: WEND
END SELECT
GOTO begin
CASE “6”
OUT PRIMARY + 1, 1
GOTO begin
CASE “7” ‘Set NMEA Protocol to Factory Default
gpsmsg$ = “$PMTK104”
GOSUB sendmsg
GOTO begin
CASE “8” ‘Send NMEA Message to GPS Module
CLS : PRINT “”
Vista de pagina 11
1 2 ... 7 8 9 10 11 12 13 14 15 16 17

Comentarios a estos manuales

Sin comentarios