- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Labels:
-
PSoC 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 :).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Set the sleep timer to 1s and sleep 10 times, so you have your required 10s.
Happy coding
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your question... The sleeptimer is a opcion, but the homework requires a M8C_Sleep instruction, desafortunatly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.