please provide your project, so we can check.
You wrote that you used CY_CLK_XTAL32_CR_REG. Did you use this directly or did you use the corresponding API function, along with CyXTAL_32KHZ_Start() function?
I've attached a very simple project.
To answer your questions: I used CY_CLK_XTAL32_CR_REG directly and CyXTAL_32KHZ_ReadStatus(). Either resulted in an answer of 0x20 = ANA_STAT = stable with or without the XTAL_32K installed.
I may have more information.
The TopDesign in the project archive has the following pin assignments:
Pin name Output Freq Pin # Pin_ILO ~1000Hz P0 Pin_XTAL_32Kto1K 1024Hkz P0 Pin_IMOto1K 1000Hz P0 Pin_PLLto1K 1000Hz
This pin configuration always yields ANA_STAT = stable even with the XTAL_32K not installed.
If I change the pin # configuration to the following: ANA_STAT = not stable with the XTAL_32K not installed.
Pin name Output Freq Pin # Pin_ILO ~1000Hz P0 Pin_XTAL_32Kto1K 1024Hkz P0 Pin_IMOto1K 1000Hz P2 Pin_PLLto1K 1000Hz
Apparently changing the other outputs "fixed" the issue.
Here's some additional information from testing I've performed.
I placed the pin #s back to the original assignments. However I changed the outputs P0 and P0 from STRONG to RESISTIVE_PULLUP_PULLDOWN. (ie. decreased the slew-rate of output changes). This allowed the ANA_STAT = not stable when no XTAL_32K is installed! Yeah!
Pin_ILO ~1000Hz P0 STRONG Pin_XTAL_32Kto1K 1024Hkz P0 STRONG Pin_IMOto1K 1000Hz P0 RESISTIVE_PULLUP_PULLDOWN Pin_PLLto1K 1000Hz
I decided to try another test. I was curious if the problem I'm having I associated with the fact that the CY8CKIT-059 I'm using has external 1uF caps to ground on them. (Hence the reason I slowed the slew-rate in the test above). For this test I changed the pin drive back to STRONG and moved them to P0 and P0 which have no external caps on the pins. Results: ANA_STAT = not stable when no XTAL_32K is installed! Yeah again!
Pin_ILO ~1000Hz P0 STRONG Pin_XTAL_32Kto1K 1024Hkz P0 STRONG Pin_IMOto1K 1000Hz P0 STRONG Pin_PLLto1K 1000Hz
glad that you got it to work. I hadn't enough time to test the initial project, sorry. I wondered why you didn't use CyXTAL_32KHZ_Start() function, which does a bit more than only starting the oscillator.
What confuses me is that port pins which aren't related to the XTAL are influencing the behaviour of the XTAL.