13 DCPU-16 Hardware Info:
14 Name: LEM1802 - Low Energy Monitor
15 ID: 0x7349f615, version: 0x1802
16 Manufacturer: 0x1c6c8b36 (NYA_ELEKTRISKA)
20 The LEM1802 is a 128x96 pixel color display compatible with the DCPU-16.
21 The display is made up of 32x12 16 bit cells. Each cell displays one
22 monochrome 4x8 pixel character out of 128 available. Each cell has its own
23 foreground and background color out of a palette of 16 colors.
25 The LEM1802 is fully backwards compatible with LEM1801 (0x7349f615/0x1801),
26 and adds support for custom palettes and fixes the double buffer color
31 When a HWI is received by the LEM1802, it reads the A register and does one
32 of the following actions:
35 Reads the B register, and maps the video ram to DCPU-16 ram starting
36 at address B. See below for a description of video ram.
37 If B is 0, the screen is disconnected.
38 When the screen goes from 0 to any other value, the the LEM1802 takes
39 about one second to start up. Other interrupts sent during this time
42 Reads the B register, and maps the font ram to DCPU-16 ram starting
43 at address B. See below for a description of font ram.
44 If B is 0, the default font is used instead.
46 Reads the B register, and maps the palette ram to DCPU-16 ram starting
47 at address B. See below for a description of palette ram.
48 If B is 0, the default palette is used instead.
50 Reads the B register, and sets the border color to palette index B&0xF
52 Reads the B register, and writes the default font data to DCPU-16 ram
53 starting at address B.
54 Halts the DCPU-16 for 256 cycles
56 Reads the B register, and writes the default palette data to DCPU-16
57 ram starting at address B.
58 Halts the DCPU-16 for 16 cycles
62 The LEM1802 has no internal video ram, but rather relies on being assigned
63 an area of the DCPU-16 ram. The size of this area is 386 words, and is
64 made up of 32x12 cells of the following bit format (in LSB-0):
66 The lowest 7 bits (ccccccc) select define character to display.
67 ffff and bbbb select which foreground and background color to use.
68 If B (bit 7) is set the character color will blink slowly.
72 The LEM1802 has a default built in font. If the user chooses, they may
73 supply their own font by mapping a 256 word memory region with two words
74 per character in the 128 character font.
75 By setting bits in these words, different characters and graphics can be
76 achieved. For example, the character F looks like this:
77 word0 = 1111111100001001
78 word1 = 0000100100000000
79 Or, split into octets:
87 The LEM1802 has a default built in palette. If the user chooses, they may
88 supply their own palette by mapping a 16 word memory region with one word
89 per palette entry in the 16 color palette.
90 Each color entry has the following bit format (in LSB-0):
92 Where r, g, b are the red, green and blue channels. A higher value means a
99 It is fun to see that so many people use our products. When I was a small
100 boy, my dad used to tell me "Ola, take care of those who understand less
101 than you. Lack of knowledge is dangerous, but too much is worse".
102 Here at Nya Elektriska have we always tried to improve mankind by showing
103 them the tools required to improve and reach their true potential.
104 Together, you will wake up in time.
106 - Ola Kristian Carlsson