V Drive 2 for data logger

An area to discuss 8-bit PIC specific problems and examples

Moderator: Benj

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: V Drive 2 for data logger

Post by medelec35 »

Hi Steve,
The errors are caused by a bug in the

Code: Select all

16F18875.fcdx
file
The interrupt handler for timer2 is wrong.
Using PIE1 & PIR1 instead of PIE4 & PIR4
I have attached a corrected file.
If you replace existing file within \Flowcode 7\FCD\PIC directory, Hopefully should compile ok after you have reloaded flowchart.

Martin
Attachments
16F18875.fcdx
(28.49 KiB) Downloaded 262 times
Martin

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 1189
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 460 times
Been thanked: 523 times
Contact:

Re: V Drive 2 for data logger

Post by Steve001 »

Hi Martin

once again thank you, will have a go later and get back to you

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

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: V Drive 2 for data logger

Post by medelec35 »

No problem Steve.

Will await your feedback

Martin
Martin

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 1189
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 460 times
Been thanked: 523 times
Contact:

Re: V Drive 2 for data logger

Post by Steve001 »

hi martin

Its programed, I cannot find my usb stick think I have left it at work :(

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

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 1189
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 460 times
Been thanked: 523 times
Contact:

Re: V Drive 2 for data logger

Post by Steve001 »

Hi Martin

Neither example file as above that you posted writing to the usb, they work with my ecio40 the only thing I have changed is the target to PIC16F18875

http://www.matrixtsl.com/mmforums/viewt ... 176#p82483

or

http://www.matrixtsl.com/mmforums/viewt ... 176#p82485

No errors when programming

any ideas

Steve
Attachments
Basic Vdrive Test2.01.fcfx
(17.4 KiB) Downloaded 273 times
Success always occurs in private and failure in full view.

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: V Drive 2 for data logger

Post by medelec35 »

Hi Steve,
You could use USB to serial converter.
Then use Tera Term in Debug mode to log check for correct data.
you can have USB to serial converter and Vdrive in parallel

Martin
Martin

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 1189
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 460 times
Been thanked: 523 times
Contact:

Re: V Drive 2 for data logger

Post by Steve001 »

cheers martin will have a go with that

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

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 1189
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 460 times
Been thanked: 523 times
Contact:

Re: V Drive 2 for data logger

Post by Steve001 »

Hi Martin,

Still no joy :( after reading a bit further in the data sheet Tx/CK (Pin 25 - C6) appears to be a mappable pin I have my vdrive connected to C6 nothing appears to be coming out. Had my scope on it. It's floating around 1mv

looking at page 9 of the data sheet Pin25 = CK, page 10 note3 says that you should map this with a PPS output register as per table 13.3 (page 247) :cry: :? :?

http://ww1.microchip.com/downloads/en/D ... 01802D.pdf

Steve
Attachments
Basic Vdrive Test2- pic.fcfx
(17.4 KiB) Downloaded 257 times
Success always occurs in private and failure in full view.

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: V Drive 2 for data logger

Post by medelec35 »

Hi Steve,
It looks like it maybe the components to do with UART that may need modifying?
Something similar was requested here.
Perhaps it can be added to the list.
As you started this topic and now using Flowcode V7 instead of V6, I have moved to a more appropriate section.

Martin
Martin

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 1189
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 460 times
Been thanked: 523 times
Contact:

Re: V Drive 2 for data logger

Post by Steve001 »

Hi Martin,

Thank you, i will ask the question

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

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 1189
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 460 times
Been thanked: 523 times
Contact:

Re: V Drive 2 for data logger

Post by Steve001 »

Hi Martin,

Can you have a go with this please ? not sure if I am having a airhead brain fart moment

I have the following pin assignments

TX - C6( Pin25)
RX - C1

I don't appear to get any data out of pin 25 have tried a scope, a serial adaptor used with PuTYy (used as a terminal)

http://www.putty.org/

Can you have a try just to make sure I am not being stupid

Steve
Attachments
Basic Vdrive Test2- pic.fcfx
(18.54 KiB) Downloaded 231 times
Success always occurs in private and failure in full view.

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: V Drive 2 for data logger

Post by medelec35 »

What is the voltage on C6?
If successfully been set up for UART then with not data present it should stay at 5V.
Are you using the the latest UART updates from here?
If not don't forget after adding updates to select the Reload icon.
Also you have Baud rate set at 9600. I set the Vdrive to 2400.

Martin
Martin

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 1189
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 460 times
Been thanked: 523 times
Contact:

Re: V Drive 2 for data logger

Post by Steve001 »

Hi Martin

C6 floating around 1 - 2 mV
yes i applied those updates (I will try to apply them again)
the baud rate you modified my .FTD to 9600 here

viewtopic.php?f=68&t=17176&start=25#p82550

i dont think i have applied the RS232 fix in the post above bens i will download that and give it a whirl

Steve

:edit - no my RS232 file is a earlier revision (29.06.2017) will try it and let you know
Success always occurs in private and failure in full view.

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 1189
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 460 times
Been thanked: 523 times
Contact:

Re: V Drive 2 for data logger

Post by Steve001 »

Hi martin,

re installed the updated files, had no joy so far will have another go tomorrow

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

Post Reply