You are here

Counter Reload | Cypress Semiconductor

Counter Reload

Summary: 3 Replies, Latest post by rahulram on 16 Jan 2013 11:26 PM PST
Verified Answers: 0
Last post
Log in to post new comments.
pyrosonic's picture
1 post


Is it possible to create a 16bit up or down counter that can be stopped at any value and loaded with a new value?


Avagadro's picture
Cypress Employee
71 posts


With the UDB counter such a operation should be possible. You can configure the counter for up/down mode, With Counter_WriteCompare you can set the compare value. This compare value goes high after a clock cycle. 

You can also have interrupt attached to interrupt out of counter. On interrupt you can write a new period, new compare value as well as stop the counter in the isr. 

dasg's picture
Cypress Employee
730 posts

Hi pyrosonic,


You can also use the feature of "Reload Counter" to initialize the Counter in hardware (without the CPU intervention) upon conditions such as Capture, Compare Match or upon Terminal Count.


-Gautam Das

rahulram's picture
Cypress Employee
115 posts

It is very much possible with the creation of a custom component using the verilog and datapath. It would consume the same amount of resource as that of the counter component in the creator infact. I don't understand how the compare feature of a counter would solve this.



Log in to post new comments.