Hi.
I need to do some program from PIC18F4520 to get from keypad 4*4 two number of max 4 element and check they for equal or greter of they and print input values to UART and result of comprasiong number. I can start to work but dont have some of good result. in technical specification my teacher set that i dont use any libriary.
Please help me !
I can see in this forum some examples, but they dont work in my microcontroller
No one here will do your homework for you. Think about the steps you need to do to solve the problem. Look for examples for each stage, try to understand them then come back with questions about with you don't understand.
You say you have found examples, translate them to the PIC, it's not hard.
1. Write a keypad scanning routine - look for examples of how to implement matrix scanning, you will find it very useful in the future and it isn't hard to do.
2. Scan for a key being pressed. Store its number.
3. Do the same again and store the second number.
4. Compare the numbers.
5. Send a message to the UART announcing the result.
You have not said which language you are coding in and which assembler of compiler you use so we can't be specific about code. In general, you can copy the techniques used in one program into another but you can't just copy chunks of code. That would be like taking the wing off an aircraft, attaching it to a bicycle wheel, adding a boat rudder and train engine to make an all terrain vehicle.
Hi.
I need to do some program from PIC18F4520 to get from keypad 4*4 two number of max 4 element and check they for equal or greater of they and print input values to UART and result of comprasiong number. I can start to work but don't have some of good result. in technical specification my teacher set that i don't use any library.
Please help me !
I can see in this forum some examples, but they don't work in my microcontroller