- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello all,'
I am using PSOC controller cy8c3244pvi-133
i am putting it in sleep mode and wakeup only when PICU interrupt occures.
when it wakes up i start 1msec timer interrupt and set one flag which I use for changing the state in while(1) loop.
my sleep current is 40usec. and active current is 20mA
I have noticed that when there is any transition of pins other than external interrupt pins PICU, controller wakes up and current is also increases.
for this I wrote a code such as if by accident controller wakes up then start 1msec timer interrupt and again go back to sleep but my interrupt is not working and even if I directly put to sleep mode, it is not going to sleep.
why this is happening?
please guide.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is a bit difficult to make a guess right into the blue, I'm afraid we need some more information to help you out of this.
Best would be to post the complete project here, use Creator's "Create Workspace Bundle" and upload the resulting archive. DO NOT USE CHROME when uploading, some bug preventst the file from getting into the forum.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi
thanks for reply.
I am posting my code.
I am using two external port pin interrupts.
controller.c has sleep mode routines.
application.c has my application where RF module sends signal as any of the two port pin interrupts are occured
main.c has states i.e from sleep to wakeup due to PICU, send signal using RF and then again back to sleep
please use psoc creator 2.2 to open the project
please guide.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I cannot see a flaw in your code at first sight. Only the setting of the isrs is "derived" and ought to be changed to "level" as I understood the documentation.
I would try to reduce the project to the smallest program just showing the error.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content