[help needed] TPIC8101DW

Hardware inside and outside of the ECU
Post Reply
nighthunter
donator
donator
Posts: 95
Joined: Sun Feb 21, 2016 8:39 pm

TPIC8101DW

Post 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.
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: TPIC8101DW

Post 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?
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
nighthunter
donator
donator
Posts: 95
Joined: Sun Feb 21, 2016 8:39 pm

Re: TPIC8101DW

Post 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.
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: TPIC8101DW

Post 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 :)
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
nighthunter
donator
donator
Posts: 95
Joined: Sun Feb 21, 2016 8:39 pm

Re: TPIC8101DW

Post 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?
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: TPIC8101DW

Post 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
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
nighthunter
donator
donator
Posts: 95
Joined: Sun Feb 21, 2016 8:39 pm

Re: TPIC8101DW

Post 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.
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: TPIC8101DW

Post by AndreyB »

Please elaborate, what works exacly? Does frankenso schematics have issues?
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
nighthunter
donator
donator
Posts: 95
Joined: Sun Feb 21, 2016 8:39 pm

Re: TPIC8101DW

Post 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.
User avatar
kb1gtt
contributor
contributor
Posts: 3758
Joined: Tue Sep 10, 2013 1:42 am
Location: ME of USA

Re: TPIC8101DW

Post by kb1gtt »

Good to hear you got it running, also good to hear this is already done in the Frankenso layout.
Welcome to the friendlier side of internet crazy :)
User avatar
AndreyB
Site Admin
Posts: 14292
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Github Username: rusefillc
Slack: Andrey B

Re: TPIC8101DW

Post 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.
Very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions

Always looking for C/C++/Java/PHP developers! Please help us see https://rusefi.com/s/howtocontribute
nighthunter
donator
donator
Posts: 95
Joined: Sun Feb 21, 2016 8:39 pm

Re: TPIC8101DW

Post 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. ;)
Post Reply