<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: BoostC compiler libraries</title>
	<atom:link href="http://lika.be/wp/2005/08/boostc-compiler-libraries/feed/" rel="self" type="application/rss+xml" />
	<link>http://lika.be/wp/2005/08/boostc-compiler-libraries/</link>
	<description>Bouw, kook en electronica website van Katleen en Lieven</description>
	<lastBuildDate>Sun, 29 Jan 2012 15:37:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Lieven</title>
		<link>http://lika.be/wp/2005/08/boostc-compiler-libraries/comment-page-1/#comment-386</link>
		<dc:creator>Lieven</dc:creator>
		<pubDate>Tue, 29 Mar 2011 18:33:43 +0000</pubDate>
		<guid isPermaLink="false">#comment-386</guid>
		<description>Hi Joel,

easy, you implement a &lt;a href=&quot;http://lmgtfy.com/?q=pic+soft+uart+example&quot; rel=&quot;nofollow&quot;&gt;soft UART&lt;/a&gt; on the pins. The hardware UART unit resides on PORTB pins in this device.

Best regards, 
 Lieven.</description>
		<content:encoded><![CDATA[<p>Hi Joel,</p>
<p>easy, you implement a <a href="http://lmgtfy.com/?q=pic+soft+uart+example" rel="nofollow">soft UART</a> on the pins. The hardware UART unit resides on PORTB pins in this device.</p>
<p>Best regards,<br />
 Lieven.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel</title>
		<link>http://lika.be/wp/2005/08/boostc-compiler-libraries/comment-page-1/#comment-383</link>
		<dc:creator>Joel</dc:creator>
		<pubDate>Tue, 29 Mar 2011 11:41:22 +0000</pubDate>
		<guid isPermaLink="false">#comment-383</guid>
		<description>Please I can I make UART work on PORT A of PIC 18F1320?
Thanks</description>
		<content:encoded><![CDATA[<p>Please I can I make UART work on PORT A of PIC 18F1320?<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Updated code for simple PWM LED controller &#171; Catmacey&#8217;s stuff</title>
		<link>http://lika.be/wp/2005/08/boostc-compiler-libraries/comment-page-1/#comment-323</link>
		<dc:creator>Updated code for simple PWM LED controller &#171; Catmacey&#8217;s stuff</dc:creator>
		<pubDate>Wed, 20 Oct 2010 21:23:42 +0000</pubDate>
		<guid isPermaLink="false">#comment-323</guid>
		<description>[...] specific set of instructions to activate a write. It&#8217;s all in the datasheet.  There&#8217;s a great set of BoostC libraries by Lieven Hollevoet here. I modified his eeprom library by to work with the PIC12f683. I&#8217;ve included my modified [...]</description>
		<content:encoded><![CDATA[<p>[...] specific set of instructions to activate a write. It&#8217;s all in the datasheet.  There&#8217;s a great set of BoostC libraries by Lieven Hollevoet here. I modified his eeprom library by to work with the PIC12f683. I&#8217;ve included my modified [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Casey</title>
		<link>http://lika.be/wp/2005/08/boostc-compiler-libraries/comment-page-1/#comment-321</link>
		<dc:creator>Matt Casey</dc:creator>
		<pubDate>Mon, 20 Sep 2010 00:09:06 +0000</pubDate>
		<guid isPermaLink="false">#comment-321</guid>
		<description>Hi,
I modified your eeprom library to work with reading and writing on a PIC12f683.

Here&#039;s the code.

/*************************************************************
* EEPROM data memory interface for PIC12f683 devices 
*
* Allows for read and write of the program memory. 
*
* Warning! Interrupts are disabled during write !
*
*	Based on code by
* (c) Lieven Hollevoet
*************************************************************/
#include &quot;eeprom.h&quot;

////////////////////////////////////////////////////////////
// Read an EEPROM memory location. Takes the address as input 
// and returns the data at the memory location.
//
// The function is based on the Microchip document DS41211D
// page 75.
////////////////////////////////////////////////////////////
char eeprom_read(char address){

  // Load address
  eeadr = address;

	// Read, data is available in eedata the next cycle.
	eecon1.RD = 1;
	
	// Return value
	return eedata;

}

////////////////////////////////////////////////////////////
// Writes a byte to the data EEPROM. 
// Interrupts are disabled during this routine.
//
// The function is based on the Microchip document DS41211D
// page 75.
////////////////////////////////////////////////////////////
void eeprom_write(char address, char data){

	// Wait for any other write to complete
	while (test_bit(eecon1, WR)){};

	// Load address and data
	eeadr = address;
	eedata = data;

	// Write enable
	set_bit(eecon1, WREN);
	// Disable interrupts
	clear_bit(intcon, GIE);

	// Required write sequence
	eecon2 = 0x55;
	eecon2 = 0xAA;
	set_bit(eecon1, WR);

	// Disable write
	clear_bit(eecon1, WREN);
	// Enable interrupts
	set_bit(intcon, GIE);
}</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I modified your eeprom library to work with reading and writing on a PIC12f683.</p>
<p>Here&#8217;s the code.</p>
<p>/*************************************************************<br />
* EEPROM data memory interface for PIC12f683 devices<br />
*<br />
* Allows for read and write of the program memory.<br />
*<br />
* Warning! Interrupts are disabled during write !<br />
*<br />
*	Based on code by<br />
* (c) Lieven Hollevoet<br />
*************************************************************/<br />
#include &#8220;eeprom.h&#8221;</p>
<p>////////////////////////////////////////////////////////////<br />
// Read an EEPROM memory location. Takes the address as input<br />
// and returns the data at the memory location.<br />
//<br />
// The function is based on the Microchip document DS41211D<br />
// page 75.<br />
////////////////////////////////////////////////////////////<br />
char eeprom_read(char address){</p>
<p>  // Load address<br />
  eeadr = address;</p>
<p>	// Read, data is available in eedata the next cycle.<br />
	eecon1.RD = 1;</p>
<p>	// Return value<br />
	return eedata;</p>
<p>}</p>
<p>////////////////////////////////////////////////////////////<br />
// Writes a byte to the data EEPROM.<br />
// Interrupts are disabled during this routine.<br />
//<br />
// The function is based on the Microchip document DS41211D<br />
// page 75.<br />
////////////////////////////////////////////////////////////<br />
void eeprom_write(char address, char data){</p>
<p>	// Wait for any other write to complete<br />
	while (test_bit(eecon1, WR)){};</p>
<p>	// Load address and data<br />
	eeadr = address;<br />
	eedata = data;</p>
<p>	// Write enable<br />
	set_bit(eecon1, WREN);<br />
	// Disable interrupts<br />
	clear_bit(intcon, GIE);</p>
<p>	// Required write sequence<br />
	eecon2 = 0&#215;55;<br />
	eecon2 = 0xAA;<br />
	set_bit(eecon1, WR);</p>
<p>	// Disable write<br />
	clear_bit(eecon1, WREN);<br />
	// Enable interrupts<br />
	set_bit(intcon, GIE);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lieven</title>
		<link>http://lika.be/wp/2005/08/boostc-compiler-libraries/comment-page-1/#comment-147</link>
		<dc:creator>Lieven</dc:creator>
		<pubDate>Wed, 29 Jul 2009 05:20:45 +0000</pubDate>
		<guid isPermaLink="false">#comment-147</guid>
		<description>Hello FPeter,

you can find an example project using the MCP2515 routines in my googlecode &lt;a href=&quot;http://code.google.com/p/hasy&quot; rel=&quot;nofollow&quot;&gt;SVN repository&lt;/a&gt;.

&lt;a href=&quot;http://code.google.com/p/hasy/source/browse/#svn/trunk/hasynode/firmware/hasynode&quot; rel=&quot;nofollow&quot;&gt;Link&lt;/a&gt;

Best regards,
 Lieven.</description>
		<content:encoded><![CDATA[<p>Hello FPeter,</p>
<p>you can find an example project using the MCP2515 routines in my googlecode <a href="http://code.google.com/p/hasy" rel="nofollow">SVN repository</a>.</p>
<p><a href="http://code.google.com/p/hasy/source/browse/#svn/trunk/hasynode/firmware/hasynode" rel="nofollow">Link</a></p>
<p>Best regards,<br />
 Lieven.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FPeter</title>
		<link>http://lika.be/wp/2005/08/boostc-compiler-libraries/comment-page-1/#comment-146</link>
		<dc:creator>FPeter</dc:creator>
		<pubDate>Tue, 28 Jul 2009 19:32:02 +0000</pubDate>
		<guid isPermaLink="false">#comment-146</guid>
		<description>Hello Lieven!

im interested in interfacing an MCP2515 onto a PIC18F4550, but i did not find the following files in the package: mcp2515_test.c, mcp2515_test.h - although they are listed in mcp2515.__c

can You pls add them to the package?

this is a great package, N3310 LCD works fine on my digital pressure gauge project, thx!</description>
		<content:encoded><![CDATA[<p>Hello Lieven!</p>
<p>im interested in interfacing an MCP2515 onto a PIC18F4550, but i did not find the following files in the package: mcp2515_test.c, mcp2515_test.h &#8211; although they are listed in mcp2515.__c</p>
<p>can You pls add them to the package?</p>
<p>this is a great package, N3310 LCD works fine on my digital pressure gauge project, thx!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lieven</title>
		<link>http://lika.be/wp/2005/08/boostc-compiler-libraries/comment-page-1/#comment-145</link>
		<dc:creator>Lieven</dc:creator>
		<pubDate>Sun, 26 Jul 2009 19:32:51 +0000</pubDate>
		<guid isPermaLink="false">#comment-145</guid>
		<description>Hi, 

good to hear that the LCD routines also work on a 16F887.

Concerning the line selection: I don&#039;t really understand the problem you describe. If you only have a single-line LCD, I assume there is no sense in putting data on line 2? I don&#039;t see how I could update the library for that. Why do you call line2?

For the baudrate setting of the serial routines: depending on the hardware you have, the baudrate you want to obtain and the oscillator you use, you should pass a value to the &#039;serial_init&#039; function. This value can be determined by getting the correct value from the datasheet of the device you&#039;re using. The value you need is used for the baudrate generator in the UART block of the PIC. 
You will find 2 tables in the datasheet: one for BRGH = 0 and one for BRGH = 1. This is a bit that is set in the TXSTA register. In my library, it is set to &#039;1&#039;, so pick the correct table, or modify the library code if you need the other table.

For the OneWire libs: those should work out of the box. I have a circuit using those libs running for several year now, so most bugs should already be ironed out ;-)

Best regard!
 Lieven.</description>
		<content:encoded><![CDATA[<p>Hi, </p>
<p>good to hear that the LCD routines also work on a 16F887.</p>
<p>Concerning the line selection: I don&#8217;t really understand the problem you describe. If you only have a single-line LCD, I assume there is no sense in putting data on line 2? I don&#8217;t see how I could update the library for that. Why do you call line2?</p>
<p>For the baudrate setting of the serial routines: depending on the hardware you have, the baudrate you want to obtain and the oscillator you use, you should pass a value to the &#8216;serial_init&#8217; function. This value can be determined by getting the correct value from the datasheet of the device you&#8217;re using. The value you need is used for the baudrate generator in the UART block of the PIC.<br />
You will find 2 tables in the datasheet: one for BRGH = 0 and one for BRGH = 1. This is a bit that is set in the TXSTA register. In my library, it is set to &#8217;1&#8242;, so pick the correct table, or modify the library code if you need the other table.</p>
<p>For the OneWire libs: those should work out of the box. I have a circuit using those libs running for several year now, so most bugs should already be ironed out <img src='http://lika.be/wp/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Best regard!<br />
 Lieven.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Hagen</title>
		<link>http://lika.be/wp/2005/08/boostc-compiler-libraries/comment-page-1/#comment-143</link>
		<dc:creator>Mike Hagen</dc:creator>
		<pubDate>Fri, 24 Jul 2009 23:53:01 +0000</pubDate>
		<guid isPermaLink="false">#comment-143</guid>
		<description>Have been using you LCD Demo on 16F887.

LCD works, but I have a One Line LCD.  So I have only 8 characters, and then I call line 2.  
I wish there was a selection of type of LCD?

A selection for how many Lines a display has?

Using RealTerm, I can&#039; get the Serial out to be readable?  So my RS232 is bad.

Can you discribe what Baudrate I should be trying?

I am Using 8MHz crystal.
Next I want to do One Wire!

Thanks!
Mike</description>
		<content:encoded><![CDATA[<p>Have been using you LCD Demo on 16F887.</p>
<p>LCD works, but I have a One Line LCD.  So I have only 8 characters, and then I call line 2.<br />
I wish there was a selection of type of LCD?</p>
<p>A selection for how many Lines a display has?</p>
<p>Using RealTerm, I can&#8217; get the Serial out to be readable?  So my RS232 is bad.</p>
<p>Can you discribe what Baudrate I should be trying?</p>
<p>I am Using 8MHz crystal.<br />
Next I want to do One Wire!</p>
<p>Thanks!<br />
Mike</p>
]]></content:encoded>
	</item>
</channel>
</rss>

