I've reviewed the thread thoroughly. There was no code posted for PIC18F26K22.
A short history:
September 8, 2015 - first code for PIC16F1826
September 10,2015 - first code for PIC18F46K22
September 10,2015 - second version of code for PIC18F46K22
September 10,2015 - third version of code for PIC18F46K22
September 10,2015 - fourth version of code for PIC18F46K22
September 10,2015 - final version of code for PIC18F46K22
The project was originally set out to attempt to use PIC16F1826, then it expanded to PIC18F26K22 per your suggestion. Then you have suggested PIC18F46K22. May I ask why the 46K22 is preferred over the 26K22 or the 1826? If this will operate better for the PIC18F46K22, then the last project was the one you last posted. All projects posted are available in this thread.
PIC18F26K22 was used when only 3 displays were used. You said that there will be 10 digits display and hence I said to use PIC18F46K22 because 10 pins are needed to drive the common cathodes.
Yes. The project was to have 3 numerical displays. Each display contains tens digits. 0-9. or 10 LEDS, one for each digit. So the required MCU would then be PIC18F26K22. I believe that there has been some confusion in our communication dealing with digits and numerals. Attached is an image of the prototype head I built for this project.
Ok. You will need 13 pins in total for the display. So, we will go with 18F26K22. If the hardware is ready then Compile the last code for PIC18F26k22 and try in hardware. Tell what happens.
Where are the 10 resistors for the 10 lines of the LEDs ? You need 330E 1/4W resistors.
Without the 10 resistors the LEDs will short the 5V at PIC pins to GND.
Why do you need code for 18F26K22 when you are using 18F46K22. Just compile the code for 18F46K22 and test it. What changes you need in the code or project settings ?
Where did the 11th LED go ? The one for the decimal point.
I used 46K22 because that was the for the code you suggested. The 26K22 is preferred as only 3 displays are being used. I attempted the last 46K22 code and all LED's are lit with no further reaction. When I program the chip, it proceeds but returns verify errors. I am using an actual 16550 UART port for the JDM programmer (old pc). I've used it on other microcontrollers with no errors.
Changes have to be made for the code if 18F26K22 has to be used. Wait for 30 minutes. I am modifying code for 18F26K22. Do you have the circuit for 18F26K22 ?
Attached is the circuit for 18F26K22. Build this circuit in hardware.
The protoboard in the image will need slight modification and to add the three decimal point LED's. I will get that completed soon. It will be 12 hours before I can access the circuit as I am away from home. So no hurries.