Search found 386 matches

by abecedarian
Thu Feb 12, 2015 10:01 am
Forum: Misc
Topic: Is stm32f4 the right chip?
Replies: 161
Views: 350184

Re: Is stm32f4 the right chip?

I'd like to see things represented as a state diagram / machine.
by abecedarian
Wed Feb 11, 2015 6:30 am
Forum: Misc
Topic: Is stm32f4 the right chip?
Replies: 161
Views: 350184

Re: Is stm32f4 the right chip?

After some thought, I should correct myself and say "4-6 interrupt sources".
by abecedarian
Tue Feb 10, 2015 9:35 pm
Forum: Misc
Topic: Is stm32f4 the right chip?
Replies: 161
Views: 350184

Re: Is stm32f4 the right chip?

Maybe I'm confused but the only interrupts you should be dealing with are the teeth and cam events, a timer compare/match to turn on/off injectors and a timer compare/match for firing spark... okay maybe two each for injection and spark since you need to control injection time and dwell. That's 4-6 ...
by abecedarian
Tue Feb 10, 2015 5:05 am
Forum: Misc
Topic: Is stm32f4 the right chip?
Replies: 161
Views: 350184

Re: Is stm32f4 the right chip?

If you have to fire an interrupt to charge the coil, then fire another to fire the coil, you have at least 13ns spent jumping into the IRQ handlers for one cylinder, and that doesn't include the time spent actually executing the code necessary to handle the interrupts properly. Overlapping processe...
by abecedarian
Tue Feb 10, 2015 4:54 am
Forum: Misc
Topic: Is stm32f4 the right chip?
Replies: 161
Views: 350184

Re: Is stm32f4 the right chip?

@abecedarian STM has features that include "tail chaining" which is a cool stack thing, so it doesn't push and pull from the stack more than once. The link from Sync is very informative. .... Well, most ARMv7 has that, including the TMS570 chips mentioned elsewhere, so I'm glad you found ...
by abecedarian
Tue Feb 10, 2015 2:09 am
Forum: Misc
Topic: Is stm32f4 the right chip?
Replies: 161
Views: 350184

Re: Is stm32f4 the right chip?

Also in the logic analyzer capture, what was the sample rate? AKA 24MHz sample clock in the analyzer will add a certain level of +/- tolerance jitter in the measurements. The sample rate of the logic analyzer is 200 MHz. Definitely is not a problem to obtain 0.1 or even 0.01 deg resolution for igni...
by abecedarian
Mon Feb 09, 2015 9:03 pm
Forum: Misc
Topic: Is stm32f4 the right chip?
Replies: 161
Views: 350184

Re: Is stm32f4 the right chip?

The following are my opinions and/or interpretations of things as best I know. With any real-time oriented system, interrupt latency has to be accounted / compensated for. It's worth noting an RTOS itself introduces latency and can exacerbate existing ones. This isn't necessarily a bad thing if the ...
by abecedarian
Mon Feb 09, 2015 7:27 am
Forum: Misc
Topic: Is stm32f4 the right chip?
Replies: 161
Views: 350184

Re: Is stm32f4 the right chip?

@Sergey89 - yeah, your math looks better than mine. I did say I could be wrong, right? ;)
by abecedarian
Mon Feb 09, 2015 12:40 am
Forum: Misc
Topic: Is stm32f4 the right chip?
Replies: 161
Views: 350184

Re: Is stm32f4 the right chip?

~168MHz with 160ns latency?
That's like... 1000 cycles?

At 168MHz, 1 cycle is about 6.1 ns, so 160[ns latency] * 6.1 [ns per cycle] = 976 cycles

More interesting, 976 cycles * 6.1ns = 59536ns... almost 6 microseconds.

My math could be wrong though.
by abecedarian
Sun Feb 08, 2015 6:33 pm
Forum: Misc
Topic: Is stm32f4 the right chip?
Replies: 161
Views: 350184

Re: Is stm32f4 the right chip?

*edit- nevermind.
by abecedarian
Sun Feb 08, 2015 4:08 pm
Forum: Misc
Topic: Is stm32f4 the right chip?
Replies: 161
Views: 350184

Re: Is stm32f4 the right chip?

I agree, to an extent, the system should be more event driven, but I find the comparison between this and F1 in the '80s a bit of a stretch. IIRC, many of the ignition systems at the time were magneto based, so there goes a bunch of current ECU requirement out the window. The fairly narrow RPM requi...
by abecedarian
Sun Feb 08, 2015 6:03 am
Forum: Misc
Topic: Is stm32f4 the right chip?
Replies: 161
Views: 350184

Re: Is stm32f4 the right chip?

If STM32F4 runs an engine, fine. Does that make it "right"?

Some of kb1gtt/Jared's comments do allude that with things as they stand, the chip is getting thin. He also gives good reasons for what considerations the alternatives require before jumping off to something else.
by abecedarian
Sun Feb 08, 2015 3:13 am
Forum: Misc
Topic: Maybe new rusefi target? TMS570
Replies: 96
Views: 79046

Re: Maybe new rusefi target? TMS570

ARM GCC (Linaro) is available for download as an add-on in CCS6 App Center. http://e2e.ti.com/support/microcontrollers/hercules/f/312/p/384089/1356263#1356263 GCC tools are supported in the latest version of HALCoGen (v 4.01.00). When setting up the project, choose the correct "family" of ...
by abecedarian
Fri Feb 06, 2015 11:52 pm
Forum: Misc
Topic: Maybe new rusefi target? TMS570
Replies: 96
Views: 79046

Re: Maybe new rusefi target? TMS570

Q#1: what is XDS100? I know it's something about debugging. Is it a software protocol? Is it a hardware chip implementing some protocol? I see 'XDS100 emulation' all over the place. Why emulation - what is emulating what? XDS100 are JTAG emulators. See XDS100 emulator wiki on TI.com In particular, ...
by abecedarian
Fri Feb 06, 2015 6:15 pm
Forum: Dev: Hardware
Topic: Vr sensor polarity
Replies: 22
Views: 23093

Re: Vr sensor polarity

@kb1gtt- the parts I have came from 82 Honda GL500. The VR pickups are stock and the centrifugal advance mechanism was modified to carry the gear/trigger which was purchased separately and required boring the gear and press-fitting it on the shaft with a few tack welds for good measure. I estimate I...
by abecedarian
Thu Feb 05, 2015 10:26 pm
Forum: Dev: Hardware
Topic: Vr sensor polarity
Replies: 22
Views: 23093

Re: Vr sensor polarity

Do you have an extra VR sensor, crank wheel, and ability to spin the crank wheel? AKA how do we run a physical test? Matter of fact.... (this should look familiar to some) cxtrigger (3).jpg It hasn't been installed yet. Could probably come up with some way to secure and spin things, but I don't thi...
by abecedarian
Wed Feb 04, 2015 6:27 am
Forum: Dev: Hardware
Topic: Vr sensor polarity
Replies: 22
Views: 23093

Re: Vr sensor polarity

The crank VR's on my motorcycle can generate over 380v peak to peak. In retrospect, I should probably think myself lucky since my install will have 6 VR sensors to choose from.... 2 based on camshaft: one for each cylinder reflecting TDC compression (each generates ~14v peak) 2 based on crankshaft: ...
by abecedarian
Tue Feb 03, 2015 7:02 pm
Forum: Dev: Hardware
Topic: Vr sensor polarity
Replies: 22
Views: 23093

Re: Vr sensor polarity

Will it work with voltages from 4mV to 400V... and with single-ended VR?


*edit- Yeah, I sort of pulled those numbers from my arse... but I think it's generally a reasonable question which flipping a battery around can't answer.
by abecedarian
Fri Jan 30, 2015 1:51 am
Forum: Dev: Hardware
Topic: Vr sensor polarity
Replies: 22
Views: 23093

Re: Vr sensor polarity

IIRC, the MAX9924/5/6/7 trigger on the positive going negative transition. So, if your polarity is reversed, your signals are delayed by 1/2 tooth, which in the case of a 60-1 is 3 degrees, a 36-1 is 5 degrees, and 12-1 would be 15 degrees. Even considering single-ended VR, the same would be true, i...
by abecedarian
Thu Jan 29, 2015 5:19 pm
Forum: Dev: Software
Topic: TMS570 first steps
Replies: 12
Views: 12121

Re: TMS570 first steps

Hmm... I don't have that problem.
rus1.jpg
rus1.jpg (515.7 KiB) Viewed 12059 times
And I think it's fairly easy to see my screen is "magnified" a lot more than yours.

*edit- the screen cap is a dual monitor setup.
by abecedarian
Thu Jan 29, 2015 2:31 am
Forum: Dev: Software
Topic: TMS570 first steps
Replies: 12
Views: 12121

Re: TMS570 first steps

That is for the LS0432 board, the first Hercules LP. There is some information regarding using it, in particular how some of the projects require changing certain options in CCS. If you're using the LS1224 board, maybe start here ? And download the dev tools from here : http://www.ti.com/tool/nowecc...
by abecedarian
Tue Jan 27, 2015 4:20 pm
Forum: You and your build
Topic: how about stm32 on R/C model engin control unit
Replies: 4
Views: 4802

Re: how about stm32 on R/C model engin control unit

R/C engine control is going to be fun to implement. ;)

Knowing what type of engine and its displacement, and operating RPM range would help.
Is it spark or compression ignition?

And welcome!
by abecedarian
Mon Jan 26, 2015 4:48 pm
Forum: Misc
Topic: FPGA in ECU
Replies: 43
Views: 49242

Re: FPGA in ECU

klyttle wrote:
abecedarian wrote:IIRC, Xylinx has some FPGA with ADC capabilities, as do some of the others.
You're probably thinking of the Xilinx Virtex line of FPGAs. not sure if any of them are automotive rated though....
I think that was it; didn't check for automotive rating though.
by abecedarian
Mon Jan 26, 2015 4:46 pm
Forum: Dev: Hardware
Topic: external ADC
Replies: 30
Views: 23562

Re: external ADC

From digikey https://octopart.com/ads7953srhbt-texas+instruments-12195531 it's about $11 for low qty. I'm not crazy about the package, I would prefer to see flying leads for thermal expansion issues. That package can be made to work, but requires a bunch of stuff to make it play nice with thermal e...
by abecedarian
Mon Jan 26, 2015 12:56 am
Forum: Dev: Hardware
Topic: external ADC
Replies: 30
Views: 23562

Re: external ADC

ADS7953-Q1 - 12 bit, 16 channel; ADS7252-Q1 - 12 bit, 12 channel
Both pin 'compatible', SAR, 0-5.25v range, external PGA / buffer, SPI, TSSOP-38, 4 GPIO / alarm output / configuration input, -40 to 125C
http://www.ti.com/lit/ds/symlink/ads7956-q1.pdf
by abecedarian
Mon Jan 26, 2015 12:06 am
Forum: Misc
Topic: FPGA in ECU
Replies: 43
Views: 49242

Re: FPGA in ECU

IIRC, Xylinx has some FPGA with ADC capabilities, as do some of the others.
by abecedarian
Thu Jan 22, 2015 4:09 am
Forum: Misc
Topic: Maybe new rusefi target? TMS570
Replies: 96
Views: 79046

Re: Maybe new rusefi target? TMS570

If anyone other than I are serious about this, I'll buy 2 TMS670LS12x LaunchPad and send one to Sr. russian, and the other to Jared. Is this still on the table? I'll take a LAUNCHXL2-TMS57012 and make a meaningful attempt to get it up & running :) I would even take two of these just in case I b...
by abecedarian
Thu Jan 22, 2015 2:06 am
Forum: Misc
Topic: Maybe new rusefi target? TMS570
Replies: 96
Views: 79046

Re: Maybe new rusefi target? TMS570

N2HET register list: http://e2e.ti.com/cfs-file.ashx/__key/communityserver-discussions-components-files/312/5483.NHET_5F00_REG_5F00_HWAG_5F00_DRAFTONLY.pdf Rough graphical example of N2HET operation for angle determination: http://e2e.ti.com/cfs-file.ashx/__key/communityserver-discussions-components...
by abecedarian
Thu Jan 22, 2015 12:53 am
Forum: Misc
Topic: Maybe new rusefi target? TMS570
Replies: 96
Views: 79046

Re: Maybe new rusefi target? TMS570

If anyone other than I are serious about this, I'll buy 2 TMS670LS12x LaunchPad and send one to Sr. russian, and the other to Jared. Is this still on the table? I'll take a LAUNCHXL2-TMS57012 and make a meaningful attempt to get it up & running :) I would even take two of these just in case I b...
by abecedarian
Sun Jan 18, 2015 2:51 am
Forum: Dev: Hardware
Topic: MAP sensor module
Replies: 28
Views: 23960

Re: MAP sensor module

Is 40kPa usable minimum pressure? I thought there could be even lower pressure on idle. Tomin Keep in mind these sensors are "absolute": 0 kPa would be an absolute vacuum and ~101.3kPa would be the mean atmospheric pressure at sea level. Similarly, ~202.6kPa would equal approximately 14.7...