Texas Instruments TI-83 Plus Manual page 87

Third release
Hide thumbs Also See for TI-83 Plus:
Table of Contents

Advertisement

Chapter 2: TI-83 Plus Specific Information
The LCD has a delay requirement of approximately 10us between operations.
The following routine should provide adequate delay on the TI-83 Plus (not Silver
Edition).
lcd_busy:
If the application is run on the Silver Edition at fast speed, the above routine will
not provide a long enough delay. There are three options for solving this
problem.
Triple or quadruple the delay time of the in-line code. This will solve the
problem, but it may reoccur if another faster version is produced.
Do B_CALL LCD_BUSY. This is guaranteed to work, but may slow down a
display intensive application.
Use a CALL LCD_BUSY_QUICK, where LCD_BUSY_QUICK is equated to
000Bh. This is a new entry point that does not require the system overhead
of a B_CALL. This call also works on earlier TI-83 Plus versions, but runs
slightly faster than the required 10us and modifies the z/nz status flag. To
use this on all versions, wrap it in another routine that saves and restores the
flag register.
lcd_busy_2:
This will ensure that the routine runs on both the TI-83 Plus and Silver Edition
with minimal additional time delays.
Communication is done with the drive through two IO ports:
lcdinstport = 10h command port
lcddataport = 11h data port
Addressing a byte of RAM
Row (X) addressing
Commands 80h to BFh — sets the row address to 0 – 63 or top to bottom
rows.
Top Row
TI-83 Plus Developer Guide
PUSH
AF
INC
HL
DEC
HL
POP
AF
RET
PUSH
AF
CALL
LCD_BUSY_QUICK
POP
AF
RET
LD
A,80h
CALL
lcd_busy_2
OUT
(lcdinstport),A
; = 000Bh
; top row
Third Release May 28, 2002
77

Advertisement

Table of Contents
loading

Table of Contents