Converting a PIC DVM to output decimal

Thread Starter

Remembermyname

Joined Sep 6, 2015
91
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
 
Last edited:

jayanthd

Joined Jul 4, 2015
945
For which PIC you need the code ?

If you need for 18F46K22 then post the final version project. I will see if any modifications are needed.
 

Thread Starter

Remembermyname

Joined Sep 6, 2015
91
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.
 

jayanthd

Joined Jul 4, 2015
945
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.
 

Thread Starter

Remembermyname

Joined Sep 6, 2015
91
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.


IMAG2322.jpg
 

jayanthd

Joined Jul 4, 2015
945
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.
 
Last edited:

Thread Starter

Remembermyname

Joined Sep 6, 2015
91
Per previous post, there is no code for PIC18F26K22 in the thread. Only for PIC16F1826 and PIC18F46K22.

The resistors are next to the ribbon connector. They are 1/8w so they are small.
 

jayanthd

Joined Jul 4, 2015
945
Ok. I see the resistors. Now, are you using 18F46K22 or 18F26K22 in the hardware. it seems you are using 18F46k22 from the picture. Am I right ?

You need code for 18F46K22 or for 18F26K22 ?
 

jayanthd

Joined Jul 4, 2015
945
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.
 
Last edited:

Thread Starter

Remembermyname

Joined Sep 6, 2015
91
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.
 

jayanthd

Joined Jul 4, 2015
945
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.
 

Attachments

Last edited:

Thread Starter

Remembermyname

Joined Sep 6, 2015
91
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.
 

jayanthd

Joined Jul 4, 2015
945
Ok. You get the hardware and inform me. I am working on the code, it is almost complete, just making modifications for the decimal point.

Edit:

Find the attached file. The project is complete.
 

Attachments

Last edited:
Top