View previous topic :: View next topic |
Author |
Message |
jodank
Joined: 22 Apr 2014 Posts: 49

|
Posted: Sun Apr 27, 2014 2:08 pm Post subject: |
|
|
Hey man! You did the whole software.?
Thanks man!
I think to use 8Mhz crystal but I think the internal oscillator should do the job too. Or? |
|
Back to top |
|
 |
EDC
Joined: 26 Mar 2014 Posts: 1133

|
Posted: Sun Apr 27, 2014 2:26 pm Post subject: |
|
|
You can try but the internal oscillator is not very accurate. For short procedures is sufficient but I would advise here external oscillator. Therefore, Timer 1 is loaded into a constant. It can be changed when you change the frequency.
Enjoy. The software requires a few more thoughts. Deleting variables may be another key, also need to think out what the variable Hours after eight hours. |
|
Back to top |
|
 |
jodank
Joined: 22 Apr 2014 Posts: 49

|
Posted: Sun Apr 27, 2014 2:35 pm Post subject: |
|
|
I finished before this software with the wait function but as I told I figured out does it would be better to made it with the timer function but I'm not so familiar with it and therefore I will learn how to use the timer and I stuck with the prescaler. ..
I will try and make mods on your software and share the result with you here.
I'm very happy for the code which you shared with as.
Thanks man. ..  |
|
Back to top |
|
 |
EDC
Joined: 26 Mar 2014 Posts: 1133

|
|
Back to top |
|
 |
jodank
Joined: 22 Apr 2014 Posts: 49

|
|
Back to top |
|
 |
EDC
Joined: 26 Mar 2014 Posts: 1133

|
|
Back to top |
|
 |
jodank
Joined: 22 Apr 2014 Posts: 49

|
Posted: Wed Apr 30, 2014 10:17 am Post subject: |
|
|
Thank's for the advice.
I put the wait function into the isr routine because I was very frustrated and I put it just in...
The main problem is the do - loop. I didn't give the program to do something but runs through the whole program and through the isr process.  |
|
Back to top |
|
 |
|