• Bit-addressable register
    Hi all, When I do this: P7_SFR DEFR 0FFD0H DP7_SFR DEFR 0FFD2H HWWDOG_PORT EQU P7_SFR HWWDOG_DIRPORT EQU DP7_SFR HWWDOG_BIT EQU 6 HWWDOG_PULSEBIT DEFB HWWDOG_PORT.HWWDOG_BIT ; P7, bit 6 I...
  • Bit-addressable register
    Hi all, When I do this: P7_SFR DEFR 0FFD0H DP7_SFR DEFR 0FFD2H HWWDOG_PORT EQU P7_SFR HWWDOG_DIRPORT EQU DP7_SFR HWWDOG_BIT EQU 6 HWWDOG_PULSEBIT DEFB HWWDOG_PORT.HWWDOG_BIT ; P7, bit 6 I...
  • Writing a Byte over I2C for Slaves without Register Addresses
    I have this function defined for writing a byte to either the LCD 1602 (using the PCF8574 I/O expander), or the SHT21 humidity sensor. In both cases, it seems like after I write the slave address, I should...
  • Writing a Byte over I2C for Slaves without Register Addresses
    I have this function defined for writing a byte to either the LCD 1602 (using the PCF8574 I/O expander), or the SHT21 humidity sensor. In both cases, it seems like after I write the slave address, I should...
  • How to access bit addressable?
    Here is one to help a mechanical engineering student trying to program a microcontroller. P5 is a bit addressable register. In the header reg517.h is only the definiton of P5 as a sfr . How do I access...