hi,
i am controlling a dc motor using L9958 with LPC2103 controller. I am new to ARM.
L9958 is SPI communication based IC. To control my Device to set some registers in L9958. I can't understood how to set those bits.the registers are Configuration register and Diagnosis register.
configuration register
Bit Name
0 - LSB RES
1 DR
2 CL_1
3 CL_2
4 RES
5 RES
6 RES
7 RES
8 VSR
9 ISR
10 ISR_DIS
11 OL_ON
12 RES
13 RES
14 0
15-MSB 0
Here i set Diagnosis reset (DR) bit to '0'. All diagnosis bits reset at each spi reading.
and set CL_1 & CL_2 bits to CL_1 =0, CL_2=1 (Default Value 6.6A)for regulation current levels.
And VRS & IRS set to '0' (Default as per datasheet).
i have doubt only it is correct or wrong.. is there any mistake tell.