Remote-processing RPC-2350 Uživatelský manuál Strana 52

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 83
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 51
CHAPTER 10 DISPLAY PORT
10-1
Figure 10-1 LCD character connector and contrast adjust
CHAPTER SYNOPSIS
Differences between RPC-2350 and RPC -2350G
Programming for a display
Multiple use note
DESCRIPTION
DISPLA Y POR TS CHA PTER 10
A display, in conjunction with a keypad, can give an
operator feedback on operation status and some level of
control over the process.
There are two display ports on the RPC-2350G: J6 is for
LCD character displays and J9 or J13 are for graphics
displays. The RPC -2350 has only J6, used for LCD and
VF character displays. This chapter discusses J6. See
Chapter 15 for graphics display port.
The LCD character and gr aphic por ts operate
independently of each other. The LCD character port
uses port A from an 82C 55 PIO chip. These lines at J6
are shared with some on J3 also. The graphics port has
its own driver and memory.
CAM BASIC comm ands are provided to position and
write characters to each display. Additional commands
are provided to draw lines, turn pixels on and off, and
print large characters on the graphics display.
LCD CHARACTER PORT J6
You can use Liquid Crystal Displays (LCD) or vacuum
fluorescent displays at J6. Display sizes range from 1
line by 8 characters to 4 lines by 40 characters.
The pin out at J6 is designed to plug directly into Remote
Processing L CD 4 x 40 and LC D 4 x 20 displays.
Simply plug these displays into J6. A contrast
adjustment pot, R 13, controls the viewing angle. This
pot is adjusted after J6 is properly configured.
Any number of other LCD displays may be used. See
the table at the end of this sub-section for cable pin out.
Configuring J6 for a display
Two lines of CAM BASIC code must be executed in the
proper order befo re J6 is ready for displays.
First, you must configure the digital I/O port using the
CONF IG PIO command. Port A must be configured as
an output. If you are using a keypad, then set port C as
shown in the example below. Port B is usually set to an
output to drive the high current sinks. Refer to Chapter
6, DIGITAL I/O, for m ore information on port B and
general programming information.
Put the following line of code in your program:
CONFIG PIO 1,0,x,x,x,64
‘X’ parameter is 0 or 1 as needed in your application.
Refer to the CAMBA SIC Programming Manual for more
information about CONFIG PIO. The address for the
display PIO chip is 64.
Next, determine the type of display you will be using.
Refer to the CAMBA SIC Programming Manual for a list
of types under CONFIG DISPLAY.
The following example configures J6 for a LCD 4 x 20
display:
CONFIG DISPLAY 64,4,1
The cursor was selected as blinking.
There are two LCD character display demonstration
programs that show how to position and write to the
display:
LCD440.BAS Writes to LCD 4 x 40
LCD420.BAS Writes to LCD 4 x 20
USING TWO DISPLAYS
The RPC-2350G is not intended to use both character
and graphics displays simultaneously. There is no
provision for switching the software between two
displays.
Zobrazit stránku 51
1 2 ... 47 48 49 50 51 52 53 54 55 56 57 ... 82 83

Komentáře k této Příručce

Žádné komentáře