V Drive 2 for data logger

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

Moderator: Benj

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 7223
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 1942 times
Been thanked: 2837 times
Contact:

Re: V Drive 2 for data logger

Postby medelec35 » Sun Sep 24, 2017 1:10 pm

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.94 KiB) Downloaded 14 times
These users thanked the author medelec35 for the post (total 2):
Steve001 (Sun Sep 24, 2017 8:49 pm) • Benj (Thu Sep 28, 2017 2:51 pm)
Rating: 11.76%
 
If your hardware is not working as expected, try looking here first:
http://www.matrixmultimedia.com/mmforum ... =26&t=6936

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 936
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 395 times
Been thanked: 453 times
Contact:

Re: V Drive 2 for data logger

Postby Steve001 » Sun Sep 24, 2017 8:49 pm

Hi Martin

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

Steve
These users thanked the author Steve001 for the post:
Benj (Thu Sep 28, 2017 2:51 pm)
Rating: 5.88%
 
Success always occurs in private and failure in full view.

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 7223
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 1942 times
Been thanked: 2837 times
Contact:

Re: V Drive 2 for data logger

Postby medelec35 » Thu Sep 28, 2017 10:45 pm

No problem Steve.

Will await your feedback

Martin
These users thanked the author medelec35 for the post:
Steve001 (Sun Oct 01, 2017 6:07 pm)
Rating: 5.88%
 
If your hardware is not working as expected, try looking here first:
http://www.matrixmultimedia.com/mmforum ... =26&t=6936

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 936
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 395 times
Been thanked: 453 times
Contact:

Re: V Drive 2 for data logger

Postby Steve001 » Sun Oct 01, 2017 6:08 pm

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: 936
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 395 times
Been thanked: 453 times
Contact:

Re: V Drive 2 for data logger

Postby Steve001 » Sun Oct 08, 2017 4:43 pm

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/viewtopic.php?f=54&t=17176#p82483

or

http://www.matrixtsl.com/mmforums/viewtopic.php?f=54&t=17176#p82485

No errors when programming

any ideas

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

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 7223
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 1942 times
Been thanked: 2837 times
Contact:

Re: V Drive 2 for data logger

Postby medelec35 » Sun Oct 08, 2017 10:49 pm

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
These users thanked the author medelec35 for the post:
Steve001 (Mon Oct 09, 2017 1:14 pm)
Rating: 5.88%
 
If your hardware is not working as expected, try looking here first:
http://www.matrixmultimedia.com/mmforum ... =26&t=6936

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 936
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 395 times
Been thanked: 453 times
Contact:

Re: V Drive 2 for data logger

Postby Steve001 » Mon Oct 09, 2017 1:14 pm

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: 936
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 395 times
Been thanked: 453 times
Contact:

Re: V Drive 2 for data logger

Postby Steve001 » Sat Oct 14, 2017 5:51 pm

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/DeviceDoc/400001802D.pdf

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

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 7223
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 1942 times
Been thanked: 2837 times
Contact:

Re: V Drive 2 for data logger

Postby medelec35 » Sun Oct 15, 2017 11:12 am

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
These users thanked the author medelec35 for the post:
Steve001 (Sun Oct 15, 2017 2:05 pm)
Rating: 5.88%
 
If your hardware is not working as expected, try looking here first:
http://www.matrixmultimedia.com/mmforum ... =26&t=6936

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 936
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 395 times
Been thanked: 453 times
Contact:

Re: V Drive 2 for data logger

Postby Steve001 » Sun Oct 15, 2017 2:05 pm

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: 936
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 395 times
Been thanked: 453 times
Contact:

Re: V Drive 2 for data logger

Postby Steve001 » Thu Nov 02, 2017 8:23 pm

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 10 times
Success always occurs in private and failure in full view.

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 7223
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 1942 times
Been thanked: 2837 times
Contact:

Re: V Drive 2 for data logger

Postby medelec35 » Thu Nov 02, 2017 11:28 pm

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
These users thanked the author medelec35 for the post:
Steve001 (Fri Nov 03, 2017 5:50 pm)
Rating: 5.88%
 
If your hardware is not working as expected, try looking here first:
http://www.matrixmultimedia.com/mmforum ... =26&t=6936

User avatar
Steve001
Valued Contributor
Valued Contributor
Posts: 936
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 395 times
Been thanked: 453 times
Contact:

Re: V Drive 2 for data logger

Postby Steve001 » Fri Nov 03, 2017 6:00 pm

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: 936
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 395 times
Been thanked: 453 times
Contact:

Re: V Drive 2 for data logger

Postby Steve001 » Sat Nov 04, 2017 6:01 pm

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.