cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in Clock output Generation

Santhamurthy R
Associate II
Posted on June 20, 2017 at 13:43

Hello All,

I am working on SPC560B54L5 board using SPC5studio version 5.2.3.

I am trying to generate the clock output using the XOSC frequency. I  enabled the corresponding GPIO (PA[0] for CLKOUT) by selecting the appropriate alternate function. In main function after doing the componentsinit(),  initialization of spc_clock_init(); is done for output clock selection. Later I am enabling the output clock by writing to the CGM.OC_EN register.

But still I am unable to find the clock output on the corresponding pin. (PA[0]-> X1(19)).

I am attaching my test application for reference, kindly check and provide your valuable suggestion towards the issue.

Thanks in Advance,

With Regards,

R.Santhamurthy

This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 ACCEPTED SOLUTION

Accepted Solutions
Erwan YVIN
ST Employee
Posted on June 20, 2017 at 15:13

Hello ,

You can see in your discovery board the differents lines X1,X2,X3,X4.

cf Document B_DISCOVERY.

the pin nearest X1 is 1 and so on ...(2,3 until 19)

Best Regards

Erwan

________________

Attachments :

DM00094991_B_DISCOVERY.pdf : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyAW&d=%2Fa%2F0X0000000bA4%2FXKw6NjiytMc_DkLx7Tl1uPo999KwecNm8RW6fyKJeHk&asPdf=false

View solution in original post

2 REPLIES 2
Erwan YVIN
ST Employee
Posted on June 20, 2017 at 15:13

Hello ,

You can see in your discovery board the differents lines X1,X2,X3,X4.

cf Document B_DISCOVERY.

the pin nearest X1 is 1 and so on ...(2,3 until 19)

Best Regards

Erwan

________________

Attachments :

DM00094991_B_DISCOVERY.pdf : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyAW&d=%2Fa%2F0X0000000bA4%2FXKw6NjiytMc_DkLx7Tl1uPo999KwecNm8RW6fyKJeHk&asPdf=false
Posted on June 20, 2017 at 15:51

Hi Erwan,

Thanks for your Reply.

I am clear with the pin configuration and the pin numbers in my discovery board.

With my previous post in this chain, I am trying to convey that, If I try to check the frequency of the output clock at X1-19 (CLKOUT pin) using oscilloscope, I am not getting the clock output. As per the configuration in the application attached with the post, I should get 16MHz clock frequency output at X1-19 in my board. But I am failing to get the result.

Kindly check the attached test application and support in getting the problem resolved.

Thanks in Advance,

With Regards,

R.Santhamurthy