7I92 23
REFERENCE INFORMATION
LBP16
SPACE 0: HOSTMOT2 REGISTERS
Example: read first 5 entries in hostmot2 IDROM:
85420004
85 ; 85 == NN = 5 | Inc bit (0x80) so address is incremented after each
access
42 ; Read from space 0 with address included after command
00 ; LSB of address (IDROM starts at 0x0400)
04 ; MSB of address (IDROM starts at 0x0400)
Example: write 4 GPIO ports starting at 0x1000:
84C20010AAAAAAAABBBBBBBBCCCCCCCCDDDDDDDD
84 ; 84 == NN = 4 | Inc bit so address is incremented after each access
C2 ; Write to space 0 with address included after command
00 ; LSB of address (GPIO starts at 0x1000)
10 ; MSB of address (GPIO starts at 0x1000)
AAAAAAAA ; 32 bit data for GPIO port 0 at 0x1000
BBBBBBBB ; 32 bit data for GPIO port 0 at 0x1004
CCCCCCCC ; 32 bit data for GPIO port 0 at 0x1008
DDDDDDDD ; 32 bit data for GPIO port 0 at 0x100C
Note like all LBP16 data, write data is LS byte first