mat.i2c.slave
Class  HD66717
java.lang.Object
  |
  +--mat.i2c.slave.HD66717
- public class HD66717
- extends java.lang.Object
  
Extrait de la doc
du HD66717:
Instruction List
            Code                                                        
Execution
-------------------------------------------------------------------------------------------------
Instruction No. R/W RS DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0     
Description             
Cycle *1
-------------------------------------------------------------------------------------------------
Status      SR   1  0  BF 
AC  AC  AC  AC  AC  AC  AC     
Reads busy flag (BF),         0
               
               which
indicates internal
               
               operations
are being
               
               performed,
and reads
               
               address
counter (AC).
-------------------------------------------------------------------------------------------------
Clear       CL   0  0 
0   0   0   0   0   0  
0   1       Clears entire display
and     310
display                                                   
sets DDRAM address 0 in
               
               address
counter.
-------------------------------------------------------------------------------------------------
Return      CH   0  0  0  
0   0   0   0   0   1  
0       Sets DDRAM address 0 in       
10
home                                                      
address counter.
-------------------------------------------------------------------------------------------------
Start       OS   0  0 
0   0   0   0   0   0  
1   1       Starts oscillation during     
-
oscillator                                                
standby mode.
-------------------------------------------------------------------------------------------------
Entry       EM   0  0 
0   0   0   0   0   1  
I/D OSC     Sets address update            
10
mode set                                                  
direction after RAM access
               
               (I/D),
and system clock
               
               
division (OSC)
-------------------------------------------------------------------------------------------------
Cursor      CR   0  0  0  
0   0   0   1   B/W  C 
B        Sets black-white inverting    
10
control                                                    
cursor (B/W), 8th rasterrow
               
               
                     
      cursor (C), and blink
               
               
                     
      cursor (B).
-------------------------------------------------------------------------------------------------
Display     DO   0  0  0  
0   0   1   0   DC  DS 
LC       Sets character display        
10
on/off                                                     
on/off (DC), segment
control                                                    
display on/off (DS), and
               
                
                     
     line-cursor on/off (LC).
-------------------------------------------------------------------------------------------------
Power       PW   0  0 
0   0   0   1   1  AMP SLP STB      
Turns on voltage-follower      10
control                                                    
and booster (AMP), and
               
               
                     
      sets sleep mode (SLP) and
               
               
                     
      standby mode (STB).
-------------------------------------------------------------------------------------------------
Display     DC   0  0  0  
0   1  NL1 NL0 DL3 DL2 DL1      
Sets the number of display     10
control                                                    
lines (NL) and the line to be
               
               
                     
      doubled in height.
-------------------------------------------------------------------------------------------------
Contrast    CN   0  0  0   1  
0  SN2 CT3 CT2 CT1 CT0       Sets the
display-start line    10
control                                                    
(SN2) and contrastadjusting
               
               
                     
      value (CT).
-------------------------------------------------------------------------------------------------
Scroll      SC   0  0  0  
1   1  SN1 SN0 SL2 SL1 SL0      
Sets the display-start line    10
control                                                    
(SN) and display-start
               
               
                     
      raster-row (SL).
-------------------------------------------------------------------------------------------------
Annunciator AS  0   0  1   0   0 
DA  AAN/AAN/AAN/AAN/      Turns on annunciator          
10
/SEGRAM                              
ASEG3ASEG2ASEG1ASEG0  display and sets
address set                                                
annunciator/SEGRAM
               
               
                     
      address.
-------------------------------------------------------------------------------------------------
CGRAM       CA  0   0 
1   0   1 ACG4 ACG3 ACG2 ACG1 ACG0   Sets the
initial CGRAM        10
address set                                                
address to the address
               
               
                     
      counter.
-------------------------------------------------------------------------------------------------
DDRAM       DA   0  0 
1   1   0   0   0   0   
ADD6 ADD5   Sets the initial higher      
10
address set                                                
DDRAM address to the
(upper bits)                                               
address counter.
-------------------------------------------------------------------------------------------------
DDRAM       DA   0  0 
1   1   1  ADD4 ADD3 ADD2 ADD1 ADD0 Sets the initial
lower         10
address set                                               
DDRAM address to the
(lower bits)                                              
address counter.
-------------------------------------------------------------------------------------------------
Write data  WD   0  1             
Write data             
Writes data to DDRAM,         
10
to RAM                                                    
CGRAM, SEGRAM, or
               
                
                     
    annunciator.
-------------------------------------------------------------------------------------------------
Read data   RD   1  1            
Read data               
Reads data from DDRAM,         10
from RAM                                                  
CGRAM, or SEGRAM.
-------------------------------------------------------------------------------------------------
      BF       = 1:        
Internally operating AC: Address counter
      I/D      = 1:        
Increment I/D = 0: Decrement
      OSC      = 1:        
System clock divided by four
      B/W      = 1:        
Black-white inverting cursor on C = 1: 8th raster-row cursor on
      B       
= 1:         Blink cursor on
      D       
= 1:         Display on
      DC       = 1:        
Character display on DS = 1: Segment display on
      LC       = 1:        
Line containing AC given cursor attribute
      AMP      = 1:        
Voltage-follower and booster on SLP = 1: Sleep mode
      STB      = 
:         Standby mode
      NL1,NL0:             
Number of display lines [00: 1line (1/10 duty ratio), 01: 2 lines (1/18 duty
ratio),
               
            10: 3 lines (1/26 duty ratio),11:4
lines (1/34 duty ratio)]
      DL3-DL1:             
Double-height lines (DL1 = 1: 1st line, DL2 = 1: 2nd line, DL3 = 1: 3rd line)
      CT3-CT0:             
Contrast adjustment
      SN2-SN0:             
Display-start line (000: 1st line, 001: 2nd line, 010: 3rd line, 011: 4th
line, 100: 5th line)
      SL2-SL0:             
Display-start raster-row (000: 1st raster-row... 111: 8th raster-row)
      DA       = 1:        
Annunciator display on
      AAN/ASEG = 0000-0010: Annunciator address
AAN/ASEG = 1000 1111: SEGRAM address
      ACG4-ACG0:           
CGRAM address (00000 11111)
      ADD6-ADD0:           
DDRAM address (0000000 1001011)
---------------------------------------------------------------------------------------------------------------
Note: 1. Represented by the number of operating clock pulses; the execution
time depends on the
supplied clock frequency or the internal oscillation frequency.
---------------------------------------------------------------------------------------------------------------
| 
Field Summary | 
(package private)  byte[] | 
trame
 
            | 
(package private)  int | 
x
 
            | 
(package private)  int | 
y
 
            | 
 
 
| Methods inherited from class java.lang.Object | 
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
trame
byte[] trame
x
int x
y
int y
getInstance
public static HD66717 getInstance(int adresse,
                                  java.lang.Object utilisateur)
                           throws PortException
removeInstance
public void removeInstance(java.lang.Object utilisateur)
initHD66717
public void initHD66717()
setContrast
public void setContrast(int contrast)
writeHD66717
public void writeHD66717(boolean command,
                         byte[] barr)
printAt
public void printAt(int x,
                    int y,
                    java.lang.String text)
print
public void print(java.lang.String text)
print
public void print(char caractere)
gotoXY
public void gotoXY(int x,
                   int y)
setCursor
public void setCursor(byte cursorType)