PIC16F1503

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
JUZAR
Posts: 43
Joined: Wed Feb 25, 2015 1:31 pm
Contact:

PIC16F1503

Post by JUZAR »

Hi Sir,

Kindly advise whether flowcode 6 support PIC16F1503. If not is there any substitute or indirect way to design a flow chart using PIC16F1503

Awaiting your reply at the earliest.

Regards.

Juzar.

User avatar
Benj
Matrix Staff
Posts: 15056
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: PIC16F1503

Post by Benj »

Hello,

The PIC16F1503 appears to be in the supported device list for v6.

Are you havign a problem comppiling?

JUZAR
Posts: 43
Joined: Wed Feb 25, 2015 1:31 pm
Contact:

Re: PIC16F1503

Post by JUZAR »

Thanks for your quick response.

Still not compiled, but wanted to confirm whether this device is supported by V6. I checked again in "Project Options " and is supported by V6.

Thanks

JUZAR
Posts: 43
Joined: Wed Feb 25, 2015 1:31 pm
Contact:

Re: PIC16F1503

Post by JUZAR »

Dear Sir,

There is an issue in using PIC16F150X devices. In flowcode 6 when I am trying to select target device PIC16F1504 in project options the pin count is 14, while when selecting target device with higher memory devices like PIC16F1507 - 09 its displaying 20 pin device. In Microchip data sheet all the devices are 14 pin. Can you please assist me how to solve this issue. My requirement is of PIC16F1509 with 14 pin, but cannot use it because flowcode6 is not displaying correct pin count.

Regards.

Juzar.

User avatar
Benj
Matrix Staff
Posts: 15056
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: PIC16F1503

Post by Benj »

Hello Juzar,

I beleive the pin count is correct.

1:DS40001615 PIC12(L)F1501 Data Sheet, 8-Pin Flash, 8-bit Microcontrollers.
2:DS40001607 PIC16(L)F1503 Data Sheet, 14-Pin Flash, 8-bit Microcontrollers.
3:DS40001586 PIC16(L)F1507 Data Sheet, 20-Pin Flash, 8-bit Microcontrollers.
4:DS40001609 PIC16(L)F1508/9 Data Sheet, 20-Pin Flash, 8-bit Microcontrollers.

JUZAR
Posts: 43
Joined: Wed Feb 25, 2015 1:31 pm
Contact:

Re: PIC16F1503

Post by JUZAR »

Thanks Benj.

Yes I rechecked the data sheet, you are correct

Regards.

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 1163
Joined: Wed Dec 31, 2008 3:37 pm
Contact:

Re: PIC16F1503

Post by Steve001 »

Hello Juzar,

I did an excel chip list a while ago (For V6) this may be of help to find a device, the list dose list some high pin counts.

https://www.matrixtsl.com/mmforums/view ... 835#p69835

Hope this helps you with future projects

Steve
Success always occurs in private and failure in full view.

JUZAR
Posts: 43
Joined: Wed Feb 25, 2015 1:31 pm
Contact:

Re: PIC16F1503

Post by JUZAR »

Hi Sir,

I was just implementing seven segment multiplexing as per attached file. I made a flowchart for 1st digit using V6. The simulation works OK by displaying digit 0 to 9 when potentiometer is moved from 0 V to 5 V, but when I am trying to run this on actual circuit the 7 segment displays 0-5 digit correctly but after that it just displays decimal digit only while 6-9 digits are not displayed. Can you please assist what could be the issue. Kindly note that other two digits are presently not used. Actual display and simulation display are both common anode type. The refresh period counter for simulation used is 5, but in actual circuit the counter is set such that it gives 5 mill seconds refresh period
Attachments
3 Individual Digit Voltmeter 24 V.fcfx
(13.05 KiB) Downloaded 3 times

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 9136
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Contact:

Re: PIC16F1503

Post by medelec35 »

Hi
I would recommend controlling 7Seg displays like this
I would suggest looking at 7Segment Timer demo and changing it into the voltmeter you are after.
If you are stuck, I can help you further.
Martin

JUZAR
Posts: 43
Joined: Wed Feb 25, 2015 1:31 pm
Contact:

Re: PIC16F1503

Post by JUZAR »

Thanks you Sir,

I will try again and if any issue will post my questions.

JUZAR
Posts: 43
Joined: Wed Feb 25, 2015 1:31 pm
Contact:

Re: PIC16F1503

Post by JUZAR »

medelec35 wrote:
Wed Nov 25, 2020 9:33 pm
Hi
I would recommend controlling 7Seg displays like this
I would suggest looking at 7Segment Timer demo and changing it into the voltmeter you are after.
If you are stuck, I can help you further.
----------------------------------------------------------------------------------------------------------------------------
Hi Sir,

As per your suggestions I tried controlling display and its perfectly counting 0-9, so this means the hardware is correct. After that I tried multiplexing 3 seven segment LED display as per attached V6 flowchart. In simulation the segments are correctly displaying, but in actual circuit its displaying 000 constantly and while counter is increment each second.
Kindly assist me what could be missing in this.
Regards.
Juzar
Attachments
7Seg_Test2 Multiplex.fcfx
(10.74 KiB) Downloaded 2 times

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 9136
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Contact:

Re: PIC16F1503

Post by medelec35 »

Hi Juzar you have missed this in Main:
Using MOD.png
Using MOD.png (2.01 KiB) Viewed 21 times
So you will need an individual variable for each digit.
I would not recommend placing the the MOD calculations within the timer interrupt.
The MOD function works by extracting the remainder after a division.
In this case it's used to extract hundreds , tens and units from the count variable.
For example is the count value is = 123 then:

Code: Select all

dig0 = count % 10  = 3
dig1 = (count / 10) % 10 = 2
dig2 = (count / 100) % 10 = 1 
The other important issue to resolve is don't have your timer 0 interrupt prescaler on 1:1.
It will vastly affect the delay timing.
In your case 1:4 should suffice.
You may even be better using the timer interrupt for a delay rather than a delay icon.
Martin

Post Reply