FEBRUARY 2006 £3.80 - Index of
FEBRUARY 2006 £3.80 - Index of
FEBRUARY 2006 £3.80 - Index of
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
under Build / Build Configurations.<br />
Then start the compilation by selecting<br />
Build / Build All. The C source code<br />
will be compiled, linked, and written to<br />
the output directory \Release in the<br />
form <strong>of</strong> a Motorola hex file. The entire<br />
process is listed at the bottom <strong>of</strong> the<br />
Build window. At the end, you’ll see<br />
the longed-for message that signals<br />
success:<br />
Build Finished<br />
0 Errors, 1 Warning<br />
No errors – that’s very good! Warnings<br />
occur relatively <strong>of</strong>ten and aren’t all that<br />
dramatic. In this case, the warning<br />
reads: ‘Warning (ln30): License has<br />
expired, code limited to 64K (10000H)<br />
byte(s)’. You don’t have to worry about<br />
that, because you’re using the free version<br />
<strong>of</strong> the compiler, and 64 kB is anyhow<br />
more than R8C/13 can hold. If you<br />
wish, you can download the output file<br />
to the microcontroller again and run<br />
the program. It will work just as well<br />
as the Motorola hex file on the CD.<br />
Now let’s have a look at the source<br />
code:<br />
while (1) /* Loop */<br />
{<br />
p1_0 = 0;<br />
p1_1 = 0;<br />
p1_2 = 0;<br />
p1_3 = 0;<br />
for (t=0; t