digital dice using 8051 source code for free
#1
Thumbs Up 

I need tis code for my project..pleasehlp me..i dunwan to gif uo tis topic cos of the coding..so i need tis vry vry much..thankyou so much..
Reply
#2

// Program to make a digital dice
#include<reg51.h>
sbit reset=P3^3;
sbit start=P1^1;
sbit pause=P3^2;
sbit enable=P1^0;
int current=0;
char num[]={0xF9,0x24,0x30,0x19,0x12,0x02}; // Hex values
corresponding to1to6
void delay(int time) // Function to generate time delay
{
int i,j;
for(i=0;i<time;i++)
for(j=0;j<1275;j++);
}
void pausefn()interrupt 0 //Pause function using external
interrupt 0
{
IE=0x84;
P2=num[current];
while(1)
{
if( start==0 )
break;
if(reset==0)
{
enable=1;
current=0;
P2=num[current];
while(start==1);
return;
}
enable=1;
delay(25);
if( start==0)
break;
if(reset==0)
{
enable=1;
current=0;
P2=num[current];
while(start==1);
return;
}
enable=0;
delay(25);
}
enable=1;
}
void resetfn()interrupt 2 // Reset function using timer
interrupt 2
{
current=0;
P2=num[current];
while(start==1);
enable=1;
}
void main()
{
enable=1;
while(1)
{
IE=0x85;
if(current >5)
{
current=0;
}
P2=num[current];
delay(15);
current++;
}
}
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: digital dice game ppt, electronic dice using dot matrix display, advantages n disadvantages of electronic dice, w w w ssmid num, 8051 projects with source code free, free pdf of 8051, chil ssmid num,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  Over Speed Alarm Indicators of Electrical Motor with Digital RPM Indicator 0 250 25-07-2023, 05:33 AM
Last Post:
  voice vased email system source code 0 3,119 20-04-2021, 07:59 AM
Last Post:
  ns2 source codes free download for hello flood attack 0 2,824 31-10-2018, 02:42 PM
Last Post: Guest
  voice based email for blinds source code 0 705 22-10-2018, 05:12 PM
Last Post: Guest
  source code for blood group detection in matlab 0 6,366 22-10-2018, 10:59 AM
Last Post: Guest
  voice based email for blinds source code 0 692 21-10-2018, 07:58 PM
Last Post: Guest
  voice based email for blinds source code 0 631 21-10-2018, 07:43 PM
Last Post: Guest
  download ajay deshmukh microcontroller 8051 pdf 0 700 13-10-2018, 02:02 AM
Last Post: Guest
  source code for hall ticket generation in php 0 2,026 08-10-2018, 10:00 PM
Last Post: Guest
  voice based email for blinds source code 0 644 28-09-2018, 02:42 PM
Last Post: Guest

Forum Jump: