This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[FAQ] TMDSCNCD280025C: F280025C controlCARD code hangs waiting for X1 to saturate

Part Number: TMDSCNCD280025C
Other Parts Discussed in Thread: C2000WARE,

Hello,

While running C2000Ware examples on my TMDSCNCD280025C controlCARD the software always hangs at the following line:

What can I do to fix this?

Regards,
Cody

  • Hello Cody!

    That is a wonderful question you've asked there! Let us first understand what that line of code is doing. Inside the device there is a simple counter setup to be connected to the X1 input. The counter continues to increment until it "saturates" at 0x7FF, which is the maximum value of this counter. The counter will then stop incrementing which allows the while loop statement to be true and then the application code can contine.

    Cody Watkins said:
    What can I do to fix this?

    Well, if you look at your counter you will see that it is frozen a 0x0, this is because you haven't connected a clock source to the X1 pin.

    Additionally , f you look at the note included inside the while loop it indicates that you need to check the position of switch "S3" on the controlCARD. Please move the S3 switch in to the "upward" position towards the surface mounted crystal.

    Regards,
    Cody