cancel
Showing results for 
Search instead for 
Did you mean: 

how to set L9369's GIO0~8 port high by SPI Command?

ldong.1
Associate III

Hello. I'm Using L9369 for H-bridge control.

I'm trying to set GIO0~8 pin high(Button interface), but i can't

(Analog Output - SPI control)

i'm using SPI command, and i saw L9369's manual and i follow the instruction below steps to set GIOx pin as high.

  1. Set "SPI_GIOx_MuxCtrl" as "1111" , so i send command and get response.

0xB901FFF7 for register 114d -> 0x0e41ffe8

0xB981FFE2 for register 115d -> 0x0e61ffe8

0xBA81FFF3 for register 117d -> 0x0ea1ffe5

2.Set "SPI_off_GIOx" as "0", so i send command

0xC38000F5 for register 135d -> 0x -> 10e000ec

3.Set "SPI_GIOx_HSctrl" bit as "1", so i send command

0xBB81B0E0 for register 119d -> 0x0ee000d2

i check each GIOx's status via SPI comannd and get response

 0x44000001 for register 136d -> 0x0x11000015

is there anything else i need to do? or check?

what should i do? please help me.

thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Owen LEE
ST Employee

Thank you for your question.

Output levels are programmed through SPI_GIOx_HSCtrl (reg 0x77) and SPI_off_GIOx (0x87) bit, the following table shows the behavior of the system according to the configuration bits:


_legacyfs_online_stmicro_images_0693W00000SuTQCQA3.pngThanks.

View solution in original post

3 REPLIES 3
Owen LEE
ST Employee

Thank you for your question.

Output levels are programmed through SPI_GIOx_HSCtrl (reg 0x77) and SPI_off_GIOx (0x87) bit, the following table shows the behavior of the system according to the configuration bits:


_legacyfs_online_stmicro_images_0693W00000SuTQCQA3.pngThanks.

Hello @ldong.1​ is the above reply useful to answer your questions?

If you feel a post has answered your question, please click "Accept as Solution"

Hello. Cristiana.

it was useful. i think datasheet was wrong. as i wrote in first post, answered reply has different contents.

thank you.