Post Reply 
HP-IL with HP 82163A Video Interface
11-08-2014, 03:46 PM (This post was last modified: 11-08-2014 03:56 PM by Sylvain Cote.)
Post: #4
RE: HP-IL with HP 82163A Video Interface
(11-08-2014 10:42 AM)institches Wrote:  Thanks for your prompt reply. I tried your example and I can display the @ character on the screen as you described. I take it the 7 refers to displaying the character on the screen?
I now have a better understanding of the codes but I still don't understand the manual when it says "Escape Sequence 'EC A' Character Codes 27 65 Moves the cursor up one line..."
I am reading this from the 82163 manual.

Just in case, ESC or EC or Escape or character code 27 is all the same.

The following, is a small program extract that should get you started

Code:

01 LBL "VIS"    sub: Video Interface Selection
02 MANIO        set HP-IL in manual mode
03 1            device address in the loop, change this as needed
04 SELECT       select specified address
05 SF 17        activate hp-41 append mode
06 RTN          end sub
07 LBL 99       sub: build escape string with X code
08 27           the escape code
09 XTOA         generate the escape character
10 RDN          roll down stack
11 XTOA         generate the specified character
12 RTN          end sub
13 LBL "DTL"    sub: Display Text Line
14 CF 17        deactivate hp-41 append mode
15 OUTA         send the alpha string to the selected device and goto next line
16 SF 17        activate hp-41 append mode
17 RTN          end sub
18 LBL "DT"     sub: Display Text
19 OUTA         send the alpha string to the selected device
20 RTN          end sub
21 LBL "CUP"    sub: Cursor Up
22 CLA          clear alpha
23 65           cursor up code
24 XEQ 99       build escape string
25 OUTA         send the alpha string to the selected device
26 RTN          end sub
27 LBL "CDN"    sub: Cursor Down
28 CLA          clear alpha
29 66           cursor down code
30 XEQ 99       build escape string
31 OUTA         send the alpha string to the selected device
32 RTN          end sub
33 LBL "VCD"    sub: Video Clear Device
34 CLA          clear alpha
35 69           clear device code
36 XEQ 99       build escape string
37 OUTA         send the alpha string to the selected device
38 RTN          end sub
...             you add what you need at this point :-)

From the run mode ...

XEQ "VIS" will setup the interface and the calculator
XEQ "VCD" will clear the video device
XEQ "DTL" will display on video the alpha content and go to the beginning of the next line
XEQ "DT" will display on video the alpha content
XEQ "CUP" will move the cursor up by one line
XEQ "CDN" will move the cursor down by one line

Have fun!

Sylvain

edit: typo
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP-IL with HP 82163A Video Interface - Sylvain Cote - 11-08-2014 03:46 PM



User(s) browsing this thread: 1 Guest(s)