Save your file as .htm. Open it with Internet Explorer. Click View, Source. Then just copy
& paste it here between the code tags as usual.
blink.htm saved in MicroCode Studio.
Code:
<html>
<head></head>
<body><!--StartFragment--><pre><code><font color="#000080">' Example program from manual to blink an LED connected to PORTB.0 about once a second
</font><font color="#008000">@ device pic16F877, xt_osc, wdt_off, lvp_off, protect_off
</font><b>DEFINE </b>OSC 4
loop:
<b>HIGH </b>0 <font color="#000080">' Turn on LED connected to PORTB.0
</font><b>PAUSE </b>500 <font color="#000080">' Delay for .5 seconds
</font><b>LOW </b>0 <font color="#000080">' Turn off LED connected to PORTB.0
</font><b>PAUSE </b>500 <font color="#000080">' Delay for .5 seconds
</font><b>GOTO </b>loop <font color="#000080">' Go back to loop and blink LED forever
</font></code></pre><!--EndFragment--></body>
</html>
Bookmarks