CAN ADC poll rate?

A forum for discussing the MegaSquirt related (but non-B&G) board development, assembly, installation, and testing.

Moderators: jsmcortina, muythaibxr

Post Reply
lutorm
Helpful MS/Extra'er
Posts: 146
Joined: Sat Apr 11, 2015 2:53 pm
Location: The island of Hawaii

CAN ADC poll rate?

Post by lutorm »

Quick question: What sets the rate at which the CAN ADC's poll for data in MS2 3.4? I've looked all over but can't find it anywhere. Is it hard coded?

I'm making good progress on my Arduino CAN-relay for my VFR400. Its main function is to send lambda and temp from my two 14point7 SLC controllers to my Microsquirt over CAN, but it also drives the IAC stepper (since a Microsquirt can't), the RPM gauge (protocol not compatible with MS), and the coolant temp gauge (since the sensor goes to the MS now), plus a few other little niceties. I'll probably also add a tipover kill function by adding an accelerometer. If anyone's interested, the code is on bitbucket. It uses a custom boards that I'll publish too, but right now it's in "prototype" stage with components deadbug soldered all over... :)
lutorm
Helpful MS/Extra'er
Posts: 146
Joined: Sat Apr 11, 2015 2:53 pm
Location: The island of Hawaii

Re: CAN ADC poll rate?

Post by lutorm »

Anyone?
slow_hemi6
Super MS/Extra'er
Posts: 4122
Joined: Fri May 07, 2004 3:33 am
Location: Australia

Re: CAN ADC poll rate?

Post by slow_hemi6 »

Not really sure where or what the rate is but the microsquirt IO box manual says to expect a 10mS to 20mS delay between host and slave. So time critical functions should not be reliant on can.
Find the Manuals up top under Quick links: Manuals. :RTFM:
Cheers Luke
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: CAN ADC poll rate?

Post by jsmcortina »

Looks like the update rate is 10ms

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
lutorm
Helpful MS/Extra'er
Posts: 146
Joined: Sat Apr 11, 2015 2:53 pm
Location: The island of Hawaii

Re: CAN ADC poll rate?

Post by lutorm »

Cool thanks!

Just want to make sure I read lambda from the wideband controllers at that rate, too, so I don't introduce a bunch of lag there.
Post Reply