KVSN91
Junior Member level 2
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
please help me
thanks and regards
kvsn91
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
diagnosis registerBit 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
how to set these registers through SPI0 LSB OL_OFF
1 OL_ON
2 VS_UV
3 VDD_OV
4 ILIM
5 TWARN
6 TSD
7 ACT
8 OC_LS1
9 OC_LS2
10 OC_HS1
11 OC_HS2
12 Null
13 Null
14 SGND_OFF
15 MSB SBAT_OFF
please help me
thanks and regards
kvsn91
Last edited by a moderator: