2015-04-01 03:58 AM
Dear Experts,
I am new to L9942 Driver IC.I am currently working on this IC for a stepper motor control in automotive safety application.I have attached a 'c' program written for SPI communication with L9942. The controller which I am using is a 8 bit controller. The following are the other details:Please refer to my attached c program also and help me out.
Regards,M.Siva #spi #spi #l9942 #l99422015-04-02 09:30 AM
Dear M.Siva,
A 8-bit microcontroller can drive SPI if it is programmed properly. Check if the CS, CLK, DO and DI are driven properly. About SPI communication timing in the datasheet are reported information about the timing and levels. A logic analyzer can help you to identify if the communication is managed properly. Did you program the current profile table? To set the rotation direction you have to change bit-0 in Register 0 I suggest to check these signals: Motor stepping clock input (STEP) and PWM output (PWM). Best regars. Marco.From: murugesan.siva
Posted: Wednesday, April 01, 2015 1:01 PMSubject: L9942 Driver IC SPI ProgrammingDear Experts,
I am new to L9942 Driver IC. I am currently working on this IC for a stepper motor control in automotive safety application. I have attached a 'c' program written for SPI communication with L9942. The controller which I am using is a 8 bit controller. The following are the other details:Please refer to my attached c program also and help me out.
Regards, M.Siva2015-04-08 07:58 AM
Very thankful for your grateful reply.
2015-04-10 02:15 AM
Dear Mr M.Siva,
The problem could be due tho the SPI communication. Did you check the SPI signals by using an analyzer? Are the signals and the register values as you programmed? About the 16bit SPI code by using the same microcontroller you are using, examples and suggestions are collected at this link https://www.ccsinfo.com/forum/viewtopic.php?p=195676 Best regards, Marco Brugora2015-04-10 02:34 AM
Thank You Sir....
Actually I had initiated the same discussion in that forum... :)Now SPI is working fine and the motor is rotating fine :)But please clarify the following:2015-04-14 02:09 AM
Dear Mr. M.Siva.
The microcontroller can poll the status of
the device without the need of a full SPI-communication cycle. Check also AN2650 paragraph 3.1.Best regards,
Marco Brugora.2015-04-16 04:16 AM
Dear Sir,
Thank You for your great support.