Disable the OFF Open Load pull-down current on MC33810 init
This commit is contained in:
parent
a94b1231f3
commit
df78f5109c
|
@ -63,4 +63,21 @@ void initMC33810(void)
|
|||
SPI.transfer16(cmd);
|
||||
MC33810_2_INACTIVE();
|
||||
|
||||
//Disable the Open Load pull-down current sync (See page 31 of MC33810 DS)
|
||||
/*
|
||||
0010 = LSD Fault Command
|
||||
1000 = LSD Fault operation is Shutdown (Default)
|
||||
1111 = Open load detection fault when active (Default)
|
||||
0000 = Disable open load detection when off (Changed from 1111 to 0000)
|
||||
*/
|
||||
cmd = 0b0010100011110000;
|
||||
//IC1
|
||||
MC33810_1_ACTIVE();
|
||||
SPI.transfer16(cmd);
|
||||
MC33810_1_INACTIVE();
|
||||
//IC2
|
||||
MC33810_2_ACTIVE();
|
||||
SPI.transfer16(cmd);
|
||||
MC33810_2_INACTIVE();
|
||||
|
||||
}
|
Loading…
Reference in New Issue