6.1 wM-Bus Transmission

Table 6-2. wM-Bus Transmission Examples
SPI Command Sequence Comment
Write SRAM/Register (3, 0x03, 0x28, 0x01, 0x02, 0x03) Send write data (0x01, 0x02, 0x03) to wM-Bus data buffer g_wmbusDb
Write SRAM/Register (1, 0x04, 0xD1, 0x03) Send set data length to g_wmbusCr.bLenth
Write SRAM/Register (1, 0x04, 0xD2, 0x44) Set message type to g_wmbusCr.bCField
Write SRAM/Register (1, 0x04, 0xD3, 0x78) Set protocol type of data to g_wmbusCr.bCiField
Write SRAM/Register (1, 0x04, 0xD0, 0x01)
  • Set wM-bus mode (S1)
  • Start sending of wM-bus protocol