- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ?
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
PWM needs to have a clock input, I suppose you wrote a schematic like
So please attach a clock input
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
PWM needs to have a clock input, I suppose you wrote a schematic like
So please attach a clock input
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If I already did that but the error comes out
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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")
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
the problem is solved thanks