Datasheet

4D SYSTEMS DIABLO16 Processor
© 2014 4D SYSTEMS Page 24 of 33 www.4dsystems.com.au
DIABLO16 PROCESSOR
DIABLO16 System Registers and Flags (continued…)
LABEL
ADDRESS
USAGE
DEC
HEX
MEDIA_SECTOR_HI
93
0x5D
micro-SD sector address HI
MEDIA_SECTOR_COUNT
94
0x5E
micro-SD number of bytes remaining in sector
TEXT_XPOS
95
0x5F
text current x pixel position
TEXT_YPOS
96
0x60
text current y pixel position
TEXT_MARGIN
97
0x61
text left pixel pos for carriage return
TXT_FONT_ID
98
0x62
font type, 0 = system font, else pointer to user font
TXT_FONT_MAX
99
0x63
max number of chars in font
TXT_FONT_OFFSET
100
0x64
starting offset (normally 0x20)
TXT_FONT_WIDTH
101
0x65
current font width
TXT_FONT_HEIGHT
102
0x66
Current font height
GFX_TOUCH_REGION_X1
103
0x67
touch capture region
GFX_TOUCH_REGION_Y
104
0x68
GFX_TOUCH_REGION_X2
105
0x69
GFX_TOUCH_REGION_Y2
106
0x6A
GFX_CLIP_LEFT_VAL
107
0x6B
left clipping point (set with gfx_ClipWindow(...)
GFX_CLIP_TOP_VAL
108
0x6C
top clipping point (set with gfx_ClipWindow(...)
GFX_CLIP_RIGHT_VAL
109
0x6D
right clipping point (set with gfx_ClipWindow(...)
GFX_CLIP_BOTTOM_VAL
110
0x6E
bottom clipping point (set with gfx_ClipWindow(...)
GFX_CLIP_LEFT
111
0x6F
current clip value (reads full size if clipping turned off)
GFX_CLIP_TOP
112
0x70
current clip value (reads full size if clipping turned off)
GFX_CLIP_RIGHT
113
0x71
current clip value (reads full size if clipping turned off)
GFX_CLIP_BOTTOM
114
0x72
current clip value (reads full size if clipping turned off)
GRAM_PIXEL_COUNT_LO
115
0x73
LO word of count of pixels in the set GRAM area
GRAM_PIXEL_COUNT_HI
116
0x74
HI word of count of pixels in the set GRAM area
TOUCH_RAW_X
117
0x75
12 bit raw A2D X value from touch screen
TOUCH_RAW_Y
118
0x76
12 bit raw A2D Y value from touch screen
GFX_LAST_CHAR_WIDTH
119
0x77
calculated char width from last call to charWidth function
GFX_LAST_CHAR_HEIGHT
120
0x78
calculated height from last call to charHeight function
GFX_LAST_STR_WIDTH
121
0x79
calculated width from last call to strWidth function
GFX_LAST_STR_HEIGHT
122
0x7A
calculated height from last call to strHeight function
PIN_COUNTER_PA4
123
0x7B
pin counter for PA4
PIN_COUNTER_PA5
124
0x7C
pin counter for PA5
PIN_COUNTER_PA6
125
0x7D
pin counter for PA6
PIN_COUNTER_PA7
126
0x7E
pin counter for PA7
PIN_COUNTER_PA8
127
0x7F
pin counter for PA8
PIN_COUNTER_PA9
128
0x80
pin counter for PA9
PIN_EVENT_PA4
129
0x81
pin counter rollover event for PA4
PIN_EVENT_PA5
130
0x82
pin counter rollover event for PA5
PIN_EVENT_PA6
131
0x83
pin counter rollover event for PA6
PIN_EVENT_PA7
132
0x84
pin counter rollover event for PA7
PIN_EVENT_PA8
133
0x85
pin counter rollover event for PA8
PIN_EVENT_PA9
134
0x86
pin counter rollover event for PA9
QEN1_COUNTER_LO
135
0x87
quadrature encoder #1 counter LO
QEN1_COUNTER_HI
136
0x88
quadrature encoder #1 counter HI
QEN1_DELTA
137
0x89
quadrature encoder #1 delta count
QEN2_COUNTER_LO
138
0x8A
quadrature encoder #2 counter LO
QEN2_COUNTER_HI
139
0x8B
quadrature encoder #2 counter HI
QEN2_DELTA
140
0x8C
quadrature encoder #2 delta count
FALSE_REASON
141
0x8D
explanation 'false' results, currently only for flash_ functions
NOTE: These registers are accessible with peekW and pokeW functions.