Invalid connection error

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

 Hello,

   

I'm trying to blink an LED to learn about PSoC, using Pioneer Kit, and Creator 3.0.

   

I know there are easier ways to do this...

   

I'm using a Counter component.

   

Clock_1, 12 MHz, connected to Counter_1 clock input

   

Clock_2,  128 Hz, connected to Counter_1 count input

   

Counter_1 comp output connected to Digital Ouput pin Pin_Green (P0[2])

   

When I attempt to 'Generate Application' I get the following errors:

   

mpr.M0119:Invalid connection for clock "Clock_2" connected to "\Counter_1:CounterUDB:count_enable\:main"

   

mpr.M0119:Invalid connection for clock "Clock_2" connected to "\Counter_1:CounterUDB:count_stored_i\:main"

   

The datasheet for the Counter_v2_40 states that "You can connect any digital signal from any source to the clock/count input.

   

Are there some other rules about signal connections between components that I need to refer too?

   

Any help would be appreciated.

   

Thanks,

   

Jeff

0 Likes
7 Replies
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Post an archive of the project, makes life easy for forum to help.

   

 

   

"File"

   

"Create Workspace Bundle"

   

 

   

and post to forum using IE or Firefox, Chrome has problems posting.

   

 

   

Also, on the start page of Creator, under "Examples and Kits", "Find Example Project" there

   

is a project browser you can open up quite a few projects for various examples.

   

 

   

Lastly http://www.element14.com/community/community/knode/dev_platforms_kits/element14_dev_kits/psoc4_pione...

   

has many projects as well.

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable
        Hello jwanderson   
The Pioneer Kit has much fun indeed.   
You said ...   
[ Clock_1, 12 MHz, connected to Counter_1 clock input   
Clock_2, 128 Hz, connected to Counter_1 count input   
]   
If it is not typo,   
The Clock input does not accept multi clock source.   
However datasheet say   
[ You can connect any digital signal from any source to the clock/count input.   
]   
   
Any source but single.   
Thank you   
0 Likes
Vison_Zhang
Moderator
Moderator
Moderator
First comment on KBA 750 replies posted 250 sign-ins

For PSoC3/5 you can connect any digital signal from any source to the clock/count input, but for PSoC4 this is not ture. In PSoC4, the clock resource can only be routed to clock terminal of components, you cannot route it to other terminal like count of counter, GPIOs(except system clock), etc

   

If you really need a 128Hz clock to provide count signal for the counter, use a DFF, a NOT agte and a 256Hz clock to comprise a divider and connect DFF output to the count terminal.

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable
        if you want to connect multi clock source   
You can select the clock source   
By using multiplexer and control register.   
Like This.   
0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable
        Ah! My points is not make sense.   
As Xiaowei say   
PSoC4's clock has different behaviour with P3/P5LP.   
I am tried but have not result yet.   
0 Likes
Anonymous
Not applicable

 I Thank You All for your responses.

   

Xaiowei, I tried your recomendation of a 256 Hz clock, a DFF, and a NOT, and my project worked as I intended.

   

So now I know to connect Clocks only to clock inputs.  I probably wouldn't have figured that out on my own.

   

And thanks to Dana for telling me the accepted way to submit a workspace to the forum.

   

-- Jeff

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

There is a nice explanation of that over at the PSoC Sensei blog (together with some other usefull goodies).

0 Likes