Forums
New posts
Search forums
What's new
New posts
New media
New media comments
Latest activity
Media
New media
New comments
Search media
Members
Registered members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
FJR Motorcycle Forums
Technical & Mechanical Problems
Anatomy of Gen III Fly By Wire TPS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Help Support Yamaha FJR Motorcycle Forum:
This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.
Message
<blockquote data-quote="mcatrophy" data-source="post: 1335898" data-attributes="member: 3187"><p>Well, if you want to go archaic in coding <span style="color: #ffc0c0">(as well as off topic)</span>, let's go archaic in microprocessor as well, try Motorola MC6809 assembler:</p><p></p><p>* subroutine to check TPS voltage differences</p><p>TPS_CHECK_VOLTAGE_DIFF </p><p> LDD TPS1_VOLTAGE pick up the measured voltage from TPS #1</p><p> SUBD TPS2_VOLTAGE subtract the measured voltage from TPS #2</p><p> BPL TPS_DOFF_POS branch if result is positive</p><p> COMA negate D by complimenting A ...</p><p> COMB ... and B ...</p><p> ADDD #1 ... and correct</p><p>TPS_DOFF_POS SUBD #ALLOWED_TPS_DIFFERENCE subtract the maximum allowed difference</p><p> BMI TPS_NO_VOLTAGE_ERROR if negative result, diff not too big, branch round</p><p> LDD #TPS_ON_THE_WAY_OUT else get the appropriate error</p><p> JSR ERROR call the error routine</p><p>TPS_NO_VOLTAGE_ERROR</p><p> RTS and return</p><p></p><p>I would presume the ECU code was written in something more modern than that, and the CPU would be a slightly more modern processor, though I don't know what.</p></blockquote><p></p>
[QUOTE="mcatrophy, post: 1335898, member: 3187"] Well, if you want to go archaic in coding [COLOR=#ffc0c0](as well as off topic)[/COLOR], let's go archaic in microprocessor as well, try Motorola MC6809 assembler: * subroutine to check TPS voltage differences TPS_CHECK_VOLTAGE_DIFF LDD TPS1_VOLTAGE pick up the measured voltage from TPS #1 SUBD TPS2_VOLTAGE subtract the measured voltage from TPS #2 BPL TPS_DOFF_POS branch if result is positive COMA negate D by complimenting A ... COMB ... and B ... ADDD #1 ... and correct TPS_DOFF_POS SUBD #ALLOWED_TPS_DIFFERENCE subtract the maximum allowed difference BMI TPS_NO_VOLTAGE_ERROR if negative result, diff not too big, branch round LDD #TPS_ON_THE_WAY_OUT else get the appropriate error JSR ERROR call the error routine TPS_NO_VOLTAGE_ERROR RTS and return I would presume the ECU code was written in something more modern than that, and the CPU would be a slightly more modern processor, though I don't know what. [/QUOTE]
Insert quotes…
Verification
Post reply
FJR Motorcycle Forums
Technical & Mechanical Problems
Anatomy of Gen III Fly By Wire TPS
Top