Send the link below via email or IMCopy
Present to your audienceStart remote presentation
- Invited audience members will follow you as you navigate and present
- People invited to a presentation do not need a Prezi account
- This link expires 10 minutes after you close the presentation
- A maximum of 30 users can follow your presentation
- Learn more about this feature in our knowledge base article
Do you really want to delete this prezi?
Neither you, nor the coeditors you shared it with will be able to recover it again.
Make your likes visible on Facebook?
You can change this under Settings & Account at any time.
Transcript of Card Predictor
EE 202 Digital Circuits Laboratory
Lab Group 41
Rahul Ghosh 120108027
Ashima Jain 120108051
Digital simulation of the card predictor trick.
Card Predictor as the name says predicts the fifth card out of a set of randomly chosen five cards.Four of these cards are given to the 8085 microprocessor.It computes and outputs both the value as well as the suit of the fifth card.
Description of Input Circuit
The input circuit consists of two parts :
Suits: Four switches have been provided to input the suit viz. Club, Diamond, Spade and Heart, of the corresponding card.
Suits Hex value
Card Value: For each suit, there are thirteen different possible values(from 2 to 9 and then jack to ace) of a card. So, there are thirteen switches for taking the input of the value of the cards.
Card Value Hex value
Description of Output Circuit
The output to be displayed comprises of both the value as well as the suit of the fifth card. 8085 gives 8 bit input where the upper 4 bits correspond to the value while the lower four to the suit. Two 7-segment displays have been used for displaying the first letter of the suit and the hex value of the card value.
Block Diagram of the circuit
8085 Assembly Code
The upper and lower C ports of 8255 are used as input ports for taking the input of the card value and the suit respectively. Port A is configured as output port. The 8085 code is as follows.
The circuit worked and the value of the fifth card was predicted correctly.
As per the present code, we can have a maximum of 3 cards having the same suit. This can be further improved so that it works with more than 3 cards having the same suit.
By introducing certain changes in the code, we can also simulate other card games using the same logic circuit.