comparison src/i2c.asm @ 647:357341239438

Merge
author heinrichs weikamp
date Thu, 14 Oct 2021 12:04:12 +0200
parents 7d8a4c60ec1a 5b7fe7777425
children ef2ed7e3a895
comparison
equal deleted inserted replaced
644:1e695355dfc4 647:357341239438
754 movlw 0x3C ; address 754 movlw 0x3C ; address
755 movff WREG,i2c_error_vault+0 ; Store address 755 movff WREG,i2c_error_vault+0 ; Store address
756 rcall I2C_TX ; send byte 756 rcall I2C_TX ; send byte
757 movlw 0xA0 ; 0x20 with auto-increment (MSB=1) 757 movlw 0xA0 ; 0x20 with auto-increment (MSB=1)
758 rcall I2C_TX ; send byte 758 rcall I2C_TX ; send byte
759 movlw b'01110000' ; CTRL_REG1_M (10Hz) 0x20 759 movlw b'01110000' ; CTRL_REG1_M (10Hz, X and Y in Ultra-high performance mode) 0x20
760 rcall I2C_TX ; send byte 760 rcall I2C_TX ; send byte
761 movlw b'01100000' ; CTRL_REG2_M (Full-scale: +/- 16gauss) 0x21 761 movlw b'01100000' ; CTRL_REG2_M (Full-scale: +/- 16gauss) 0x21
762 rcall I2C_TX ; send byte 762 rcall I2C_TX ; send byte
763 movlw b'01000000' ; CTRL_REG3_M (Continuous) 0x22 763 movlw b'01000000' ; CTRL_REG3_M (Continuous) 0x22
764 rcall I2C_TX ; send byte 764 rcall I2C_TX ; send byte
765 movlw b'00000000' ; CTRL_REG4_M (Z in Low-power mode) 0x23 765 movlw b'00001100' ; CTRL_REG4_M (Z in Ultra-high performance mode) 0x23
766 rcall I2C_TX ; send byte 766 rcall I2C_TX ; send byte
767 movlw b'00000000' ; CTRL_REG5_M 0x24 767 movlw b'00000000' ; CTRL_REG5_M 0x24
768 rcall I2C_TX ; send byte 768 rcall I2C_TX ; send byte
769 movlw b'00000000' ; CTRL_REG5_M 0x24 769 movlw b'00000000' ; CTRL_REG5_M 0x24
770 rcall I2C_TX ; send byte 770 rcall I2C_TX ; send byte