<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Need help about embedded C programming' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Need help about embedded C programming' posted on the 'C and C++' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Fri, 24 May 2013 19:46:03 -0700</pubDate>
    <lastBuildDate>Fri, 24 May 2013 19:46:03 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Need help about embedded C programming</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/394372/394372/need-help-about-embedded-c-programming/</link>
      <description>Hi all,&lt;br /&gt;
I need some info about below program for embedded C,&lt;br /&gt;
&lt;br /&gt;
void main (void ){&lt;br /&gt;
unsigned char mybyte;&lt;br /&gt;
P1=0xFF; // make port input enabled&lt;br /&gt;
while (1){&lt;br /&gt;
mybyte=P1;&lt;br /&gt;
MSDelay(500);&lt;br /&gt;
P2=mybyte; // buzzer signal&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
In above program, 0xFF signal is sent to port 1 for enabling it for input.&lt;br /&gt;
Now if, i am passing 0xFF as an input signal to port 1 then the same data will get assigned to mybyte and after that it will be sent to P2.&lt;br /&gt;
Now my question is, will P2 become input enabled or it will just send that data to output device?&lt;br /&gt;
How does the port differentiate between output signal and latch signal? &lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Mahesh Kedari</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/394372/394372/need-help-about-embedded-c-programming/</guid>
      <pubDate>Wed, 29 Jul 2009 10:05:08 -0700</pubDate>
      <category>C and C++</category>
    </item>
    <item>
      <title>Re: Need help about embedded C programming</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/394372/394461/re-need-help-about-embedded-c-programming/#394461</link>
      <description>Typically, microcontrollers have at least 2 registers per port: one for data direction (input/output) and one for the actual data.&lt;br /&gt;
&lt;br /&gt;
How your particular microcontroller works, I have no idea. Might be wise posting which one it is if you expect better replies...</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/394372/394461/re-need-help-about-embedded-c-programming/#394461</guid>
      <pubDate>Fri, 31 Jul 2009 07:23:31 -0700</pubDate>
      <category>C and C++</category>
    </item>
  </channel>
</rss>