Page 1 of 1

TPIC8101DW

Posted: Sun Apr 16, 2017 4:29 pm
by nighthunter
Hi,
today im trying to make the TPIC to work. Can somebody help me how to configure it in TS? I think the problem is there. What about the connection the connection is 1:1 as the frankenso .4 pcb. Im getting nothing out of the tpic, i am using signal generator 4Vpp 8kHz on input.

Re: TPIC8101DW

Posted: Sun Apr 16, 2017 4:34 pm
by AndreyB
On the forum and in the code base we usually mention it as hip9011 - please search for hip9011 and go over all topics. http://rusefi.com/forum/viewtopic.php?f=4&t=400 and http://rusefi.com/forum/viewtopic.php?f=5&t=778

Really painful subject, three years of head banging now?

I suggest using rusEfi console since it has a few helpful commands. See https://github.com/rusefi/rusefi/blob/master/firmware/hw_layer/HIP9011.cpp for altimate details.

What is your hipinfo output?

Re: TPIC8101DW

Posted: Sun Apr 16, 2017 4:41 pm
by nighthunter
This is my output of hipinfo in console

2017-04-16 18_39: EngineState: confirmation_hipinfo:7
2017-04-16 18_39: EngineState: spi 1=No/2=Yes/3=Yes
2017-04-16 18_39: EngineState: enabled=Yes state=1 bore=87.50mm freq=7.79kHz PaSDO=3
2017-04-16 18_39: EngineState: band_index=43 gain 1.00/index=-1 output=PC0
2017-04-16 18_39: EngineState: integrator index=-1 knockVThreshold=1.00 knockCount=0 maxKnockSubDeg=20.00
2017-04-16 18_39: EngineState: spi=SPI_DEVICE_2 IntHold@PB11/1 response count=3 incorrect response=0 ok
2017-04-16 18_39: EngineState: CS@PB0 updateCount=0
2017-04-16 18_39: EngineState: hip 0.00v/last=2.09@PC0/max=0.00 adv=0
2017-04-16 18_39: EngineState: mosi=PB15
2017-04-16 18_39: EngineState: miso=PB14
2017-04-16 18_39: EngineState: sck=PB13
2017-04-16 18_39: EngineState: start 35.00 end 135.00
2017-04-16 18_39: EngineState: knock now=No/ever=No


EGT sensor hangs on SPI3 and is fully working, so the two SPIs are enabled.

Re: TPIC8101DW

Posted: Sun Apr 16, 2017 4:44 pm
by AndreyB
nighthunter wrote: response count=3 incorrect response=0 ok
That's a good start! At least SPI seems to be fine.

In these two older threads there are videos of oscilloscopes on the output, can you make a similar video? Would we at least see some zigi-zaggy?

Also I believe touching random hardware parts was sometimes helping :)

Re: TPIC8101DW

Posted: Sun Apr 16, 2017 4:49 pm
by nighthunter
Yes, that is what i thinking, something in input stage goes wrong. I will test it. I have the Int/hold inputmode as default inverted, and the CSPIN input mode also. Is not that the problem?
The command enable tpic_advanced_mode toggles the internal ADC reading or STM analog input? So if i use enable tpic_advanced_mode 1 i can ignore the STM analog input?

Re: TPIC8101DW

Posted: Sun Apr 16, 2017 4:54 pm
by AndreyB
I personally have no recollection of any sucesses with tpic_advanced_mode - I was only using analog output.

I've pretty much just posted all I remember about this topic, as I said quite some time ago and quite a depressing subject. You need an oscilloscope and your turn to band yout head a bit, I hope you would be able to move this sore issue forward!

Looks like default for prescaler is
hip9011PrescalerAndSDO = 6; // 8MHz chip

Re: TPIC8101DW

Posted: Tue Apr 18, 2017 4:05 pm
by nighthunter
Problem is solved now. The INT/HOLD pin is not internally pulled high, but its pulled low! That was the failure. Now it works.

Re: TPIC8101DW

Posted: Tue Apr 18, 2017 4:10 pm
by AndreyB
Please elaborate, what works exacly? Does frankenso schematics have issues?

Re: TPIC8101DW

Posted: Tue Apr 18, 2017 4:27 pm
by nighthunter
russian wrote:Please elaborate, what works exacly? Does frankenso schematics have issues?
When i designed my board i looked into the TPIC8101 datasheet and all SPI lines and CS have pullups, but i have not read correctly that the INT/HOLD is internally pulled low. I did not placed a pullup for the INT/HOLD. It seems that the 3.3 high logic level was not enough for the TPIC. Now it works. On Frankenso board there is R170 for the INT/HOLD line designed.

Re: TPIC8101DW

Posted: Tue Apr 18, 2017 5:19 pm
by kb1gtt
Good to hear you got it running, also good to hear this is already done in the Frankenso layout.

Re: TPIC8101DW

Posted: Tue Apr 18, 2017 5:21 pm
by AndreyB
nighthunter wrote:Now it works.
Please keep us posted on your progress! I would love for someone to step in and move this area forward.

Re: TPIC8101DW

Posted: Wed Apr 19, 2017 6:28 am
by nighthunter
russian wrote:
nighthunter wrote:Now it works.
Please keep us posted on your progress! I would love for someone to step in and move this area forward.
Stay tuned. I am making steps forward as i will now have some "free" time to move forward with my car. Summer is near and the car must be driveable at summer. ;)