Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
I use the '*' key to return the cursor to the last position to replace a wrong digit. I mean, if a digit is incorrect I don't erase it , I just put another digit on his place when another key number is pressed (because the Keypad_Key_Click() keeps running). When the '#' is pressed after...
Xenos, thanks for reply. I get it. You are right. I will put your code and see if it works, ok? About the for(i=0;i<1;i++) I am using that because when I was simulating on Proteus when I pressed the'*' or '#' the cursor started to move without stopping. I'm not sure if it was a problem with my...
So I think it was really a software problem. I am using Mikroc PRO PIC 5.6.1 and Proteus 8.0. Thanks again for the help.
Thank you all guys for the help. I couldn't have done it without all the support I have found on here.
Special thanks to milan.rajik.
Best regards.
Ok, zip file attached.
- - - Updated - - -
Thanks a lot for the help. This is working now. The only problem I have to fix now is when the user is using the '#' key without finish the 5 digits, because it keeps incrementing my "k" count in the while loop. Because that my keypad stop to work...
First of all, thank you very much! Your project attached was very helpful. But there is a very strange thing. When I use your hex file it works fine, but if I compile your hex file in my compiler it doesn't work anymore. So, I suppose what I have is a software program. Could you tell me what is...
Hi everybody!
I am using PIC18F2550 Mikroc as compiler. My project has a matricial keypad (https://www.arduiner.com/en/tastiere/47-4-x-4-matrix-array-16-key-membrane-switch-keypad-keyboard-for-arduinoavrpic.html) to get a five digits number that will be a reference to a motor's speed in RPM. At...
I tested the simulator just printing the ADC value and it worked fine . The problem is when I want to print the 'ch' array. The display doesn't show anything. How can I see what the 'ch' array contain after the "FloatToStr"?
Thanks for reply!
Yep, ch is a char array length [15] and I am reading the ADC from the channel A0. I configured the registers as below:
TRISA.B0 = 1; // RA0 pin as input
ADCON0 = 0X01; //Enable ADC in the A0 channel
ADCON1 = 0X0E;// To configure RA0 as analogic input
CMCON |= 7; // Disable comparators
Best...
Hi everybody!
I am using the Mikroc compiler with PIC18F2550 and simulating with Proteus.
I want to print a float value in lcd. It is a current value from the ACS712 hall sensor, but it is not working. The LCD doesn't show anything.
The part of the code to display the information is below. If I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.