Help with M8C_Sleep Instruction

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
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
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

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