cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1

Anonymous
Not applicable

 Good morning/afternoon/evening:

   

Well.. I see that I used the M8C_Sleep Instruction when I want to sleep the microprocessor... But, I want configure the time to sleep, in specefic 10 seconds. The homework is make a process each 10 seconds, in general. So, can someone help me?... Thank you very much.

   

I don´t speak English better than Spanish, so excuse me if you don´t  understand me.

0 Likes
4 Replies
Anonymous
Not applicable

Good morning/afternoon/evening:

   

Well... I used the M8C_Sleep Instruction when I want to sleep the microprocessor... But, I want to configure the time to sleep, in specefic 10 seconds. The homework makes a process each 10 seconds, in general. So, can someone help me?... Thank you very much.

   

I don´t speak English better than Spanish, so excuse me if you don´t  understand me.

   

 

   

PD: Double post, because I have Ortographic error, in the before post :).

0 Likes
Bob_Marlowe
Expert II

Set the sleep timer to 1s and sleep 10 times, so you have your required 10s.

   

 

   

Happy coding

   

Bob

0 Likes
Anonymous
Not applicable

 Thank you for your question... The sleeptimer is a opcion, but the homework requires a M8C_Sleep instruction, desafortunatly

0 Likes
ETRO_SSN583
Esteemed Contributor

This shows basics of how to use various resources to control wakeup

   

from sleep.

   

 

       

If you need extended time in sleep, there are several approaches you could use.

   

1) Sleep timer set to 1 sec, wake up 10 times, effectively you have slept 10 S.

   

2) Use RC network and comparator interrupt to generate 10 S wakep interrupt.

   

3) Digital blocks clcoked by ILO, so use a "wide" timer or counter to generate

   

delay.

   

 

   

Regards, Dana.

0 Likes