Datasheet

4D SYSTEMS DIABLO16 Processor
© 2014 4D SYSTEMS Page 23 of 33 www.4dsystems.com.au
DIABLO16 PROCESSOR
9. System Registers Memory Map
The following tables outline in detail the DIABLO16 system registers and flags.
DIABLO16 System Registers and Flags
LABEL
ADDRESS
USAGE
DEC
HEX
RANDOM_LO
32
0x20
random number generator LO word
RANDOM_HI
33
0x21
random number generator HI word
SYSTEM_TIMER_LO
34
0x22
1msec 32 bit free running timer LO word
SYSTEM_TIMER_HI
35
0x23
1msec 32 bit free running timer HI word
TIMER0
36
0x24
1msec user timer 0
TIMER1
37
0x25
1msec user timer 1
TIMER2
38
0x26
1msec user timer 2
TIMER3
39
0x27
1msec user timer 3
TIMER4
40
0x28
1msec user timer 4
TIMER5
41
0x29
1msec user timer 5
TIMER6
42
0x2A
1msec user timer 6
TIMER7
43
0x2B
1msec user timer 7
SYS_X_MAX
44
0x2C
display hardware X res-1
SYS_Y_MAX
45
0x2D
display hardware Y res-1
GFX_XMAX
46
0x2E
current display width-1 determined by portrait / landscape
swapping
GFX_YMAX
47
0x2F
current display height-1 determined by portrait / landscape
swapping
GFX_LEFT
48
0x30
virtual left point for most recent object
GFX_TOP
49
0x31
virtual top point for most recent object
GFX_RIGHT
50
0x32
virtual right point for most recent object
GFX_BOTTOM
51
0x33
virtual bottom point for most recent object
GFX_X1
52
0x34
clipped left point for current object
GFX_Y1
53
0x35
clipped top point for current object
GFX_X2
54
0x36
clipped right point for current object
GFX_Y2
55
0x37
clipped bottom point for current object
GFX_X_ORG
56
0x38
current X origin
GFX_Y_ORG
57
0x39
current Y origin
GFX_THUMB_PERCENT
75
0x4B
size of slider thumb as percentage
GFX_THUMB_BORDER_DARK
76
0x4C
darker shadow of thumb
GFX_THUMB_BORDER_LIGHT
77
0x4D
lighter shadow of thumb
TOUCH_XMINCAL
78
0x4E
touch calibration value
TOUCH_YMINCAL
79
0x4F
touch calibration value
TOUCH_XMAXCAL
80
0x50
touch calibration value
TOUCH_YMAXCAL
81
0x51
touch calibration value
IMG_WIDTH
82
0x52
width of currently loaded image
IMG_HEIGHT
83
0x53
height of currently loaded image
IMG_FRAME_DELAY
84
0x54
if image, else inter frame delay for movie
IMG_FLAGS
85
0x55
bit 4 determines colour mode, other bits reserved
IMG_FRAME_COUNT
86
0x56
count of frames in a movie
IMG_PIXEL_COUNT_LO
87
0x57
count of pixels in the current frame
IMG_PIXEL_COUNT_HI
88
0x58
count of pixels in the current frame
IMG_CURRENT_FRAME
89
0x59
last frame shown
MEDIA_ADDRESS_LO
90
0x5A
micro-SD byte address LO
MEDIA_ADDRESS_HI
91
0x5B
micro-SD byte address HI
MEDIA_SECTOR_LO
92
0x5C
micro-SD sector address LO
NOTE: These registers are accessible with peekW and pokeW functions.