You are here

Ext Clock other than P0[6] | Cypress Semiconductor

Ext Clock other than P0[6]

Summary: 8 Replies, Latest post by tkaw on 25 Oct 2016 04:30 PM PDT
Verified Answers: 2
Last post
Log in to post new comments.
tkaw's picture
User
7 posts

I tried the Ext Clock of PSoC 4 Prototyping Kits.

But, they can not work well. P0[6] works well, but other pins not work well.

do not work
http://dad8893.blogspot.jp/2016/09/psoc-4-prototyping-kitdco.html

work well
http://dad8893.blogspot.jp/2016/05/psoc-4-prototyping-kit.html

PSoC4 Prototyping kit works than P0[6]?

user_1377889's picture
User
9621 posts

Sorry, I cannot help you because I cannot read your language.

Cab you please post your complete projects, so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.

 

Bob

 

tkaw's picture
User
7 posts

I'm sorry that my question was wrong.

I tried to assign 'SPI Slave SCK' to other than P0[6] while using Ext Clock (it uses P0[6]). 

In *.cydwr "Pins" tab, I could not assign the "/SPIS:sclk_s/" to other than P0[6] ('SPIS' is a SPI Compornent (SCB mode) defined as Slave). It happened "Build Error" or did not work well.

My project is not simple and it works well now. (It does not use Ext Clock)

I'll attach the bad project later.

thank you.

user_1377889's picture
User
9621 posts

SCB-based components in PSoC4 have dedicated GPIO pins. So you need to choose wisely when using the pins, there are several SCBs, each with its own pins.

 

Bob

tkaw's picture
User
7 posts

I look up in the table "Pinouts" (P.10 -P.11) of the DATASHEET "PSoC® 4: PSoC 4200 Family Datasheet".

http://www.cypress.com/file/138656/download

It seems that P0.6 is used for the Ext Clock, and for the scb1_spi_clk[1].

So, if the Ext Clock is used, can not I use P3.2(scb1_spi_clk[0]) for the SPI SCK? 

Can I use SCB0(P4.2 : scb0_spi_clk) for the SPI SCK?

Now, I use it for UART.

user_1377889's picture
User
9621 posts

What is your problem? When you unlock all pins, Creator will probably find a solution for you.

Yes, P0_6 is used for external clock input.

You have to care for SCB0 and SCB1 each having its own set of dedicated pins.

 

Bob

tkaw's picture
User
7 posts

Ok, I understand. I can not use Ext clock and SPI(SCB mode) and UART at a once.

thank you.

user_1377889's picture
User
9621 posts

Use a CY8C42xx PSoC4 and a UDB based UART, then you can use external clock and SPI.

 

Bob

tkaw's picture
User
7 posts

I have no time to validate this problem. I use a PSoC 4 Prototyping Kit CY8CKIT-049-42XX. I will try to use a UDB based UART.

Log in to post new comments.