- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i want to set 8-digit seven segment display in Timer Interrrupt.
iteration time for every interrupt is 6 ms.
i done this in psoc-1 in past.its working fine there.
so i want to make it same on psoc-4 but when i set same setting on psoc-4 then its not working correctly.
can you tell me is that psoc-1 and psoc-4 Timer configuration are different??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is no general difference, timer is timer. On the PSoC4 side you will need to clear the interrupt in your handler. Post your Project and let us have a look at.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My calculation comes to 33µs period .
I would suggest to use a frequency of 100 * Number of digits which is something like 800Hz.
So a clock of 1.5 MHz / x = 800; x = 1500000/800 = 1875000 which will not fit into a TCPWM's period register.
use 160kHz clock and a period of 200 to get your interrupt.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks bob for help.
i have one more doubt on psoc-4 why its happening i cant understand
Case 1:
i made led blinking program which is work perfectly on both 5V and not work on 3.3V until i give power on pin 33.
case 2:
when i made led +push button program then it is not work on 5V and not work on 3.3V until i give power on pin 33.
Here i attached both program.
can you tell me where i made mistake.
is that i did any mistake from hardware side or software??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Pin 33 is the power supply for the digital pins. You will always need to supply that pin with a valid power level.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
okay bob.
but can you tell me valid means how much level of voltage??
can i give same as psoc-4 like 3.3 V or 5V??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In Creator Workspace Explorer select the Datasheet tab and open the PSoC 4200 family datasheet. Search for "Vddd" to get the relevant parts. VDDA must be the highest voltage and be <= VDD. VDDD can be as low as 1.8V and must not exceed VDDA or VDD. See the bypass caps section in the datasheet.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Okay Thanks bob.
i Found the problem in my 8 digit seven display. i declared two interrupt there with two TCPWM component. one for display and another for 4 key check whether any key pressed or not??
i set display on highest priority and key on second priority.
now only display interrupt working perfect and key interrupt is not call even single time.
what is problem in this case??? can you suggest me??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please post actual project.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
use briefe at jmeiersoftware dot de
Bob