dsPICDEM? 1.1 Plus Development Board User’s Guide
B.3
COMMANDS
B.3.1
Command Structure
All commands recognized by the LCD controller are one to three bytes in length.
The command structure is designed to follow a simple rule that allows the interface to
be self-synchronizing at the command level (i.e., if a command is corrupted for some
reason, the controller can resynchronize on the command stream without special error
recovery procedures). The rule is that the first byte of a command always has its
MSB = 1 and the remaining bytes of the command have their MSB = 0 . There is an
exception to the rule that MSB = 0 for all bytes except the first byte. Some of the column
commands can have data in the MSB of their second byte and thus, may violate this
rule. The processing code in the LCD controller will parse these special commands and
allow the command exception.
All commands follow the form of a leading identification byte followed by zero to three
data bytes. The data bytes are not condensed or combined with other data, or modified
from the native form of the data. There is no handshaking or flow control required
because of the speed and buffer depth of the controller. This greatly simplifies the
interface on the dsPIC DSC side since there is little advantage to putting wrappers
around the individual commands. Nothing needs to be done to the data other than to
send it.
B.3.2
Command Types
The LCD has three data types, each based on its own independent coordinate
systems. The data types are:
? Character
? Pixel
? Column
Associated with each coordinate system is a “current” position of which each is
independent of the other. These positions are:
? CharPos
? PixPos
? ColPos
B.3.2.1
CHARACTERS
The character commands are used to write characters to the display. The character
coordinates are based on a 5 x 7 dot font justified to the upper left corner of the 6 x 8
box. The character cursor is a 5-pixel wide horizontal line that is justified to the lower
left corner of the 6 x 8 box and can be turned on or off, or can be set to blink.
Character operators are based on character coordinates R and C (i.e., Row and
Column). The current position, CharPos , specifies both the location of the character
cursor and the default position that the next character command will use. The home
position is the top left of the LCD display, ChrPos = (0,0).
The LCD accommodates four character rows (0-3) and 20 character columns (0-19).
Unless otherwise specified, incrementing ChrPosC beyond column 19 will wrap to the
next row (i.e., ChrPosC = 0 and ChrPosR + 1). If ChrPosR exceeds 3, it will wrap to
row 0.
DS70099D-page 76
? 2006 Microchip Technology Inc.
相关PDF资料
DM330012 KIT USB STARTER FOR DSPIC33E
DM330013 MICROSTICK DSPIC33F/PIC24H BOARD
DNET1 SURGE SUPPRESSOR ETHERNET RJ45
DR-8094 RACK DOUBLE 84"X20.25"X36" BLK
DR-IAC5E INPUT MODULE AC 5VDC
DRIDC24A INPUT MODULE DC 34MA 24VDC
DRODC24 OUTPUT MODULE DC 13MA 24VDC
DRR-40A MODULE REDUNDANCY 40A DIN RAIL
相关代理商/技术参数
DM300027 功能描述:开发板和工具包 - PIC / DSPIC 16-bit Starter Demo Board RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM-3-000-K 制造商:PacTec 功能描述:Case, Plastic; ABS; Black; 11.46 in.; 3.38 in.; 10.4 in.; UL 94-HB Rated 制造商:PacTec 功能描述:ENCLOSURE, DESKTOP, PLASTIC, BLACK; Enclosure Type:Desktop; Enclosure Material:Plastic; Body Color:Black; External Height - Imperial:3.38"; External Height - Metric:86mm; External Width - Imperial:10.4"; External Width - Metric:264mm;RoHS Compliant: Yes
DM-300-C 制造商:Greenlee Textron Inc 功能描述:DMM 1000V RMS
DM-301 制造商:Labfacility Limited 功能描述:SENSOR PT100 THIN FILM 2X2.3MM CL B 制造商:LABFACILITY 功能描述:SENSOR, PT100, THIN FILM, 2X2.3MM, CL B 制造商:LABFACILITY 功能描述:TEMPERATURE RTD SENSOR, -70C to +500C, 100 OHM; Sensing Temperature Min:-70C; Sensing Temperature Max:+500C; Resistance:100ohm; Sensor Terminals:Through Hole; Temperature Sensing Range:-70C to +500C ;RoHS Compliant: Yes
DM30103J 制造商:ELMCO 功能描述:
DM30113G 制造商:n/a 功能描述:DM30X311 S7C8B
DM30-113G 制造商:n/a 功能描述:DM30X311 S7C8B
DM30133J 制造商:n/a 功能描述:DM30X313 S7C8B