Palindrome Code Simulation at Proteus Using Atmega16

So its time to test our program. If you still unfamiliar that what we are doing so here a little introduction for you.We are Making an palindrome code in assembly language. First we developed our logic then we wrote a code and we had saved this code in hex file and now we are going to test this code.So the platform we are using to test code is Proteus. If you don’t know how to use it please google about it as this is not our objective right now.Please download attached zip and extract and open “Test_bench.DSN”.You will see it like following figure.Please follow these steps to burn a program in micro controller

  • Now double click at micro controller “ATMEGA16”
  • In the front of “Program file” their is option for Browse.
  • Now select your hex file. (Hex file is attached in zip)
  • Press ok

Now at the bottom there is option for play. Click at it.

PORT ‘D’ (INPUT PORT)

We are using PORT D as input port and so we have attached logic states to each pin of PORT D for quick testing.

PORT ‘C’ (OUTPUT PORT)

If the number of inputs would be palindrome then the logic state at 5th pin of PORT C will be high or 1 and if the number of inputs would not be palindrome then the logic state at 3rd pin of PORT C will be high or 1.

PORT ‘A’ , PORT ‘B’ (Testing Ports)

We used PORT ‘A’ and PORT ‘B’ for testing of out at different stages of code that we are get output same as we made a basic concept or we did paper work.For testing at each stage you can use instruction like this

OUT PORTA, R28

 

PART2

My Turn.I tried to explain all this code as much as i can.But if you are getting any problem or tried to improve this code that would be great and please consider sharing it in below comments. Tell me my mistakes as nothing is perfect. Thanks for reading.

Waiting for you kind comments.  Download Files

Let's Discuss

  • http://YourWebsite dabsaru

    Valuable information. Fortunate me I found your web site by accident, and I’m shocked why this accident didn’t came about in advance! I bookmarked it.