Lucky to have the wizards help
carry on Matt, you have no fear!
carry on Matt, you have no fear!
ode:000019A0 This starts with the enabling or disabling of code:000019A0 the high speed logging via TPS. if the TPS code:000019A0 is pressed down above the value 0x0C it sets code:000019A0 Open_RAM to 0 disabling the logging. code:000019A0 code:000019A0 ; =============== S U B R O U T I N E ======================================= code:000019A0 code:000019A0 code:000019A0 Logging_Code_01: ; CODE XREF: IE0+C30↑p code:000019A0 20 18 1E jb RAM_23.0, code_19C1 ; Jump if Bit is set code:000019A3 75 D8 03 mov ADCON1, #3 ; Read TPS From AN3 code:000019A6 75 DA 00 mov DAPR, #0 ; D/A Converter Program Register code:000019A9 code:000019A9 code_19A9: ; CODE XREF: Logging_Code_01:code_19A9↓j code:000019A9 20 DC FD jb ADCON1.4, code_19A9 ; A/D Converter Control Register 1 code:000019AC E5 D9 mov A, ADDAT ; A/D Converter Data Register code:000019AE B4 C0 00 cjne A, #0xC0, code_19B1 ; Compare to TPS constant 90%. code:000019B1 code:000019B1 code_19B1: ; CODE XREF: Logging_Code_01+E↑j code:000019B1 50 07 jnc code_19BA ; Jump if Carry is clear code:000019B3 75 73 00 mov Open_RAM, #0 ; Move (Op1 <- Op2) code:000019B6 D2 18 setb RAM_23.0 ; Set Direct Bit code:000019B8 80 07 sjmp code_19C1 ; Short jump code:000019BA ; --------------------------------------------------------------------------- code:000019BA code:000019BA code_19BA: ; CODE XREF: Logging_Code_01:code_19B1↑j code:000019BA 75 73 01 mov Open_RAM, #1 ; Move (Op1 <- Op2) code:000019BD 75 F0 00 mov B, #0 ; B-Register code:000019C0 22 ret ; Return from subroutine code:000019C1 ; --------------------------------------------------------------------------- code:000019C1 code:000019C1 code_19C1: ; CODE XREF: Logging_Code_01↑j code:000019C1 ; Logging_Code_01+18↑j code:000019C1 E5 73 mov A, Open_RAM ; Move (Op1 <- Op2) code:000019C3 70 1B jnz code_19E0 ; Jump if Acc is not zero
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We may share certain information about our users with our advertising and analytics partners. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment