Clock Speed - XTALHPS

Disassembly, Programming, Coding, Assembly, Binary information and all hacking discussions belong here.

Clock Speed - XTALHPS

Unread postby decipha » Mon Dec 28, 2015 10:16 pm

...to raise awareness

the 4 bank eec-v's have 5 different clock speeds, only 4 or 3 were used to my knowledge

None - 0.0 = 15 mhz
1998 explorer & mark 8 - 1.0 = 18mhz
maybe some oddities??? - 2.0 = 21mhz
99-01 most all - 3.0 = 24 mhz
03-04 mostly - 4.0 = 27mhz

Ive added a patch in tunerpro for FBFG2, so it will support 1.0 and 2.0 clock ecus

now the test is to see if they can execute the code !!!

I will reply back when the time comes
User avatar
decipha
Tooner
 
Posts: 15787
Joined: Mon Jul 15, 2013 5:29 pm
Location: New Orleans, LA
Name: Michael Ponthieux
Vehicle Information: Supercoupin' x10
90 (4x 5spds) - Dante, Ruby, Daja, Ava
91 4r70w - Skarlett
92 (2x) 5spd & auto - Bianqa, Andrea
93 auto - Danika
94 5spd Rionda
95 auto Aisha
Vehicle 2 Information: Others:
00 Lincoln LS - Luanda
98 Camaro SS - Bounquisha
02 Harley F-150 - Sasasha
03 Marauder - DyShyKy
00 Explorer 5L - Bernyce

Re: Clock Speed - XTALHPS

Unread postby sailorbob » Tue Dec 29, 2015 3:00 am

The 1.0 speed is 18 MHz.
sailorbob
Tuning Extraordinaire
 
Posts: 139
Joined: Tue Jul 16, 2013 1:04 am

Re: Clock Speed - XTALHPS

Unread postby sailorbob » Tue Dec 29, 2015 5:27 am

decipha wrote:Ive added a patch in tunerpro for FBFG2, so it will support 1.0 and 2.0 clock ecus
Have you added clock speed index tables and SPI Bit Transfer Rate scalars to accommodate the lower clock speeds?

Also, when changing XTALHPS there are other items affected; e.g. calculation of the "Engine Off Timer" (aka eng_off_tmr) and the setting of EDIS SPI bit rate.

There are also different versions of the AICE chip that affect what strategy code is used in an ecu and how that code runs that need taking into account when using different hardware.
sailorbob
Tuning Extraordinaire
 
Posts: 139
Joined: Tue Jul 16, 2013 1:04 am

Re: Clock Speed - XTALHPS

Unread postby decipha » Tue Dec 29, 2015 9:34 am

I modified the index rate scalars

It looks like the majority of all calculations are based on that rate

I reduced speeds on my truck when i swapped from a 4.0 to a 3.0 and havent observed any oddities
User avatar
decipha
Tooner
 
Posts: 15787
Joined: Mon Jul 15, 2013 5:29 pm
Location: New Orleans, LA
Name: Michael Ponthieux
Vehicle Information: Supercoupin' x10
90 (4x 5spds) - Dante, Ruby, Daja, Ava
91 4r70w - Skarlett
92 (2x) 5spd & auto - Bianqa, Andrea
93 auto - Danika
94 5spd Rionda
95 auto Aisha
Vehicle 2 Information: Others:
00 Lincoln LS - Luanda
98 Camaro SS - Bounquisha
02 Harley F-150 - Sasasha
03 Marauder - DyShyKy
00 Explorer 5L - Bernyce

Re: Clock Speed - XTALHPS

Unread postby sailorbob » Tue Dec 29, 2015 3:22 pm

If you don't have a clock speed index table for the relevant crystal frequency then all the calculations that rely on clock ticks will be wrong.
sailorbob
Tuning Extraordinaire
 
Posts: 139
Joined: Tue Jul 16, 2013 1:04 am

Re: Clock Speed - XTALHPS

Unread postby decipha » Tue Dec 29, 2015 5:39 pm

good to know i'll keep diggin thanks!!
User avatar
decipha
Tooner
 
Posts: 15787
Joined: Mon Jul 15, 2013 5:29 pm
Location: New Orleans, LA
Name: Michael Ponthieux
Vehicle Information: Supercoupin' x10
90 (4x 5spds) - Dante, Ruby, Daja, Ava
91 4r70w - Skarlett
92 (2x) 5spd & auto - Bianqa, Andrea
93 auto - Danika
94 5spd Rionda
95 auto Aisha
Vehicle 2 Information: Others:
00 Lincoln LS - Luanda
98 Camaro SS - Bounquisha
02 Harley F-150 - Sasasha
03 Marauder - DyShyKy
00 Explorer 5L - Bernyce

Re: Clock Speed - XTALHPS

Unread postby decipha » Wed Dec 30, 2015 1:12 am

wow! alright so it gets pretty deep, I found a buncha references where the crystal clock ticks are used instead of a conversion, all of these will need to be updated, Ive found about 10 locations so far but im willing to bet theres plenty more

It appears the 27mhz crystal has 250 ticks per millisecond

even the PWM has a ticks reference to itself, I haven't figured out its conversion yet though as im getting a 78.xx ?? base value when dividing by 250

long day but imma keep plugging at it when i get a chance

thanks for the heads up derek
User avatar
decipha
Tooner
 
Posts: 15787
Joined: Mon Jul 15, 2013 5:29 pm
Location: New Orleans, LA
Name: Michael Ponthieux
Vehicle Information: Supercoupin' x10
90 (4x 5spds) - Dante, Ruby, Daja, Ava
91 4r70w - Skarlett
92 (2x) 5spd & auto - Bianqa, Andrea
93 auto - Danika
94 5spd Rionda
95 auto Aisha
Vehicle 2 Information: Others:
00 Lincoln LS - Luanda
98 Camaro SS - Bounquisha
02 Harley F-150 - Sasasha
03 Marauder - DyShyKy
00 Explorer 5L - Bernyce

Re: Clock Speed - XTALHPS

Unread postby sailorbob » Wed Dec 30, 2015 3:57 pm

The clock speed index tables in the FBFG2 strategy are 134 bytes in size for each speed. There are a few other parameters dotted around that are clock speed related too.
sailorbob
Tuning Extraordinaire
 
Posts: 139
Joined: Tue Jul 16, 2013 1:04 am

Re: Clock Speed - XTALHPS

Unread postby decipha » Thu Dec 31, 2015 7:26 pm

thanks that gives me a reference, I'll post back with the address and new table values when I find it, itll be a while before i can check it out
User avatar
decipha
Tooner
 
Posts: 15787
Joined: Mon Jul 15, 2013 5:29 pm
Location: New Orleans, LA
Name: Michael Ponthieux
Vehicle Information: Supercoupin' x10
90 (4x 5spds) - Dante, Ruby, Daja, Ava
91 4r70w - Skarlett
92 (2x) 5spd & auto - Bianqa, Andrea
93 auto - Danika
94 5spd Rionda
95 auto Aisha
Vehicle 2 Information: Others:
00 Lincoln LS - Luanda
98 Camaro SS - Bounquisha
02 Harley F-150 - Sasasha
03 Marauder - DyShyKy
00 Explorer 5L - Bernyce

Re: Clock Speed - XTALHPS

Unread postby decipha » Sun Jan 03, 2016 1:43 pm

hey derek can u toss me a bone?

I hadnt much time to do any extensive digging but i did quickly sift through it and couldnt find any reference tables, can you share the address ?
User avatar
decipha
Tooner
 
Posts: 15787
Joined: Mon Jul 15, 2013 5:29 pm
Location: New Orleans, LA
Name: Michael Ponthieux
Vehicle Information: Supercoupin' x10
90 (4x 5spds) - Dante, Ruby, Daja, Ava
91 4r70w - Skarlett
92 (2x) 5spd & auto - Bianqa, Andrea
93 auto - Danika
94 5spd Rionda
95 auto Aisha
Vehicle 2 Information: Others:
00 Lincoln LS - Luanda
98 Camaro SS - Bounquisha
02 Harley F-150 - Sasasha
03 Marauder - DyShyKy
00 Explorer 5L - Bernyce

Re: Clock Speed - XTALHPS

Unread postby sailorbob » Sun Jan 03, 2016 2:56 pm

Where the ram pointers are assigned you'll also see the "Clock Index Pointer" (aka CKINDEX) set to the address of one of the clock speed index tables according to the value of XTALHPS.
sailorbob
Tuning Extraordinaire
 
Posts: 139
Joined: Tue Jul 16, 2013 1:04 am

Re: Clock Speed - XTALHPS

Unread postby decipha » Sun Jan 03, 2016 6:05 pm

ah i see, that makes perfect sense now

thats nice in fbfg2 the tables are consecutive one after the other, in RZASA they are split up, the tables are identical though byte for byte per clock speed so thats a relief, if i ever need some rom i know where to steal it :)

RAAD3 has the tables but they are only 92 bytes in length :(
the sections of the table are byte for byte the exact same between the 3

I'll dig into CMBA0 and CRAJ0 to see if they 134 byte tables instead of 92

thats probably too easy though and hopeful wishing

thanks derek
User avatar
decipha
Tooner
 
Posts: 15787
Joined: Mon Jul 15, 2013 5:29 pm
Location: New Orleans, LA
Name: Michael Ponthieux
Vehicle Information: Supercoupin' x10
90 (4x 5spds) - Dante, Ruby, Daja, Ava
91 4r70w - Skarlett
92 (2x) 5spd & auto - Bianqa, Andrea
93 auto - Danika
94 5spd Rionda
95 auto Aisha
Vehicle 2 Information: Others:
00 Lincoln LS - Luanda
98 Camaro SS - Bounquisha
02 Harley F-150 - Sasasha
03 Marauder - DyShyKy
00 Explorer 5L - Bernyce

Re: Clock Speed - XTALHPS

Unread postby sailorbob » Mon Jan 04, 2016 3:02 am

You will find the clock speed index tables generally vary in size according to the strategy although very similar strategies with minimal differences will be the same. I wouldn't assume that just because the two different strategies have clock speed index tables of the same length that the values are the same though.
sailorbob
Tuning Extraordinaire
 
Posts: 139
Joined: Tue Jul 16, 2013 1:04 am

Re: Clock Speed - XTALHPS

Unread postby decipha » Mon Jan 04, 2016 5:46 am

I did a comparison between RAAD3, CRAJ0, CMAI6, CVAF1, FBFG2 and RZASA

the early 3 are only 92 bytes, the last two newer defs are 134 bytes

CVAF1 looks to be the key, it has 3 tables with a fully mapped 1.0 clock table but its only 126 bytes, that only leaves me a few bytes to calculate out

I have verified the tables in all of those defs are byte for byte the exact same
User avatar
decipha
Tooner
 
Posts: 15787
Joined: Mon Jul 15, 2013 5:29 pm
Location: New Orleans, LA
Name: Michael Ponthieux
Vehicle Information: Supercoupin' x10
90 (4x 5spds) - Dante, Ruby, Daja, Ava
91 4r70w - Skarlett
92 (2x) 5spd & auto - Bianqa, Andrea
93 auto - Danika
94 5spd Rionda
95 auto Aisha
Vehicle 2 Information: Others:
00 Lincoln LS - Luanda
98 Camaro SS - Bounquisha
02 Harley F-150 - Sasasha
03 Marauder - DyShyKy
00 Explorer 5L - Bernyce

Re: Clock Speed - XTALHPS

Unread postby sailorbob » Mon Jan 04, 2016 8:33 am

The clock speed index tables in CRAJ0 are 102 bytes in size for each speed.

FBFG2 is a good one to compare to CVAF1 as it only has one word intermingled with the other values and the other 6 bytes are at the end of the table. No idea if the last 6 bytes are three words or a word together with a double word though.
sailorbob
Tuning Extraordinaire
 
Posts: 139
Joined: Tue Jul 16, 2013 1:04 am

Re: Clock Speed - XTALHPS

Unread postby decipha » Mon Jan 04, 2016 3:31 pm

I got ya, I should have said only 92 bytes were identical

doing a little cross referencing...

the word in the middle of the table not present in cvaf1 but that is in fbfg2 is the N_16MS_IN_TK parameter

that would leave 2 words at the end of the table, that would be N_DUCE_T_PER_MS and
N_NO_OF_START_READS

both words with no equation :)

I gotta figure them out but thats half the battle, it shouldn't be too difficult to populate those values
User avatar
decipha
Tooner
 
Posts: 15787
Joined: Mon Jul 15, 2013 5:29 pm
Location: New Orleans, LA
Name: Michael Ponthieux
Vehicle Information: Supercoupin' x10
90 (4x 5spds) - Dante, Ruby, Daja, Ava
91 4r70w - Skarlett
92 (2x) 5spd & auto - Bianqa, Andrea
93 auto - Danika
94 5spd Rionda
95 auto Aisha
Vehicle 2 Information: Others:
00 Lincoln LS - Luanda
98 Camaro SS - Bounquisha
02 Harley F-150 - Sasasha
03 Marauder - DyShyKy
00 Explorer 5L - Bernyce

Re: Clock Speed - XTALHPS

Unread postby sailorbob » Mon Jan 04, 2016 4:22 pm

134 - 126 = 8 bytes :)
sailorbob
Tuning Extraordinaire
 
Posts: 139
Joined: Tue Jul 16, 2013 1:04 am

Re: Clock Speed - XTALHPS

Unread postby decipha » Mon Jan 04, 2016 6:04 pm

oops, im a product of new orleans public schools please excuse my maf lol
User avatar
decipha
Tooner
 
Posts: 15787
Joined: Mon Jul 15, 2013 5:29 pm
Location: New Orleans, LA
Name: Michael Ponthieux
Vehicle Information: Supercoupin' x10
90 (4x 5spds) - Dante, Ruby, Daja, Ava
91 4r70w - Skarlett
92 (2x) 5spd & auto - Bianqa, Andrea
93 auto - Danika
94 5spd Rionda
95 auto Aisha
Vehicle 2 Information: Others:
00 Lincoln LS - Luanda
98 Camaro SS - Bounquisha
02 Harley F-150 - Sasasha
03 Marauder - DyShyKy
00 Explorer 5L - Bernyce


Return to Programming & Coding

Who is online

Users browsing this forum: No registered users and 2 guests

cron