This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LMH1228: Register command to modify all register bit in one register

Part Number: LMH1228


Hi team,

Is there any way to modify all bit in one register by one command?

For example, example in the chapter 2 in SNAU206D only modify 0bit in 0x80 register by one command.

I want to know the way to modify bit 7:0 in 0x80 register by one command if possible.

Regards,

Saito

  • Hi Saito-San,

    There are a couple of ways you can do this:

    1). Read LMH1228 programming guide default register settings and make changes as noted in the programming guide as needed(setting A). Finally, whenever device powers up you can write setting A before normal operation.

    2). During product development, power up the device and read default register setting(setting A). Then make changes as needed per programming guide recommended settings. Next read back register settings after your changes (settings B). Finally when device powers up you can write setting B.

    Regards,, Nasser 

  • Hi Nasser-san,

    Thank you for your answer. 

    I apologize if my understanding is not corrext, but I believe the register setup is restored to default when the device powers up.

    My customer wants to check if there is any command to set all bit for selected register.

    For example, customer wants to set 0x60[7:0] by only one command. Is there any command to achieve it?

    I can't find such a command in the application note. But, I want to clarify it.

    Regards,

    Saito

  • Hi Nasse-san,

    I want to change the question in last thread more clearly.

    If I use command RAW FF 04 07, I can set 0xFF[2:0] = 100'b. Is that correct?

    If so, can I set all bits in 0xFF register by using command RAW FF FF FF?

    ->0xFF[7:0] = 1111 1111'b 

    Regards,

    Saito

  • Hi Saito-San,

    I believe your customer does not want to do read/modify write. They want to just write only. To change register 0x60 for example - Driver register page reg 0x60 - your customer can do the following write only:

    1). Write into reg 0xFF a value of 0x05 //This selects Driver register page

    2). LMH1228 programming guide specifies 0x01 default value for Driver register page reg 0x60

    3). Change values as needed - let's call this 0xYY

    4). Write into reg 0x60 a value of 0xYY

    Regards,, nasser

  • Saito-San,

    For command RAW FF 04 07  we should set 0xFF[2:0] = 100b only - as you noted.

    First we should read 0xFF default register settings for 0xFF[7:3] and then concatenate with 0xFF[2:0] and write back the value in reg 0xFF[7:0]. 

    For example, reg 0xFF[7:3] default value is 0x00. Then when you concatenate with 0xFF[2:0] value of 100b this means reg 0xFF[7:0]=0x04. Finally, you write 0xFF[7:0]=0x04.

    Regards,, Nasser

  • Hi Nasser-san,

    Thanks. Now I understand the command syntax.

    Regards,

    Saito