473,395 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

in keil software

Expand|Select|Wrap|Line Numbers
  1.   #include<stdio.h>
  2.   #include<reg52.h>
  3. void main()
  4.   {
  5.        int bit1, z=0;;
  6.  
  7. SCON  = 0x50;
  8. TMOD |= 0x20;
  9. TH1   = 0xFA;
  10. TR1   = 1;
  11. TI    = 1;
  12. PCON |= 0x80; 
  13.  
  14.  
  15.  printf("enter bit to set ? \n ");
  16.  
  17.  scanf("%d", &bit1);
  18.  
  19.       z = z | (1 << bit1);
  20.  
  21.       printf("z=%x \n", z);
  22.  
  23.  
  24.  
  25.  
  26.  }
  27.  
could not see the printf statement.wat is the error in the code?
Sep 24 '07 #1
1 1662
Meetee
931 Expert Mod 512MB
Do you get any error while compiling? Please post them.
Sep 24 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: spotato | last post by:
How to use a self created library in Keil C ? ======================================= i have create a header file myfirst.h ======================================= #pragma SAVE #pragma...
2
by: Sridhar_Gadda | last post by:
Hello everyone, Anyone has experience using keil pk-Arm and ARM microcontroller. I am novice in this field and any help in getting introduction would be appreciated. With regards, Sridhar
102
by: Xah Lee | last post by:
i had the pleasure to read the PHP's manual today. http://www.php.net/manual/en/ although Pretty Home Page is another criminal hack of the unix lineage, but if we are here to judge the quality...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.