You are here

Toggling a pin in less time than 1Us | Cypress Semiconductor

Toggling a pin in less time than 1Us

Summary: 1 Reply, Latest post by Bob Marlowe on 31 Aug 2016 06:04 AM PDT
Verified Answers: 0
Last post
Log in to post new comments.
arptt's picture
User
24 posts

Hi

I am toggling a pin continuously with Delay between toggling around 1us using the function CyDelayUs.

Is there a way to toggle the ping faster than 1us? or in other words how do I create a delay less than 1us?

regards

 

user_1377889's picture
User
10705 posts

Toggling a pin by CPU is a bit (or byte) old-fashioned. You are burning MIPS and there is no time for controlling or other things.

Better use a PWM, feed it with 12 MHz and you can get an output with 1MHz frequency that is controllable in duty cycle and frequency with just a little effort.

That's PSoC

 

Bob

Log in to post new comments.