Terminal "clock" requires connection when it is visible.

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

cross mob
femec_2299216
Level 1
Level 1
First like received First like given

Hi all

I am working on a project where I control the duty cycle of a PWM by USBUART but I get the following error:

Terminal "clock" requires connection when it is visible.

What can be ?

0 Likes
1 Solution
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

PWM needs to have a clock input, I suppose you wrote a schematic like

000-schematic.JPG

So please attach a clock input

001-schematic2.JPG

Then the cycle length of the PWM is determined by

PWM Cycle length = Clock Cycle Length * PWM period

So please specify the clock cycle which matches to your requirement.

moto

View solution in original post

0 Likes
6 Replies
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

PWM needs to have a clock input, I suppose you wrote a schematic like

000-schematic.JPG

So please attach a clock input

001-schematic2.JPG

Then the cycle length of the PWM is determined by

PWM Cycle length = Clock Cycle Length * PWM period

So please specify the clock cycle which matches to your requirement.

moto

0 Likes

If I already did that but the error comes out2019-06-16 (2).png

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

Can you attach your project?

From Menu

(1) Select the project in the Workspace Explorer

(2) Build > Clean <project>

(3) Project >  Archive Workspace/Project...

(4) Select Minimal

Then attach the result zip file to your post

moto

0 Likes
femec_2299216
Level 1
Level 1
First like received First like given

I already solved it, but now I have a problem the function:

sprintf(datos,"Introduca el ciclo de trabajo:  ");

while (USBUART_1_CDCIsReady () == 0u);

USBUART_1_PutString(datos);

USBUART_1_PutCRLF();

just send me two character("In")

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

> I already solved it, but now I have a problem the function:

I'm glad hearing that 😉

> sprintf(datos,"Introduca el ciclo de trabajo:  ");

> while (USBUART_1_CDCIsReady () == 0u);

> USBUART_1_PutString(datos);

> USBUART_1_PutCRLF();

>

> just send me two character("In")

I tried and got same result.

Then I added

     while(USBUART_1_CDCIsReady() == 0) ;

after USBUART_1_PutString(datos) ;

Then I could see all strings.

< sprintf(datos,"Introduca el ciclo de trabajo:  ");

< while (USBUART_1_CDCIsReady () == 0u);

< USBUART_1_PutString(datos);

< while (USBUART_1_CDCIsReady () == 0u); // <--

< USBUART_1_PutCRLF();

moto

the problem is solved thanks2019-06-17 (2).png