Hi
I am interfacing MC33975 EVK with S32K118 EVK.
I am able to get interrupt whenever switch status changed, and able to read the switch status as well.
But unfortunately i am not able to switch MSDI(MC33975) to sleep mode.
I am attaching the SPI connections diagram and the code that i am using for switching the mode of MSDI to SLEEP.
I am using USB power with 3.3v supply in S32K118 EVK.
SLEEP command i am using = 0x0C, 0x00,0x3F
Please suggest/recommend if anything if anything wrong.
Thanks
Hi,
The 33975 device will exit the Normal mode and enter the Sleep mode only with a valid sleep command.
The sleep command contains settings for two programmable timers for Sleep mode, the interrupt timer and the scan timer, as shown in Table 18 of the datasheet.
The interrupt timer is used as a periodic wake-up timer. When the timer expires, an interrupt is generated and the device enters Normal mode. Note: The interrupt timer in the 33975 device may be disabled by programming the interrupt bits to logic [1 1 1].
The scan timer sets the polling period between input switch reads in Sleep mode. The period is set in the sleep command and may be set to 000 (no period) to 111 (64 ms).
For test purposes, please send the Sleep command as in Table 18, with the programming the interrupt bits to logic [1 1 1] (disabled) and sleep command [0 0 0] (no period). And check if the device goes into sleep mode.
The 33975 will exit Sleep mode and enter Normal mode when any of the following events occur:
Make sure none of these are true to confirm the MC33975 is not getting into Sleep mode and exiting right away.
Regards,
Jose
Hi @reyes
Thanks for your response with recommendations.
1. As per your recommendation,
" For test purposes, please send the Sleep command as in Table 18, with the programming the interrupt bits to logic [1 1 1] (disabled) and sleep command [0 0 0] (no period). And check if the device goes into sleep mode."
I have Send Sleep Command as 0x0C, 0x00, 0x38 (Interrupt Timer : Disabled, Scan Timer: No Scan)
But still i am not to to switch my EVK in to sleep Mode
2. As per your second recommendation, i have cross verified the following:
The 33975 will exit Sleep mode and enter Normal mode when any of the following events occur:
3. Sequence of command for config:
RESET = 0x7F,0x00,0x00
PROGRAM SWITCH TO GROUND = 0x01,0x00,0x00
TRISTATE DISABLE - SP =0x09,0x00,0x00
TRISTATE DISABLE - SG =0x0A,0x00,0x00
SWITCH STATUS READ =0x00,0x00,0x00
SLEEP =0x0C,0x00,0x38
But unfortunately, still i am not able to switch EVK mode to sleep mode.
QUESTION:
1. Is it mandatory to connect WAKE Pin to Microcontroller GPIO with Pullup?
Hi,
The WAKE pin has a passive pullup to the internal 5.0 V supply but may be pulled up through a resistor to VPWR supply (see Figure 17, page 27). When the WAKE output is not used the pin should be pulled up to the VDD supply through a resistor, as shown in Figure 16, page 27).
Regards,
Jose