Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 3 > PrISM_Example Project

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



PrISM_Example Project
Moderator:
RKRM

Post Reply
Follow this topic



PrISM_Example Project

vgy posted on 14 Oct 2012 2:02 AM PST
Top Contributor
133 Forum Posts

 Hi to all,

              can we blink 2 LEDs with a frequency of 500 hz , can anybody suggest with the modifications to run at that frequency.

 

Thanks

Rajendra




Re: PrISM_Example Project

H L posted on 14 Oct 2012 04:36 AM PST
Top Contributor
679 Forum Posts

 The PrISM can control 2 LEDs aready.

What do you mean by 500hz? if you wan tto use 500 hz clock, you just change the 20khz clock to 500hz, but I think the result would not be good as you would see flicking.

 



Re: PrISM_Example Project

danaaknight posted on 14 Oct 2012 05:19 AM PST
Top Contributor
1773 Forum Posts

If your task is to turn two leds on and off at a 500 Hz rate, and no other features needed, like dimming,

then simply use a timer configured for 500 Hz and drive the leds via two digital pins.

 

Is that a description of what you want to accomplish ?

 

Regards, Dana.



Re: PrISM_Example Project

vgy posted on 14 Oct 2012 07:06 AM PST
Top Contributor
133 Forum Posts

yes i want that only Sir

 Thank u sir



Re: PrISM_Example Project

danaaknight posted on 14 Oct 2012 08:43 AM PST
Top Contributor
1773 Forum Posts

Simplist woukld be -

 

1) Place a clock onto schematic, double click it, select "new", set freq to 500 Hz, source to "auto"

2) Place 1 or two digital output pins onto schematic, wire them to clock.

3) Double click each pin, set to "strong", slew rate to "slow", Current to "4 mA source, 25 mA sink"

 

You are done. If you want to save a pin, and are using 5V as Vdd, you could connect both pins to Vdd

in series, and a series resistor, to limit current. R = Vledonmax/25 mA. If you are using 3.3 Vdd LED

threshold max probably too high so that means 1 led/pin.

 

Note LEDs are driven from low side, so pin set to 0 turns them on.

 

Regards, Dana.



Re: PrISM_Example Project

H L posted on 14 Oct 2012 03:25 PM PST
Top Contributor
679 Forum Posts

Are you sure you want to drive LED with a 500hz? You can see the signal with a CRO but may not see it blink as it is too fast for you eye.

I think you want to use 500hz to drive the PrISM, but again this would make the switching speed to slow (dvided by 256 with the counter inside the PrIsm)  Best to read the spec. of PrISM again.



Re: PrISM_Example Project

vgy posted on 15 Oct 2012 10:37 PM PST
Top Contributor
133 Forum Posts

 i got it.

thank u 






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20