<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>MEL PICBASIC Forum - mel PIC BASIC Pro</title>
		<link>https://www.picbasic.co.uk/forum/</link>
		<description>Discussion area for microEngineeringLabs Pic Basic Pro Compiler</description>
		<language>en</language>
		<lastBuildDate>Mon, 06 Apr 2026 16:19:29 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>https://www.picbasic.co.uk/forum/images/misc/rss.png</url>
			<title>MEL PICBASIC Forum - mel PIC BASIC Pro</title>
			<link>https://www.picbasic.co.uk/forum/</link>
		</image>
		<item>
			<title>memory full</title>
			<link>https://www.picbasic.co.uk/forum/showthread.php/27113-memory-full?goto=newpost</link>
			<pubDate>Fri, 20 Mar 2026 11:33:32 GMT</pubDate>
			<description><![CDATA[Hi all, 
 
I have a application with the 16F882 and have add some data. But the memory is run over. 
The '882 = 2048 words, "883 is only 4096 words....]]></description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I have a application with the 16F882 and have add some data. But the memory is run over.<br />
The '882 = 2048 words, &quot;883 is only 4096 words.<br />
<br />
I drive a LCD (1602) RS485 and some LEDs and buttons. Not really exciting.<br />
<br />
But, I have 30 Hub's (0 to 29)  to Open and Close and show on the LCD.<br />
<br />
All 30 Open and Close strings are different.<br />
<br />
<br />
After 8 Hub's in the program the memory (&quot;882) runs out. Any advice? <br />
<br />
<br />
Hub_ID = 0                                                       '  Hub Open<br />
    <br />
    high EN_RS485                                              '  Enable RS485    <br />
    pause 5<br />
    hserout [0,2,0,16,67,45,255,15,222,3]           '  Bus open    <br />
    LCDOut $fe,$C0,&quot;Hub &quot;,dec Hub_ID, &quot; is Open  &quot;<br />
    pause 5                                                       '  Wait for last byte out <br />
    low EN_RS485                                             '  Disable RS485 <br />
    <br />
    pause 1000     <br />
<br />
    high EN_RS485                                             '  Enable RS485    <br />
    pause 5<br />
    hserout [0,2,0,16,67,47,255,15,220,3]           '  Bus close  <br />
    LCDOut $fe,$C0,&quot;Hub &quot;,dec Hub_ID, &quot; is Close &quot;<br />
    pause 5                                                       '  Wait for last byte out <br />
    low EN_RS485                                             '  Disable RS485  <br />
    <br />
    pause 1000<br />
<br />
    <br />
   ' Do next Hub</div>

]]></content:encoded>
			<category domain="https://www.picbasic.co.uk/forum/forumdisplay.php/4-mel-PIC-BASIC-Pro">mel PIC BASIC Pro</category>
			<dc:creator>Gevo</dc:creator>
			<guid isPermaLink="true">https://www.picbasic.co.uk/forum/showthread.php/27113-memory-full</guid>
		</item>
		<item>
			<title>LCDOUT command followed by variable data</title>
			<link>https://www.picbasic.co.uk/forum/showthread.php/27112-LCDOUT-command-followed-by-variable-data?goto=newpost</link>
			<pubDate>Wed, 11 Mar 2026 08:55:52 GMT</pubDate>
			<description><![CDATA[Hi, 
 
This must be recurrent subject but/and I can't recall how to handle this. 
 
My project is about displaying time and adapting the output...]]></description>
			<content:encoded><![CDATA[<div>Hi,<br />
<br />
This must be recurrent subject but/and I can't recall how to handle this.<br />
<br />
My project is about displaying time and adapting the output format to the number of digits to display adjusting mainly the number of <b>spaces</b>.<br />
<br />
Since each LCDOUT command is 47 WORDs heavy, I'd like to avoid having to repeat this command all over my program.<br />
<br />
This is a piece of my current code where one can see that I need to repeat the LCDOUT command often to fit the placement of characters.<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code"><i>' Display time in &quot;0:00:00&quot; format</i><br />
IF Hours &gt; 0 THEN<i>&nbsp; &nbsp; ' &quot; 0:00:00&quot;</i><br />
&nbsp; &nbsp; LCDOUT $FE,$2,&quot; &quot;,DEC Hours,&quot;:&quot;,DEC2 Minutes,&quot;:&quot;,DEC2 Seconds<br />
&nbsp; &nbsp; RETURN<br />
ENDIF<br />
<br />
IF Minutes &gt; 9 THEN<i> ' &quot;&nbsp;  00:00&quot;</i><br />
&nbsp; &nbsp; IF LapDisplay THEN<i> 'Lap is displayed</i><br />
&nbsp; &nbsp; &nbsp; &nbsp; IF Lap &gt; 9 THEN<i> 'Lap is 2 characters wide</i><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LCDOUT $FE,2,DEC2 Lap,&quot; &quot;,DEC Minutes,&quot;:&quot;,DEC2 Seconds<br />
&nbsp; &nbsp; &nbsp; &nbsp; ELSE<i> 'Lap is 1 character wide</i><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LCDOUT $FE,2,DEC1 Lap,&quot;&nbsp; &quot;,DEC Minutes,&quot;:&quot;,DEC2 Seconds<br />
&nbsp; &nbsp; &nbsp; &nbsp; ENDIF<br />
&nbsp; &nbsp; ELSE<i> 'no Lap display</i><br />
&nbsp; &nbsp; &nbsp; &nbsp; LCDOUT $FE,2,&quot;&nbsp;  &quot;,DEC Minutes,&quot;:&quot;,DEC2 Seconds<br />
&nbsp; &nbsp; ENDIF<br />
&nbsp; &nbsp; RETURN<br />
ENDIF<br />
<br />
IF Minutes &gt;= 0 THEN<i>&nbsp; &nbsp; ' &quot;&nbsp; &nbsp; 0:00&quot;</i><br />
&nbsp; &nbsp; IF LapDisplay THEN<br />
&nbsp; &nbsp; &nbsp; &nbsp; IF Lap &gt; 9 THEN<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LCDOUT $FE,2,DEC2 Lap,&quot;&nbsp; &quot;,DEC Minutes,&quot;:&quot;,DEC2 Seconds<br />
&nbsp; &nbsp; &nbsp; &nbsp; ELSE<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LCDOUT $FE,2,DEC1 Lap,&quot;&nbsp;  &quot;,DEC Minutes,&quot;:&quot;,DEC2 Seconds<br />
&nbsp; &nbsp; &nbsp; &nbsp; ENDIF<br />
&nbsp; &nbsp; ELSE<br />
&nbsp; &nbsp; &nbsp; &nbsp; LCDOUT $FE,2,&quot;&nbsp; &nbsp; &quot;,DEC Minutes,&quot;:&quot;,DEC2 Seconds<br />
&nbsp; &nbsp; ENDIF<br />
&nbsp; &nbsp; RETURN<br />
ENDIF</code><hr />
</div><br />
How can I set a number of SPACEs by the mean of a variable?<br />
<br />
Is there another way to achieve this?</div>

]]></content:encoded>
			<category domain="https://www.picbasic.co.uk/forum/forumdisplay.php/4-mel-PIC-BASIC-Pro">mel PIC BASIC Pro</category>
			<dc:creator>flotulopex</dc:creator>
			<guid isPermaLink="true">https://www.picbasic.co.uk/forum/showthread.php/27112-LCDOUT-command-followed-by-variable-data</guid>
		</item>
	</channel>
</rss>
