<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by Lcj</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Sat, 05 Dec 2026 08:12:37 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>Programming problem</title>
            <link>http://forum.lowyat.net/topic/952533</link>
            <description>I&amp;#39;m a final year student of BEE engineering.I&amp;#39;m having problems with my C programming.My purpose of this source code is to display the temperature in seven segment display once the temperature sensor LM35 detect the room temperature.I&amp;#39;m using CCS C compiler.Anyone familiar with this compiler?As a results when i burn this source code into PIC16f877.The seven segment will only display number 16 in seven segment display.Can i know what&amp;#39;s wrong with this source code?&lt;br /&gt;&lt;br /&gt;#include&amp;lt;16f877.h&amp;gt;&lt;br /&gt;#device adc=10&lt;br /&gt;#use delay(clock=10000000)&lt;br /&gt;#fuses hs, noprotect, nowdt, nolvp&lt;br /&gt;&lt;br /&gt;#byte porta=5&lt;br /&gt;#byte portb=6&lt;br /&gt;#byte portd=8&lt;br /&gt;&lt;br /&gt;int i;&lt;br /&gt;int temp;&lt;br /&gt;&lt;br /&gt;void main()&lt;br /&gt;{&lt;br /&gt;   set_tris_d(0b00000000);&lt;br /&gt;   set_tris_b(0b00000000);&lt;br /&gt;   setup_port_a(RA0_analog);&lt;br /&gt;   setup_adc(adc_clock_internal);&lt;br /&gt;&lt;br /&gt;   do&lt;br /&gt;   {&lt;br /&gt;      set_adc_channel(0);&lt;br /&gt;      delay_ms(10);&lt;br /&gt;      temp=read_adc()/2;&lt;br /&gt;&lt;br /&gt;      if (temp=16)&lt;br /&gt;      {  portb=0b00000110;&lt;br /&gt;         portd=0b01111101; }&lt;br /&gt;&lt;br /&gt;      else if (temp=17)&lt;br /&gt;      {  portb=0b00000110;&lt;br /&gt;         portd=0b00000111; }&lt;br /&gt;&lt;br /&gt;      else if (temp=18)&lt;br /&gt;      {  portb=0b00000110;&lt;br /&gt;         portd=0b01111111; }&lt;br /&gt;&lt;br /&gt;      else if (temp=19)&lt;br /&gt;      {  portb=0b00000110;&lt;br /&gt;         portd=0b01101111; }&lt;br /&gt;&lt;br /&gt;      else if (temp=20)&lt;br /&gt;      {  portb=0b01011011;&lt;br /&gt;         portd=0b00111111; }&lt;br /&gt;&lt;br /&gt;      else if (temp=21)&lt;br /&gt;      {  portb=0b01011011;&lt;br /&gt;         portd=0b00000110; }&lt;br /&gt;&lt;br /&gt;      else if (temp=22)&lt;br /&gt;      {  portb=0b01011011;&lt;br /&gt;         portd=0b01011011; }&lt;br /&gt;&lt;br /&gt;      else if (temp=23)&lt;br /&gt;      {  portb=0b01011011;&lt;br /&gt;         portd=0b01001111; }&lt;br /&gt;&lt;br /&gt;      else if (temp=24)&lt;br /&gt;      {  portb=0b01011011;&lt;br /&gt;         portd=0b01100110; }&lt;br /&gt;&lt;br /&gt;      else if (temp=25)&lt;br /&gt;      {  portb=0b01011011;&lt;br /&gt;         portd=0b01101101; }&lt;br /&gt;&lt;br /&gt;      else if (temp=26)&lt;br /&gt;      {  portb=0b01011011;&lt;br /&gt;         portd=0b01111101; }&lt;br /&gt;&lt;br /&gt;      else if (temp=27)&lt;br /&gt;      {  portb=0b01011011;&lt;br /&gt;         portd=0b00000111; }&lt;br /&gt;&lt;br /&gt;      else if (temp=28)&lt;br /&gt;      {  portb=0b01011011;&lt;br /&gt;         portd=0b01111111; }&lt;br /&gt;&lt;br /&gt;      else if (temp=29)&lt;br /&gt;      {  portb=0b01011011;&lt;br /&gt;         portd=0b01101111; }&lt;br /&gt;&lt;br /&gt;      else if (temp=30)&lt;br /&gt;      {  portb=0b01001111;&lt;br /&gt;         portd=0b00111111; }&lt;br /&gt;&lt;br /&gt;       delay_ms(2000);&lt;br /&gt;&lt;br /&gt;   }while(1);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description>
            <author>Lcj</author>
            <category>Codemasters</category>
            <pubDate>Tue, 03 Mar 2009 00:18:10 +0800</pubDate>
        </item>
        <item>
            <title>Final year project</title>
            <link>http://forum.lowyat.net/topic/742911</link>
            <description>I&amp;#39;m currently in the final year of my electrical and electronic course from uniten.I&amp;#39;m having problem about the idea of final year project.Please leave any suggestion? &lt;!--emo&amp;:help:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/icon_question.gif' border='0' style='vertical-align:middle' alt='icon_question.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>Lcj</author>
            <category>Serious Kopitiam</category>
            <pubDate>Tue, 15 Jul 2008 14:30:09 +0800</pubDate>
        </item>
    </channel>
</rss>
