digital dice using 8051 source code for free
#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: electronic dice project abstract, digital dice using 8051 and code using a source coding, samag id num, digital dice with numeric display, pic based dice, electronic dice project, advantage of digital dice,

[-]
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)

Messages In This Thread
digital dice using 8051 source code for free - by Guest - 08-09-2016, 08:29 PM
RE: digital dice using 8051 source code for free - by ijasti - 09-09-2016, 09:39 AM

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

Forum Jump: