<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Pic Microcontrollers Forum - Recent Threads</title><link>https://community.element14.com/technologies/embedded/f/pic-micro-forum</link><description>Discuss the PIC Microcontroller</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><lastBuildDate>Sat, 29 Aug 2026 14:35:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://community.element14.com/technologies/embedded/f/pic-micro-forum" /><item><title>FizzBuzz in PIC16f877A driving me crazy..</title><link>https://community.element14.com/thread/57220?ContentTypeID=0</link><pubDate>Fri, 28 Aug 2026 00:38:46 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:356601c7-c4e2-4d36-9ac5-3d38751419cd</guid><dc:creator>madthescientist</dc:creator><slash:comments>6</slash:comments><comments>https://community.element14.com/thread/57220?ContentTypeID=0</comments><wfw:commentRss>https://community.element14.com/technologies/embedded/f/pic-micro-forum/57220/fizzbuzz-in-pic16f877a-driving-me-crazy/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;I am trying to create a firmware for Pic16f877A, using mplab 6.15 on gnu/linux and&amp;nbsp; pickit 3.&lt;/p&gt;
&lt;p&gt;After finding out code examples in C language i could try and test parts to build a working piece of source code for it. However, i am finding myself at odds whenever i do wish to get actual work done.&lt;/p&gt;
&lt;p&gt;I do wish to drive some leds on an off in sequences, sometimes turning on one, off other several times and holding them off some minutes to do it back. I could accomplish part of it using something called &amp;quot;fizz buzz&amp;quot; example and reading ticks from Timer 1&amp;#39;s prescaler. My C and PIC knowledge is not yet the best.&lt;/p&gt;
&lt;p&gt;The major problem i am struggling with is that, i can get 2 leds toggling one after the other, but if i try to get that within a FOR cycle, it either never stops if i do not add any code at FOR&amp;#39;s end, or if i add code, it inmediatly jumps to it avoiding to toggle the leds altogether. If i code them off after for() they stay off, if i code them on after for, they stay offf.&lt;/p&gt;
&lt;p&gt;The source code i am in trouble with is this one:&lt;/p&gt;
&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:1a56b7dc-8464-438d-b459-00b95ecaf22b:type=c_cpp&amp;text=void%20MainProgramme%28void%29%0A%7B%0A%2F%2AEssential%20Variables%20Are%20Declared%20Here%2A%2F%0ALed3%20%3D%200%3B%20%2F%2FSeems%20It%20Has%20To%20Be%20Turned%20Explicitly%20Off%20Before%20Anything...%0A%0Aunsigned%20int%20tick%20%3D%200%3B%20%2F%2FA%20Common%20Variable%20For%20Measuring%20Timer0%20Ticks%0Aunsigned%20int%20activations%20%3D%200%3B%20%2F%2FThis%20Is%20For%20Counting%20Movements.%0Aunsigned%20int%20times%20%3D%200%3B%20%2F%2FThis%20Is%20For%20Counting%20SubFunction%20Executions.%0Aunsigned%20int%20blinks%20%3D%200%3B%2F%2F%20This%20Is%20For%20Programme%20Led%20Blink%20Timer%200%20Overflow%20Counting.%0Aunsigned%20int%20counter%20%3D%201%3B%0A%0A%0A%2F%2AThe%20Function%20Actually%20Starts%20Here%2A%2F%0A%0Awhile%28Button1%20%3D%3D%200%29%20%2F%2FChecks%20If%20Button1%20Is%20Depressed%20Aiming%20Towards%20Turning%20Off%20The%20Machine%0A%7B%0Awhile%28Run%20%3D%3D%200%29%20%2F%2FChecks%20If%20Run%20Button%20Is%20Depressed%20Toggling%20Between%20Work%20Or%20Pause%0A%7B%0A%2F%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2F%0A%2F%2AMain%20Led%20Stays%20Blinking%20At%20Around%202hz%20While%20The%20Procedure%20Takes%20Place%20If%20Not%20Paused%2A%2F%0A%0Atick%2B%2B%3B%0A%0A%2F%2F%20Check%20if%20Timer0%20has%20overflowed%0Aif%28TMR0IF%20%3D%3D%201%29%0A%7B%0ATMR0IF%20%3D%200%3B%20%2F%2F%20Reset%20the%20flag%20immediately%0Ablinks%2B%2B%3B%0A%0A%2F%2F%207%20overflows%20~%20458ms%20%28close%20to%200.5s%20for%201Hz%20toggle%29%0Aif%28blinks%20%3E%3D%20266%29%20%7B%0AMainLed%20%3D%20~MainLed%3B%20%2F%2F%20Toggle%20LED%20on%20RB0%0Ablinks%20%3D%200%3B%20%2F%2F%20Reset%20counter%0A%0A%7D%0A%0A%0A%0A%2F%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2F%0Aif%28Led7%20%3D%3D%200%29%0A%7B%0A%2F%2F--------------------------------------------------------------%0Awhile%28Switch2%20%3D%3D%200%29%0A%7B%0A%0ABlink2%20%3D%200%3B%0ABlink1%20%3D%200%3B%0ALed3%20%3D%200%3B%0A%0A%2F%2F%20Timer%200%20For%20Programme%20Led%20Blinking.%20IT%20WORKS%2C%20AVOID%20BREAKING.%0A%2F%2F%20Check%20if%20Timer0%20has%20overflowed%0Aif%28TMR0IF%20%3D%3D%201%29%0A%7B%0ATMR0IF%20%3D%200%3B%20%2F%2F%20Reset%20the%20flag%20immediately%0Ablinks%2B%2B%3B%0A%0A%2F%2F%207%20overflows%20~%20458ms%20%28close%20to%200.5s%20for%201Hz%20toggle%29%0Aif%28blinks%20%3E%3D%20266%29%20%7B%0AMainLed%20%3D%20~MainLed%3B%20%2F%2F%20Toggle%20LED%20on%20RB0%0Ablinks%20%3D%200%3B%20%2F%2F%20Reset%20counter%0A%0A%7D%0A%7D%20Led6%20%3D%201%3B%0A%7D%20Led6%20%3D%200%3B%0A%7D%20%2F%2F%20Main%20Programme%20Led%20Blink%20Ends%20Here.%20AVOID%20TOUCHING%20THIS%20PART%2C%20IT%20WORKS.%0A%2F%2F------------------------------------------------------------------------%0Aif%28Led7%20%3D%3D%201%29%0A%7B%0Awhile%28Switch1%20%3D%3D%200%29%0A%7B%0A%0ABlink2%20%3D%200%3B%0ABlink1%20%3D%200%3B%0ALed3%20%3D%200%3B%0A%0A%2F%2F%20Timer%200%20For%20Programme%20Led%20Blinking%0A%2F%2F%20Check%20if%20Timer0%20has%20overflowed%0Aif%28TMR0IF%20%3D%3D%201%29%0A%7B%0ATMR0IF%20%3D%200%3B%20%2F%2F%20Reset%20the%20flag%20immediately%0Ablinks%2B%2B%3B%0A%0A%2F%2F%207%20overflows%20~%20458ms%20%28close%20to%200.5s%20for%201Hz%20toggle%29%0Aif%28blinks%20%3E%3D%20266%29%20%7B%0AMainLed%20%3D%20~MainLed%3B%20%2F%2F%20Toggle%20LED%20on%20RB0%0Ablinks%20%3D%200%3B%20%2F%2F%20Reset%20counter%0A%0A%7D%0A%7D%0ALed6%20%3D%201%3B%0A%7D%20Led6%20%3D%200%3B%0A%7D%20%2F%2F%20Main%20Programme%20Led%20Blink%20Ends%20Here.%20AVOID%20TOUCHING%20THIS%20PART%2C%20IT%20WORKS.%0A%2F%2F------------------------------------------------------------------------------------------------%0A%0A%0A%0A%0A%2F%2FTimer%201%20For%20Blink%20Led%20Timings%0Awhile%28Switch1%20%3D%3D%201%20%7C%7C%20Switch2%20%3D%3D%201%29%0A%7B%0A%0A%0A%2F%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2F%0A%2F%2AProgramme%20Led%20Seems%20To%20Be%20Blinked%20Locally%2A%2F%0A%2F%2F%20Check%20if%20Timer0%20has%20overflowed%0Aif%28TMR0IF%20%3D%3D%201%29%0A%7B%0ATMR0IF%20%3D%200%3B%20%2F%2F%20Reset%20the%20flag%20immediately%0Ablinks%2B%2B%3B%0A%0A%2F%2F%207%20overflows%20~%20458ms%20%28close%20to%200.5s%20for%201Hz%20toggle%29%0Aif%28blinks%20%3E%3D%20198%29%20%7B%0AMainLed%20%3D%20~MainLed%3B%20%2F%2F%20Toggle%20LED%20on%20RB0%0Ablinks%20%3D%200%3B%20%2F%2F%20Reset%20counter%0A%0A%7D%0A%7D%0A%2F%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2F%0A%2F%2FThis%20Is%20Timer%201%20Setting%20leds%20Timings.Timer%200%20Sets%20Programme%20Led%20Blinking%0Aif%20%28PIR1bits.TMR1IF%29%20%7B%20%2F%2F%20Check%20if%20Timer1%20overflowed%0APIR1bits.TMR1IF%20%3D%200%3B%20%2F%2F%20Clear%20flag%0ATMR1H%20%3D%200x00%3B%20%2F%2F%20Reload%20timer%0ATMR1L%20%3D%200x00%3B%0A%0A%0Acounter%2B%2B%3B%0Aif%20%28counter%20%3E%20200%29%20counter%20%3D%201%3B%20%2F%2F%20Loop%201%20to%20100%0A%7D%0A%0A%0A%0Aif%28%28MainStrenghtRedLed%20%3D%3D%200%29%20%26%26%20%28MainStrenghtGreenLed%20%3D%3D%201%29%29%0A%7B%0Afor%28times%20%3D%2010%3B%20times%20%3E%3D%200%3B%20times%20--%29%0A%7B%0A%0Aif%20%28counter%20%25%203%20%3D%3D%200%29%0A%7B%0Atimes%20%3D%20times%20%2B%201%3B%0ABlink1%20%3D%200%3B%0ABlink2%20%3D%201%3B%0A%7D%20else%20if%20%28counter%20%25%205%20%3D%3D%200%29%0A%7B%0ABlink1%20%3D%201%3B%0ABlink2%20%3D%200%3B%0A%7D%20else%20if%20%28counter%20%25%207%20%3D%3D%200%29%0A%7B%0ABlink1%20%3D%200%3B%0ABlink2%20%3D%201%3B%0A%7D%0A%0Aelse%20if%20%28counter%20%25%209%20%3D%3D%200%29%0A%7B%0ABlink1%20%3D%201%3B%0ABlink2%20%3D%200%3B%0A%7D%0A%0Aelse%20if%20%28counter%20%25%2011%20%3D%3D%200%29%0A%7B%0ABlink1%20%3D%200%3B%0ABlink2%20%3D%201%3B%0A%7D%0A%0Aelse%20if%20%28counter%20%25%2013%20%3D%3D%200%29%0A%7B%0ABlink1%20%3D%201%3B%0ABlink2%20%3D%200%3B%0A%7D%0A%0Aelse%20if%20%28counter%20%25%2015%20%3D%3D%200%29%0A%7B%0ABlink1%20%3D%200%3B%0ABlink2%20%3D%201%3B%0Aactivations--%3B%0A%7D%0A%0A%0A%7D%20%2F%2FIt%27s%20suposed%20to%20perform%20this%20FizzBuzz%20routine%20a%20couple%20of%20times%20and%20stop%2C%20then%20again%20for%20some%20times.%0AProblem%20is%3A%20it%20never%20stops.%20If%20i%20do%20add%20any%20code%20after%20the%20For%28%29%20it%20actually%20jumps%20to%20it.%0A%7D%0A%7DLed6%20%3D%201%3B%20%2F%2FEnd%20Of%20While%0A%0A%0A%0A%2F%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2F%0A%7D%0A%0A%2F%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2F%0A%7D%0A%7D__delay_ms%28100%29%3B%0APowerOff%28%29%3B%0A%7D]&lt;/p&gt;</description></item><item><title>RE: FizzBuzz in PIC16f877A driving me crazy..</title><link>https://community.element14.com/thread/237960?ContentTypeID=1</link><pubDate>Sat, 29 Aug 2026 14:35:23 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:e9a79583-e55f-487d-915c-15db792a6eec</guid><dc:creator>beacon_dave</dc:creator><slash:comments>0</slash:comments><comments>https://community.element14.com/thread/237960?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/technologies/embedded/f/pic-micro-forum/57220/fizzbuzz-in-pic16f877a-driving-me-crazy/rss?ContentTypeId=0</wfw:commentRss><description>[quote userid="121623" url="~/technologies/embedded/f/pic-micro-forum/57220/fizzbuzz-in-pic16f877a-driving-me-crazy/237959"] is this because you didn&amp;#39;t use any or because E14 lost it ?[/quote]
&lt;p&gt;Probably because the Code widget defaults to &amp;#39;Text&amp;#39;&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" style="max-height:360px;max-width:640px;"  src="https://community.element14.com/resized-image/__size/1280x720/__key/communityserver-discussions-components-files/23/Screenshot-2026_2D00_08_2D00_29-153053.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;and needs to be set to &amp;#39;C&amp;#39;&lt;/p&gt;
&lt;p&gt;&lt;img loading="lazy" alt="image" style="max-height:360px;max-width:640px;"  src="https://community.element14.com/resized-image/__size/1280x720/__key/communityserver-discussions-components-files/23/Screenshot-2026_2D00_08_2D00_29-153208.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FizzBuzz in PIC16f877A driving me crazy..</title><link>https://community.element14.com/thread/237959?ContentTypeID=1</link><pubDate>Sat, 29 Aug 2026 14:13:59 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:88a72424-5176-46bc-be7c-b3c3ff9d496d</guid><dc:creator>michaelkellett</dc:creator><slash:comments>1</slash:comments><comments>https://community.element14.com/thread/237959?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/technologies/embedded/f/pic-micro-forum/57220/fizzbuzz-in-pic16f877a-driving-me-crazy/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;An unsigned variable can reach zero, but it can&amp;#39;t be negative.&lt;/p&gt;
&lt;p&gt;Change&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:courier new, courier;"&gt;for(times = 10; times &amp;gt;= 0; times --)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:courier new, courier;"&gt;for(times = 10; times &amp;gt; 0; times --)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;or better to&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:courier new, courier;"&gt;for(times = 0u; times &amp;lt; 10u; times++)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;(The u tells the C compiler that the 10 (and the 0) are unsigned - arguably pedantic and it will work without in this case)&lt;/p&gt;
&lt;p&gt;(and when you have&amp;nbsp; a free choice make your &amp;#39;for&amp;#39; loops increment because it&amp;#39;s much more common and will help you avoid the occasional silly error, and you never get caught by the &amp;gt;=0 trap)&lt;/p&gt;
&lt;p&gt;I find your code almost impossible to follow because there is no indentation - is this because you didn&amp;#39;t use any or because E14 lost it ?&lt;/p&gt;
&lt;p&gt;It would be good if you could repost it with indentation if you can:&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" style="max-height:360px;max-width:640px;"  src="https://community.element14.com/resized-image/__size/1280x720/__key/communityserver-discussions-components-files/23/code.png" /&gt;&lt;/p&gt;
&lt;p&gt;(I did this in Notepad++ set for C language)&lt;/p&gt;
&lt;p&gt;The indentation style is based on&amp;nbsp;&lt;a id="" href="https://barrgroup.com/sites/default/files/barr_c_coding_standard_2018.pdf" rel="noopener noreferrer nofollow" target="_blank" data-e14adj="t"&gt;https://barrgroup.com/sites/default/files/barr_c_coding_standard_2018.pdf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll take another look then and see if I can work out what is happening.&lt;/p&gt;
&lt;p&gt;MK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FizzBuzz in PIC16f877A driving me crazy..</title><link>https://community.element14.com/thread/237958?ContentTypeID=1</link><pubDate>Sat, 29 Aug 2026 12:55:43 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:c93fae07-ebe6-40f4-bc72-18e654f5cbd8</guid><dc:creator>madthescientist</dc:creator><slash:comments>1</slash:comments><comments>https://community.element14.com/thread/237958?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/technologies/embedded/f/pic-micro-forum/57220/fizzbuzz-in-pic16f877a-driving-me-crazy/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;I named it unsigned since most examples i found in the web uses unsigned, i did not know that it prevents it to reach zero.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FizzBuzz in PIC16f877A driving me crazy..</title><link>https://community.element14.com/thread/237957?ContentTypeID=1</link><pubDate>Sat, 29 Aug 2026 12:55:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:bf5a4aea-eefc-4ef5-86bb-960788b4dc09</guid><dc:creator>madthescientist</dc:creator><slash:comments>0</slash:comments><comments>https://community.element14.com/thread/237957?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/technologies/embedded/f/pic-micro-forum/57220/fizzbuzz-in-pic16f877a-driving-me-crazy/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Yes, even pins have their names on them. Watchdog is off.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FizzBuzz in PIC16f877A driving me crazy..</title><link>https://community.element14.com/thread/237953?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2026 14:36:46 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:8d0b161f-802f-4ccf-977f-88eba8c38293</guid><dc:creator>Andrew J</dc:creator><slash:comments>1</slash:comments><comments>https://community.element14.com/thread/237953?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/technologies/embedded/f/pic-micro-forum/57220/fizzbuzz-in-pic16f877a-driving-me-crazy/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Do you have a routine that sets up the input/output pins and the timers?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FizzBuzz in PIC16f877A driving me crazy..</title><link>https://community.element14.com/thread/237952?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2026 05:14:12 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:baf25ee7-bd4b-4f9f-a402-362817d89e75</guid><dc:creator>vmate</dc:creator><slash:comments>1</slash:comments><comments>https://community.element14.com/thread/237952?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/technologies/embedded/f/pic-micro-forum/57220/fizzbuzz-in-pic16f877a-driving-me-crazy/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;I don&amp;#39;t quite&amp;nbsp;fully understand what you did so far and what the goal would be, but I can see several problems:&lt;br /&gt;&lt;br /&gt;The for loop you made is an infinite loop, because &amp;#39;times&amp;#39; is unsigned, aka. it can never be lower than 0, and the condition for the for loop to finish is &amp;#39;times&amp;#39; being lower than 0.&lt;br /&gt;&lt;br /&gt;Also, the &amp;#39;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;counter &lt;/span&gt;&lt;span&gt;%&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;3&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;==&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;)&amp;#39; part increments &amp;#39;times&amp;#39;, and the for loop decrements it, so they are actively fighting one another. You might&amp;#39;ve intended for that to happen, but this is not generally a good idea to do: the rule of thumb is to use a for loop if you already know how many times you want the loop to run, or use a while loop if you don&amp;#39;t.&lt;br /&gt;&lt;br /&gt;Another problematic part is the speed of execution. You&amp;#39;re checking the counter&amp;#39;s value in the for loop in multiple places, but that loop will execute&amp;nbsp;many thousands of times faster than the counter&amp;#39;s increment speed.&lt;br /&gt;&lt;br /&gt;If I were you, I&amp;#39;d probably start from scratch, and ignore the hardware timer for now. Have a big while(1) loop with a&amp;nbsp;__delay_ms(1&lt;span class="hljs-number"&gt;0&lt;/span&gt;); at the end, and just increment your own counter somewhere. Getting an Arduino, and going through the Arduino IDE&amp;#39;s examples(like &amp;#39;Blink without delay()&amp;#39;) to learn the logic and program flow for such a microcontroller would probably be the ideal path, as the learning curve is much gentler there.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wrong operation when using internally generated negative voltage reference for A/D converter on PIC16F18877</title><link>https://community.element14.com/thread/225164?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2024 06:39:53 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:829a70fd-9547-47c6-9dce-1768c95d3161</guid><dc:creator>James123</dc:creator><slash:comments>0</slash:comments><comments>https://community.element14.com/thread/225164?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/technologies/embedded/f/pic-micro-forum/54031/wrong-operation-when-using-internally-generated-negative-voltage-reference-for-a-d-converter-on-pic16f18877/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;&lt;span&gt;ADC input signals are really sensitive to source impedance, and it&amp;#39;s generally recommended to keep the maximum impedance of your analog signal source around&amp;nbsp;&lt;/span&gt;&lt;span&gt;&lt;strong&gt;10 k&amp;Omega;&lt;/strong&gt;&lt;/span&gt;&lt;span&gt;. If the source impedance is too high, it can lead to longer sampling times, which may mess up your conversion results. This could be one of the issues you&amp;#39;re facing when using an internally generated negative voltage reference.&lt;br /&gt;&lt;/span&gt;&lt;span class="mt-md block"&gt;&lt;/span&gt;&lt;span&gt;To avoid problems, make sure your circuit design doesn&amp;#39;t introduce extra impedance that could affect the ADC&amp;#39;s performance. For more detailed information, check out the&amp;nbsp;&lt;a href="https://www.jakelectronics.com/pdf/datasheets/microchiptechnology-pic16f18877tipt-datasheets-2305?product=microchiptechnology-pic16f18877ipt-4815601" rel="noopener noreferrer nofollow" target="_blank" data-e14adj="t"&gt;&lt;strong&gt;PIC16F18877&lt;/strong&gt;&amp;nbsp;datasheet&lt;/a&gt;&lt;/span&gt;&lt;span&gt;, especially the sections on ADC configuration and operation.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Wrong operation when using internally generated negative voltage reference for A/D converter on PIC16F18877</title><link>https://community.element14.com/thread/54031?ContentTypeID=0</link><pubDate>Tue, 28 Nov 2023 23:41:38 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7206d644-635f-479c-8745-ceff68ba6019</guid><dc:creator>Mila_G</dc:creator><slash:comments>5</slash:comments><comments>https://community.element14.com/thread/54031?ContentTypeID=0</comments><wfw:commentRss>https://community.element14.com/technologies/embedded/f/pic-micro-forum/54031/wrong-operation-when-using-internally-generated-negative-voltage-reference-for-a-d-converter-on-pic16f18877/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;please can you help me with the wrong operation when using internally generated negative voltage reference for A/D converter on PIC16F18877?&lt;br /&gt;&lt;br /&gt;I would like to use ADC with references 0.416 V and Vdd (5 V).&lt;br /&gt;It works perfectly when I connect 0.416 V to the Vref- pin (RA2) from an external source.&lt;br /&gt;&lt;br /&gt;Then I generate 0.416 V on RA2 from FVR and D/A converter as follows:&lt;br /&gt;&amp;nbsp; FVRCON = 0x84;&lt;br /&gt;&amp;nbsp; DAC1CON0 = 0xA8;&lt;br /&gt;&amp;nbsp; DAC1CON1 = 0x0D;&lt;br /&gt;The DAC also works perfectly and there is about 0.416 V on the Vref- pin (RA2).&lt;br /&gt;&lt;br /&gt;But now ADC works only if the negative reference is Gnd. If I switch this from Gnd to Vref- (just by changing ADREF from 0 to 0x10), a failure occurs. The voltage on the RA2 pin changes to 2.1 V (and of course the A/D gives bad results).&lt;br /&gt;&lt;br /&gt;Workaround attempts:&lt;br /&gt;- 0.416 V output from DAC to RB7, directly conneted to RA2 via a wire, works just as badly as above.&lt;br /&gt;- After interconnecting via an op amp voltage follower instead of the wire, the A/D starts to work properly.&lt;br /&gt;&lt;br /&gt;I assumed the PIC analog circuits were designed for internal connections from the VRef- pin, without any external workaround. Please, advise.&lt;br /&gt;&lt;br /&gt;Many thanks.&lt;br /&gt;&lt;br /&gt;Mila.&lt;/p&gt;</description></item><item><title>MAX96717F is not recognized by the GMSL SerDes Gui</title><link>https://community.element14.com/thread/55102?ContentTypeID=0</link><pubDate>Wed, 18 Sep 2024 09:23:25 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:e154a05c-8637-4ae4-b46a-6775f654ed8d</guid><dc:creator>bugtech</dc:creator><slash:comments>1</slash:comments><comments>https://community.element14.com/thread/55102?ContentTypeID=0</comments><wfw:commentRss>https://community.element14.com/technologies/embedded/f/pic-micro-forum/55102/max96717f-is-not-recognized-by-the-gmsl-serdes-gui/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hi.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am using MAX96717F for a task. It worked fine for a week but now suddenly the device is not getting identified by the GMSL SerDes Gui. Although when i configure the CFG Pin, it shows that Serializer Detected.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1: Tried with different firmware (4.55, 4.56, 4.59)&lt;/p&gt;
&lt;p&gt;2: Tried with connections (Complete setup, camera to serializer, serializer to deserializer, deserializer to RPi4)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3: Tried without the connection (Only serializer connected by the USB)&lt;/p&gt;
&lt;p&gt;4: Tried reninstalling the GUI multiple times. No help!&lt;/p&gt;
&lt;p&gt;5: Tried on a different PC. No help!&lt;/p&gt;
&lt;p&gt;Stuck here. Unable to understand what can be the issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any help here?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>RE: MAX96717F is not recognized by the GMSL SerDes Gui</title><link>https://community.element14.com/thread/225074?ContentTypeID=1</link><pubDate>Wed, 06 Nov 2024 02:06:21 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:e8bb4706-0130-48f0-9b34-50ef428c39ef</guid><dc:creator>James123</dc:creator><slash:comments>0</slash:comments><comments>https://community.element14.com/thread/225074?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/technologies/embedded/f/pic-micro-forum/55102/max96717f-is-not-recognized-by-the-gmsl-serdes-gui/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;&lt;span&gt;It seems like there might be a problem with the MAX96717F hardware itself.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PIC18F452 with GPS NEO6M UART</title><link>https://community.element14.com/thread/217564?ContentTypeID=1</link><pubDate>Mon, 11 Dec 2023 08:47:31 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:19a1e87e-c180-497d-b19b-5ec288ef8c1a</guid><dc:creator>ArthurHEL</dc:creator><slash:comments>0</slash:comments><comments>https://community.element14.com/thread/217564?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/technologies/embedded/f/pic-micro-forum/54103/pic18f452-with-gps-neo6m-uart/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hello again,&lt;/p&gt;
&lt;p&gt;Your reply made me think a lot and after a few tests, I found out what was wrong and it&amp;#39;s quit simple ahah.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;When I come out of my first loop, I have to disable communication (probably to avoid reading unwanted data) and re-enable it when I&amp;#39;ve finished displaying my various data! &lt;br /&gt;I&amp;#39;ve displayed the time and one of the two GPS coordinates and it&amp;#39;s working perfectly!&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thanks for your help, have a nice day!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>PIC18F452 with GPS NEO6M UART</title><link>https://community.element14.com/thread/54103?ContentTypeID=0</link><pubDate>Sun, 10 Dec 2023 14:02:14 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:77154078-2a48-47df-b6e6-c6b8cb158c1b</guid><dc:creator>ArthurHEL</dc:creator><slash:comments>2</slash:comments><comments>https://community.element14.com/thread/54103?ContentTypeID=0</comments><wfw:commentRss>https://community.element14.com/technologies/embedded/f/pic-micro-forum/54103/pic18f452-with-gps-neo6m-uart/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m an electronics student and for my final project I&amp;#39;m trying to display data from a GPS (nemo 6m) operating via RS232 communication on an LCD screen with my PIC18F452. I had made a code for the LCD without a library, which worked without a hitch and which I used in this code.&lt;/p&gt;
&lt;p&gt;The code for displaying data from an RS232 communication is relatively simple and works very well with a TTL to USB card.&lt;/p&gt;
&lt;p&gt;The code below for displaying GPS data on the LCD works, but only once. When I run the program, it displays the time correctly, but I have to press the reset button to refresh. It seems that the code is stuck somewhere....&lt;/p&gt;
&lt;p&gt;After many tests, I don&amp;#39;t understand why and that&amp;#39;s why I&amp;#39;m coming to you. &lt;br /&gt;Thanks in advance for taking a look.&lt;/p&gt;
&lt;p&gt;Technical specification: &lt;br /&gt;16MHz quartz&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;[embed:dc8ab71f-3b98-42d9-b0f6-e21e02a0f8e2:9e23c30e-6a3c-4a0d-b52a-fdddefe1750c:type=text&amp;text=%2F%2F%20Pour%20les%20commandes%20du%20LCD%20%3A%20https%3A%2F%2Fbinaryupdates.com%2Finterface-lcd-with-lpc2148-arm7%2Fjhd162a-lcd-command-codes%2F%0D%0A%2F%2F%20Voir%20datasheet%20p174%20et%20p176%20%3A%20https%3A%2F%2Fww1.microchip.com%2Fdownloads%2FaemDocuments%2Fdocuments%2FMCU08%2FProductDocuments%2FDataSheets%2F39564c.pdf%0D%0A%23include%20%3Cp18f452.h%3E%20%0D%0A%23include%20%3Cdelays.h%3E%0D%0A%23include%20%3Cstdio.h%3E%0D%0A%20%0D%0A%23pragma%20config%20OSC%20%3D%20HS%20%20%20%2F%2F%20Travailler%20%C3%A0%2016MHz%0D%0A%23pragma%20config%20PWRT%20%3D%20ON%20%0D%0A%23pragma%20config%20BOR%20%3D%20OFF%20%0D%0A%23pragma%20config%20WDT%20%3D%20OFF%20%20%0D%0A%23pragma%20config%20LVP%20%3D%20OFF%20%20%0D%0A%20%0D%0A%0D%0A%2F%2F%20%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%20D%C3%A9clarations%20des%20PINs%20de%20sortie%20%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%0D%0A%2F%2F%20%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%20Output%20PIN%20declarations%20%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%0D%0A%0D%0A%2F%2F%20D%C3%A9finition%20pour%20broches%20en%20sortie%0D%0A%2F%2F%20Definition%20for%20output%20pins%0D%0A%23define%20data4DEF%20TRISBbits.TRISB4%0D%0A%23define%20data5DEF%20TRISBbits.TRISB5%0D%0A%23define%20data6DEF%20TRISBbits.TRISB6%0D%0A%23define%20data7DEF%20TRISBbits.TRISB7%0D%0A%23define%20RSDEF%20TRISCbits.TRISC0%0D%0A%23define%20RWDEF%20TRISCbits.TRISC1%0D%0A%23define%20EDEF%20TRISCbits.TRISC2%0D%0A%0D%0A%2F%2F%20D%C3%A9finition%20pour%20l%27%C3%A9tat%20des%20broches%20%28m%C3%AAme%20que%20pour%20TRIS%29%0D%0A%2F%2F%20Definition%20of%20pin%20status%20%28same%20as%20TRIS%29%0D%0A%23define%20data4%20PORTBbits.RB4%0D%0A%23define%20data5%20PORTBbits.RB5%0D%0A%23define%20data6%20PORTBbits.RB6%0D%0A%23define%20data7%20PORTBbits.RB7%0D%0A%23define%20RS%20PORTCbits.RC0%0D%0A%23define%20RW%20PORTCbits.RC1%0D%0A%23define%20E%20PORTCbits.RC2%0D%0A%0D%0A%2F%2F%20Param%C3%A8tre%20interne%20%28pas%20toucher%29%0D%0A%2F%2F%20Internal%20parameter%20%28do%20not%20touch%29%0D%0Aint%20delai%20%3D%201%3B%0D%0A%0D%0A%0D%0A%2F%2F%20%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%20Toutes%20les%20fonctions%20%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%0D%0A%0D%0A%0D%0Avoid%20LCD_Cmnd%20%28unsigned%20char%20cmnd%29%0D%0A%7B%0D%0A%20%20%20%20%2F%2F%20Permet%20d%27appliquer%20les%20bits%20de%20la%20commande%20sur%20les%20bonnes%20PINs%20de%20sortie%20%28en%20fonction%20des%20define%29%0D%0A%20%20%20%20%2F%2F%20Enables%20command%20bits%20to%20be%20applied%20to%20the%20correct%20output%20PINs%20%28depending%20on%20define%29%0D%0A%20%20%20%20data4%20%3D%20%28cmnd%20%26%200x10%29%20%3E%3E%204%3B%0D%0A%20%20%20%20data5%20%3D%20%28cmnd%20%26%200x20%29%20%3E%3E%205%3B%0D%0A%20%20%20%20data6%20%3D%20%28cmnd%20%26%200x40%29%20%3E%3E%206%3B%0D%0A%20%20%20%20data7%20%3D%20%28cmnd%20%26%200x80%29%20%3E%3E%207%3B%0D%0A%20%20%20%20%0D%0A%20%20%20%20RS%20%3D%200%3B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2F%2F%20Mode%20commande%0D%0A%20%20%20%20E%20%3D%201%3B%0D%0A%20%20%20%20Delay10KTCYx%20%28delai%29%3B%0D%0A%20%20%20%20E%20%3D%200%3B%0D%0A%20%20%20%20%0D%0A%20%20%20%20data4%20%3D%20cmnd%20%26%200x01%3B%0D%0A%20%20%20%20data5%20%3D%20%28cmnd%20%26%200x02%29%20%3E%3E%201%3B%0D%0A%20%20%20%20data6%20%3D%20%28cmnd%20%26%200x04%29%20%3E%3E%202%3B%0D%0A%20%20%20%20data7%20%3D%20%28cmnd%20%26%200x08%29%20%3E%3E%203%3B%0D%0A%20%20%20%20%0D%0A%20%20%20%20E%20%3D%201%3B%0D%0A%20%20%20%20Delay10KTCYx%20%28delai%29%3B%0D%0A%20%20%20%20E%20%3D%200%3B%0D%0A%7D%0D%0A%0D%0Avoid%20LCD_Charact%20%28unsigned%20char%20charact%29%0D%0A%7B%0D%0A%20%20%20%20%2F%2F%20Permet%20d%27appliquer%20les%20bits%20du%20caract%C3%A8re%20sur%20les%20bonnes%20PINs%20de%20sortie%20%28en%20fonction%20des%20define%29%0D%0A%20%20%20%20%2F%2F%20Enables%20character%20bits%20to%20be%20applied%20to%20the%20correct%20output%20PINs%20%28depending%20on%20define%29%0D%0A%20%20%20%20data4%20%3D%20%28charact%20%26%200x10%29%20%3E%3E%204%3B%0D%0A%20%20%20%20data5%20%3D%20%28charact%20%26%200x20%29%20%3E%3E%205%3B%0D%0A%20%20%20%20data6%20%3D%20%28charact%20%26%200x40%29%20%3E%3E%206%3B%0D%0A%20%20%20%20data7%20%3D%20%28charact%20%26%200x80%29%20%3E%3E%207%3B%0D%0A%20%20%20%20%0D%0A%20%20%20%20RS%20%3D%201%3B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2F%2F%20mode%20caract%C3%A8re%0D%0A%20%20%20%20E%20%3D%201%3B%0D%0A%20%20%20%20Delay10KTCYx%20%28delai%29%3B%20%0D%0A%20%20%20%20E%20%3D%200%3B%0D%0A%20%20%20%20%0D%0A%20%20%20%20data4%20%3D%20charact%20%26%200x01%3B%0D%0A%20%20%20%20data5%20%3D%20%28charact%20%26%200x02%29%20%3E%3E%201%3B%0D%0A%20%20%20%20data6%20%3D%20%28charact%20%26%200x04%29%20%3E%3E%202%3B%0D%0A%20%20%20%20data7%20%3D%20%28charact%20%26%200x08%29%20%3E%3E%203%3B%0D%0A%20%20%20%20%0D%0A%20%20%20%20E%20%3D%201%3B%0D%0A%20%20%20%20Delay10KTCYx%20%28delai%29%3B%20%0D%0A%20%20%20%20E%20%3D%200%3B%0D%0A%7D%0D%0A%0D%0A%0D%0Avoid%20init_LCD%20%28void%29%0D%0A%7B%0D%0A%20%20%20%20%2F%2F%20Mise%20en%20sortie%20des%20PINs%20choisis%20en%20sortie%0D%0A%20%20%20%20%2F%2F%20Output%20selected%20PINs%0D%0A%20%20%20%20data4DEF%20%3D%200%3B%0D%0A%20%20%20%20data5DEF%20%3D%200%3B%0D%0A%20%20%20%20data6DEF%20%3D%200%3B%0D%0A%20%20%20%20data7DEF%20%3D%200%3B%0D%0A%20%20%20%20RSDEF%20%3D%200%3B%0D%0A%20%20%20%20RWDEF%20%3D%200%3B%0D%0A%20%20%20%20EDEF%20%3D%200%3B%0D%0A%20%20%20%20RW%20%3D%200%3B%0D%0A%20%20%20%20LCD_Cmnd%280x28%29%3B%20%20%20%20%20%20%20%20%20%20%20%2F%2F%20Mode%204bits%2C%202%20lignes%20%0D%0A%20%20%20%20LCD_Cmnd%280x01%29%3B%20%20%20%20%20%20%20%20%20%20%20%2F%2F%20Clear%20l%27%C3%A9cran%0D%0A%20%20%20%20LCD_Cmnd%280x0C%29%3B%20%20%20%20%20%20%20%20%20%20%20%2F%2F%20Display%20on%2C%20cursor%20off%20%280x0F%20-%20Display%20on%2C%20cursor%20clignotant%29%0D%0A%7D%0D%0A%0D%0Avoid%20init_UART%28void%29%20%7B%0D%0A%20%20%20%20SPBRG%20%3D%2025%3B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%2F%2F%20Bas%C3%A9%20sur%20la%20formule%20%28%28%284000000%2F9600%29%2F64%29-1%29%20%2F%2FMettre%20la%20trensmition%20sur%202400%20si%20SPBRG%3D25%0D%0A%20%20%20%20TXSTAbits.SYNC%20%3D%200%3B%20%20%20%20%20%20%20%20%20%2F%2F%20Mode%20asynchrone%0D%0A%20%20%20%20TXSTAbits.BRGH%20%3D%200%3B%20%20%20%20%20%20%20%20%20%2F%2F%20Mode%20low%20speed%0D%0A%20%20%20%20RCSTAbits.SPEN%20%3D%201%3B%20%20%20%20%20%20%20%20%20%2F%2F%20Activer%20le%20port%20s%C3%A9rie%20%28TX%20et%20RX%29%0D%0A%20%20%20%20RCSTAbits.CREN%20%3D%201%3B%20%20%20%20%20%20%20%20%20%2F%2F%20Activer%20la%20r%C3%A9ception%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0D%0A%7D%0D%0A%0D%0A%0D%0A%0D%0A%2F%2F%20%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%20Code%20Principal%20%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%0D%0A%0D%0Avoid%20main%20%28void%29%20%0D%0A%7B%20%20%0D%0A%20%20%20%20char%20tabGPS%5B100%5D%3B%0D%0A%20%20%20%20int%20i%3B%0D%0A%20%20%20%20int%20y%3B%0D%0A%20%20%20%20%0D%0A%20%20%20%20init_UART%28%29%3B%0D%0A%20%20%20%20init_LCD%28%29%3B%0D%0A%20%20%20%20%0D%0A%20%20%20%20while%20%281%29%7B%0D%0A%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20%2F%2F%20Charger%20le%20tableau%20avec%20les%20donn%C3%A9es%20du%20GPS%0D%0A%20%20%20%20%20%20%20%20%2F%2F%20Load%20table%20with%20GPS%20data%0D%0A%20%20%20%20%20%20%20%20for%20%28i%3D0%3Bi%3C100%3Bi%2B%2B%29%7B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20while%20%28PIR1bits.RCIF%20%3D%3D%200%29%3B%20%20%20%20%20%20%20%20%20%2F%2F%20Attendre%20qu%27un%20caract%C3%A8re%20soit%20re%C3%A7u%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20tabGPS%5Bi%5D%3D%20RCREG%3B%20%0D%0A%20%20%20%20%20%20%20%20%7D%0D%0A%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20%2F%2F%20Parcouir%20le%20tableau%20et%20afficher%20ce%20qui%20nous%20interesse%20%0D%0A%20%20%20%20%20%20%20%20%2F%2F%20Browse%20the%20table%20and%20display%20what%20interests%20us%20%0D%0A%20%20%20%20%20%20%20%20for%20%28y%3D0%3By%3C100%3By%2B%2B%29%7B%0D%0A%20%20%20%20%20%20%20%20%20%20%20if%20%28tabGPS%5By%5D%20%3D%3D%20%27G%27%20%26%26%20tabGPS%5By%2B1%5D%20%3D%3D%20%27P%27%20%26%26%20tabGPS%5By%2B2%5D%20%3D%3D%20%27R%27%26%26%20tabGPS%5By%2B3%5D%20%3D%3D%20%27M%27%26%26%20tabGPS%5By%2B4%5D%20%3D%3D%20%27C%27%29%7B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20LCD_Cmnd%280x80%29%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20LCD_Charact%28tabGPS%5By%2B6%5D%29%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20LCD_Charact%28tabGPS%5By%2B7%5D%29%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20LCD_Charact%28%27%3A%27%29%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20LCD_Charact%28tabGPS%5By%2B8%5D%29%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20LCD_Charact%28tabGPS%5By%2B9%5D%29%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20LCD_Charact%28%27%3A%27%29%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20LCD_Charact%28tabGPS%5By%2B10%5D%29%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20LCD_Charact%28tabGPS%5By%2B11%5D%29%3B%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%0D%0A%20%20%20%20%7D%0D%0A%7D%20%0D%0A]&lt;/p&gt;</description></item><item><title>RE: PIC18F452 with GPS NEO6M UART</title><link>https://community.element14.com/thread/217543?ContentTypeID=1</link><pubDate>Sun, 10 Dec 2023 19:50:16 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:fac23e12-3018-444d-81ee-2bcdeff139c5</guid><dc:creator>JWx</dc:creator><slash:comments>1</slash:comments><comments>https://community.element14.com/thread/217543?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/technologies/embedded/f/pic-micro-forum/54103/pic18f452-with-gps-neo6m-uart/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;it seems that it generates buffer overflow - what happens when (inside second loop) y &amp;gt; 95? Loop reads data beyond tabGPS end... Question is if it can hang the code? Maybe you can put some debug (cycle some led or print on uart console) inside while loop to check if it iterates or stops?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wrong operation when using internally generated negative voltage reference for A/D converter on PIC16F18877</title><link>https://community.element14.com/thread/217074?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2023 16:42:54 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:a744d88e-ab90-4477-974b-ba6ca5070fc1</guid><dc:creator>scottiebabe</dc:creator><slash:comments>0</slash:comments><comments>https://community.element14.com/thread/217074?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/technologies/embedded/f/pic-micro-forum/54031/wrong-operation-when-using-internally-generated-negative-voltage-reference-for-a-d-converter-on-pic16f18877/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;You may consider doing the operation digitally. Your increasing the sensitivity 8% or 0.1 bits changing the FSR from 5V to 4.6V. You could subtract 416 mV in software. Sounds like a neat project, best of luck.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wrong operation when using internally generated negative voltage reference for A/D converter on PIC16F18877</title><link>https://community.element14.com/thread/217073?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2023 16:36:29 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:6e6f09d0-e4b5-4222-beb5-8c4df721cc65</guid><dc:creator>shabaz</dc:creator><slash:comments>0</slash:comments><comments>https://community.element14.com/thread/217073?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/technologies/embedded/f/pic-micro-forum/54031/wrong-operation-when-using-internally-generated-negative-voltage-reference-for-a-d-converter-on-pic16f18877/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;You explicitly mention in your workaround attempts:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Workaround attempts:&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;- 0.416 V output from DAC to RB7, directly conneted to RA2 via a wire, works just as badly as above.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m merely explaining the pointlessness of doing that, since the datasheet makes it clear that would not be possible.&lt;/p&gt;
&lt;p&gt;You have a solution, which is a buffer.&lt;/p&gt;
&lt;p&gt;If you are unwilling to accept a workaround, then&amp;nbsp;I&amp;#39;m no expert here but it&amp;#39;s clear from the datasheet that what you&amp;#39;re suggesting is not possible.&lt;/p&gt;
&lt;p&gt;Check the diagram below. The negative reference input to the ADC comes from either a pin, or from ground. You can see it in red.&lt;/p&gt;
&lt;p&gt;The DAC output (described as a DAC reference output in the datasheet) in usable &lt;strong&gt;internally&lt;/strong&gt;&amp;nbsp;, as an &lt;strong&gt;input&lt;/strong&gt; to the channel (shown in blue below), &lt;strong&gt;not as a input to the ADC negative reference&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" style="max-height:360px;max-width:640px;"  src="https://community.element14.com/resized-image/__size/1280x720/__key/communityserver-discussions-components-files/23/adc1.png" /&gt;&lt;/p&gt;
&lt;p&gt;If you provided more information about your actual use-case (what you&amp;#39;re measuring for instance) then maybe there are other solutions, but trying to make an internal connection that doesn&amp;#39;t exist won&amp;#39;t work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wrong operation when using internally generated negative voltage reference for A/D converter on PIC16F18877</title><link>https://community.element14.com/thread/217057?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2023 12:49:27 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:ca7820cd-8c2a-4472-8eff-ed49e2e96338</guid><dc:creator>Mila_G</dc:creator><slash:comments>1</slash:comments><comments>https://community.element14.com/thread/217057?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/technologies/embedded/f/pic-micro-forum/54031/wrong-operation-when-using-internally-generated-negative-voltage-reference-for-a-d-converter-on-pic16f18877/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;I have read the PIC specs carefully: &amp;quot;A buffer must be used on the DAC reference output for &lt;strong&gt;external connections&lt;/strong&gt; to the DAC1OUT1/2 pins.&amp;quot;, see above. But I would like to use &lt;strong&gt;internal connection&lt;/strong&gt;! No user external circuitry conneted to the RA2 pin, no wiring, but only internal connection from RA2 to the ADC ref. input &lt;strong&gt;inside the MCU&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Many thanks. Mila.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Wrong operation when using internally generated negative voltage reference for A/D converter on PIC16F18877</title><link>https://community.element14.com/thread/217041?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2023 01:50:21 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:f46da0e4-32e3-45ce-8a66-18e61044d44c</guid><dc:creator>shabaz</dc:creator><slash:comments>1</slash:comments><comments>https://community.element14.com/thread/217041?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/technologies/embedded/f/pic-micro-forum/54031/wrong-operation-when-using-internally-generated-negative-voltage-reference-for-a-d-converter-on-pic16f18877/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;I didn&amp;#39;t read it all, and I&amp;nbsp;have not used a PIC for many years, but looking here:&lt;/p&gt;
&lt;p&gt;&lt;img alt="image" style="max-height:360px;max-width:640px;"  src="https://community.element14.com/resized-image/__size/1280x720/__key/communityserver-discussions-components-files/23/dac1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img loading="lazy" alt="image" style="max-height:360px;max-width:640px;"  src="https://community.element14.com/resized-image/__size/1280x720/__key/communityserver-discussions-components-files/23/dac2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img loading="lazy" alt="image" style="max-height:360px;max-width:640px;"  src="https://community.element14.com/resized-image/__size/1280x720/__key/communityserver-discussions-components-files/23/dac3.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img loading="lazy" alt="image" style="max-height:360px;max-width:640px;"  src="https://community.element14.com/resized-image/__size/1280x720/__key/communityserver-discussions-components-files/23/adc.png" /&gt;&lt;/p&gt;
&lt;p&gt;If I&amp;#39;ve understood your requirement right (I might not have -&amp;nbsp;I&amp;#39;m not used to these registers and other detail you mention) it&amp;#39;s not a surprise if wiring the DAC to anything requires a buffer. The DAC appears to be composed of a ladder of resistors with no buffer from what I can tell, so yes, you&amp;#39;d need to add your own buffer (e.g. op-amp) when realistically connecting that externally to anything.&lt;/p&gt;
&lt;p&gt;If you mention your actual end requirement (including what you&amp;#39;re actually trying to connect the ADC to), and why the external buffer is not usable, then perhaps a different or better solution could be provided.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: And the PIC Fans go wild - PIC18 in Tesla Roadster BMS</title><link>https://community.element14.com/thread/216860?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2023 08:43:06 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:229858c4-c8f1-469e-8869-6099fbfc0f31</guid><dc:creator>michaelkellett</dc:creator><slash:comments>0</slash:comments><comments>https://community.element14.com/thread/216860?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/technologies/embedded/f/pic-micro-forum/53999/and-the-pic-fans-go-wild---pic18-in-tesla-roadster-bms/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;Kudos to Elon and Tesla for actually open sourcing this kind of stuff.&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t think of any other major car maker to do so.&lt;/p&gt;
&lt;p&gt;Just a pity Elon can&amp;#39;t be more consistently admirable &lt;span class="emoticon" data-url="https://community.element14.com/cfs-file/__key/system/emoji/1f641.svg" title="Slight frown"&gt;&amp;#x1f641;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;MK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>And the PIC Fans go wild - PIC18 in Tesla Roadster BMS</title><link>https://community.element14.com/thread/53999?ContentTypeID=0</link><pubDate>Wed, 22 Nov 2023 19:33:48 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:2b97dc0d-fb65-419a-90b0-6da78df83144</guid><dc:creator>scottiebabe</dc:creator><slash:comments>4</slash:comments><comments>https://community.element14.com/thread/53999?ContentTypeID=0</comments><wfw:commentRss>https://community.element14.com/technologies/embedded/f/pic-micro-forum/53999/and-the-pic-fans-go-wild---pic18-in-tesla-roadster-bms/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;&lt;img style="max-height:360px;max-width:640px;" src="https://community.element14.com/resized-image/__size/1280x720/__key/communityserver-discussions-components-files/23/pastedimage1700681538897v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:360px;max-width:640px;" src="https://community.element14.com/resized-image/__size/1280x720/__key/communityserver-discussions-components-files/23/pastedimage1700681567224v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://service.tesla.com/roadster" rel="noopener noreferrer nofollow" target="_blank" data-e14adj="t"&gt;https://service.tesla.com/roadster&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:360px;max-width:640px;" src="https://community.element14.com/resized-image/__size/1280x720/__key/communityserver-discussions-components-files/23/pastedimage1700681595637v3.png" alt=" " /&gt;&lt;/p&gt;</description></item><item><title>RE: And the PIC Fans go wild - PIC18 in Tesla Roadster BMS</title><link>https://community.element14.com/thread/216859?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2023 08:27:05 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:d48b861c-fdc0-4e1f-a181-6f8827838089</guid><dc:creator>Fred27</dc:creator><slash:comments>0</slash:comments><comments>https://community.element14.com/thread/216859?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/technologies/embedded/f/pic-micro-forum/53999/and-the-pic-fans-go-wild---pic18-in-tesla-roadster-bms/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;*Starts rummaging through parts bin looking for a PIC18 and a Lotus Elise*&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: And the PIC Fans go wild - PIC18 in Tesla Roadster BMS</title><link>https://community.element14.com/thread/216849?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2023 20:09:10 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:e6105364-9bdb-429d-b2bd-df9272f705de</guid><dc:creator>scottiebabe</dc:creator><slash:comments>0</slash:comments><comments>https://community.element14.com/thread/216849?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/technologies/embedded/f/pic-micro-forum/53999/and-the-pic-fans-go-wild---pic18-in-tesla-roadster-bms/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;LOL&amp;nbsp;&lt;span class="emoticon" data-url="https://community.element14.com/cfs-file/__key/system/emoji/1f62d.svg" title="Sob"&gt;&amp;#x1f62d;&lt;/span&gt; That;s too funny! Lots of standby legends BAT54, 1n4148, LP2985&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: And the PIC Fans go wild - PIC18 in Tesla Roadster BMS</title><link>https://community.element14.com/thread/216848?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2023 20:05:04 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:42bf2d41-ae56-4d1a-8d61-fbde831ee7cc</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>1</slash:comments><comments>https://community.element14.com/thread/216848?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/technologies/embedded/f/pic-micro-forum/53999/and-the-pic-fans-go-wild---pic18-in-tesla-roadster-bms/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;checking for a 555 timer ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>PIC10F microcontroller output pin tolerance to overriding voltages</title><link>https://community.element14.com/thread/53923?ContentTypeID=0</link><pubDate>Mon, 06 Nov 2023 09:44:42 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:70233cfb-9929-469f-bce0-c50676eb14c9</guid><dc:creator>davebullockmbe</dc:creator><slash:comments>8</slash:comments><comments>https://community.element14.com/thread/53923?ContentTypeID=0</comments><wfw:commentRss>https://community.element14.com/technologies/embedded/f/pic-micro-forum/53923/pic10f-microcontroller-output-pin-tolerance-to-overriding-voltages/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;I am using PIC10F microcontrollers in a wireless project that has evolved into needing to use an &amp;#39;in circuit&amp;#39; programmable radio IC.&lt;/p&gt;
&lt;p&gt;The problem is that the GP2 pin of the PIC would be connected to the DATA input (and programming) pin3 of the radio IC. &lt;br /&gt;The whole circuit is running off 3v7 lipo battery. &lt;br /&gt;My question is will the PIC GP2 output be destroyed when programming the radio IC. ?&lt;/p&gt;
&lt;p&gt;Thanks in anticipation....&lt;/p&gt;
&lt;p&gt;Dave&lt;img style="max-height:360px;max-width:640px;" src="https://community.element14.com/resized-image/__size/1280x720/__key/communityserver-discussions-components-files/23/circuit.jpg" alt=" " /&gt;&lt;/p&gt;</description></item><item><title>RE: PIC10F microcontroller output pin tolerance to overriding voltages</title><link>https://community.element14.com/thread/216250?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 09:17:26 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:46fb7e84-ffb2-40ee-a208-8d20a9564f82</guid><dc:creator>michaelkellett</dc:creator><slash:comments>0</slash:comments><comments>https://community.element14.com/thread/216250?ContentTypeID=1</comments><wfw:commentRss>https://community.element14.com/technologies/embedded/f/pic-micro-forum/53923/pic10f-microcontroller-output-pin-tolerance-to-overriding-voltages/rss?ContentTypeId=0</wfw:commentRss><description>&lt;p&gt;You can set GP2 as an input to prevent it from loading the radio pin during programming:&lt;/p&gt;
&lt;p&gt;From the Microchip data sheet.&lt;/p&gt;
&lt;p&gt;5.2 TRIS Registers&lt;br /&gt;The Output Driver Control register is loaded with the&lt;br /&gt;contents of the W register by executing the TRIS f&lt;br /&gt;instruction. A &amp;lsquo;1&amp;rsquo; from a TRIS register bit puts the corresponding&lt;br /&gt;output driver in a High-impedance mode. A&lt;br /&gt;&amp;lsquo;0&amp;rsquo; puts the contents of the output data latch on the&lt;br /&gt;selected pins, enabling the output buffer. The exceptions&lt;br /&gt;are GP3, which is input only and the GP2/T0CKI/&lt;br /&gt;COUT/FOSC4 pin, which may be controlled by various&lt;br /&gt;registers. See Table 5-1&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;MK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>