09.01.2013 Views

EA eDIPTFT43-A compiler help - Electronic Assembly

EA eDIPTFT43-A compiler help - Electronic Assembly

EA eDIPTFT43-A compiler help - Electronic Assembly

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

28<br />

4.6 Macros<br />

4.6.1 ExportMacro<br />

<strong>EA</strong> <strong>eDIPTFT43</strong>-A <strong>compiler</strong> <strong>help</strong><br />

EXPORTMACRO: n1 [,"chartyp"] [,]<br />

n1=0: no export<br />

n1=1: export all following Macros as a include-File *.h for C;<br />

n1=2: export all following Macros as a binary-File *.bin;<br />

n1=3: export both a include-File *.h and a binary-File *.bin;<br />

"chartyp": optionally another variable type for the byte-array (default<br />

is "unsigned char")<br />

: optionally another filename (default is<br />

"macroname_macronumber")<br />

Example:<br />

ExportMacro: 1, "char flash"<br />

Macro: 5<br />

#TA<br />

#DF BLUE<br />

#FZ WHITE,TRANSPARENT<br />

#ZF FONT4x6<br />

#ZL 12,10, "Font4x6: 0123456789"<br />

#ZF FONT6x8<br />

#ZL 12,20, "Font6x8: Schriftprobe"<br />

#ZF FONT7x12<br />

#ZL 12,30, "Font7x12: Schriftprobe"<br />

Output in Logfile "Macro_5.h":<br />

/* Macro 5 as include */<br />

#define MACRO_5_LEN 110<br />

char flash MACRO_5[MACRO_5_LEN] =<br />

{<br />

27, 84, 65, 27, 68, 70, 2, 27, 70, 90, 8, 0, 27, 90, 70, 1, 27, 90, 76, 12,<br />

0, 10, 0, 70,111,110,116, 52,120, 54, 58, 32, 48, 49, 50, 51, 52, 53, 54, 55,<br />

56, 57, 0, 27, 90, 70, 2, 27, 90, 76, 12, 0, 20, 0, 70,111,110,116, 54,120,<br />

56, 58, 32, 83, 99,104,114,105,102,116,112,114,111, 98,101, 0, 27, 90, 70, 3,<br />

27, 90, 76, 12, 0, 30, 0, 70,111,110,116, 55,120, 49, 50, 58, 32, 83, 99,104,<br />

114,105,102,116,112,114,111, 98,101, 0<br />

};<br />

4.6.2 SystemMacros<br />

POWERONMACRO: All commands defined in this macro will be automatically executed<br />

when the power supply is switched on.<br />

RESETMACRO: All commands defined in this macro will be automatically executed<br />

when an external reset on Pin 5 is done.<br />

WATCHDOGMACRO: All commands defined in this macro will be automatically executed<br />

when the display hangs up.<br />

BROWNOUTMACRO: All commands defined in this macro will be automatically executed<br />

when VDD brakes down to 4,6V or lower.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!