Author |
Message |
Topic: A test |
KenHorse
Replies: 0
Views: 3095
|
Forum: New WebSite Posted: Mon Jun 08, 2020 8:12 pm Subject: A test |
Just a test, sorry
(BASCOM-AVR version : 2.0.8.2 ) |
Topic: Reset micro command |
KenHorse
Replies: 13
Views: 1477
|
Forum: BASCOM-AVR Posted: Tue Mar 17, 2020 10:05 pm Subject: Reset micro command |
In the many years I have used Bascom (and asm) and used it for a variety of boards and applications, I have never ever needed to reset the processor.
If that is needed, then there is a major problem ... |
Topic: Reset micro command |
KenHorse
Replies: 13
Views: 1477
|
Forum: BASCOM-AVR Posted: Sun Mar 15, 2020 12:52 am Subject: Reset micro command |
Only hardware (other than processor) that would be involved would be RS232 level shifter and +5 regulator and I've never heard of those needing a hard reset |
Topic: Reset micro command |
KenHorse
Replies: 13
Views: 1477
|
Forum: BASCOM-AVR Posted: Sat Mar 14, 2020 6:24 pm Subject: Reset micro command |
I must say that my experience with a watchdog reset versus a power cycle does not result in the same end.
For example, if I have corrupt variables (due to framesize, hwstack, etc) being overwritten ... |
Topic: Using a Timer for Soft clock instead of 32768 kHz xtal |
KenHorse
Replies: 15
Views: 1207
|
Forum: BASCOM-AVR Posted: Thu Feb 20, 2020 4:58 pm Subject: Using a Timer for Soft clock instead of 32768 kHz xtal |
https://eleccelerator.com/avr-timer-calculator/ |
Topic: Using a Timer for Soft clock instead of 32768 kHz xtal |
KenHorse
Replies: 15
Views: 1207
|
Forum: BASCOM-AVR Posted: Thu Feb 20, 2020 4:39 pm Subject: Using a Timer for Soft clock instead of 32768 kHz xtal |
The formula for OCx is (F_CPU/PRESCALER/FREQ) - 1 because uC will execute interrupt minimum after one tick.
Till now I dont see typo in my example. COMPARE3A should have value 62499 not 6249. Becaus ... |
Topic: Using a Timer for Soft clock instead of 32768 kHz xtal |
KenHorse
Replies: 15
Views: 1207
|
Forum: BASCOM-AVR Posted: Thu Feb 20, 2020 12:23 am Subject: Using a Timer for Soft clock instead of 32768 kHz xtal |
The value of Compare3 can only be set in integer amounts. If its around 6000, then the smallest increment is about 1:6000, thats about 14 secs per day. So its not a very fine adjustment. Thats huge ... |
Topic: Using a Timer for Soft clock instead of 32768 kHz xtal |
KenHorse
Replies: 15
Views: 1207
|
Forum: BASCOM-AVR Posted: Wed Feb 19, 2020 10:32 pm Subject: Using a Timer for Soft clock instead of 32768 kHz xtal |
Yes. You can change COMPARE3A anytime. One thing can happen if Timer will be, for example at 6400, and you set COMPARE3A to 6000 then compare will not fire once and timer will simply overflow at 65535 ... |
Topic: Using a Timer for Soft clock instead of 32768 kHz xtal |
KenHorse
Replies: 15
Views: 1207
|
Forum: BASCOM-AVR Posted: Wed Feb 19, 2020 9:49 pm Subject: Using a Timer for Soft clock instead of 32768 kHz xtal |
Indeed, I did miss that he was defining it as Soft and not User
My bad (and it makes perfect sense)
Last question.
Is it possible to change the value of Compare3a (currently set to 6250) "on ... |
Topic: Using a Timer for Soft clock instead of 32768 kHz xtal |
KenHorse
Replies: 15
Views: 1207
|
Forum: BASCOM-AVR Posted: Wed Feb 19, 2020 7:56 am Subject: Using a Timer for Soft clock instead of 32768 kHz xtal |
As clock is configured for 'user' the softclock time keeping routines are not required, thus not compiled.
4th post down
https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&pag ... |
Topic: Using a Timer for Soft clock instead of 32768 kHz xtal |
KenHorse
Replies: 15
Views: 1207
|
Forum: BASCOM-AVR Posted: Wed Feb 19, 2020 1:52 am Subject: Using a Timer for Soft clock instead of 32768 kHz xtal |
So I've found several examples using SEARCH but Bascom is throwing a Label Not Found (Error : 61 Line : 23 Label not found
$regfile = "m2561def.dat"
$crystal = 16000000
$hwstack ... |
Topic: AVRISP MKII, got to work without JUNGO |
KenHorse
Replies: 5
Views: 734
|
Forum: BASCOM-AVR Posted: Thu Jan 30, 2020 12:15 am Subject: AVRISP MKII, got to work without JUNGO |
I've used the following on 3 different computers and the AVRISP MKII works just fine with Bascom (no AVR Studio install needed)
https://zadig.akeo.ie/ |
Topic: Search in files feature doesn't seem to work properly? |
KenHorse
Replies: 11
Views: 642
|
Forum: BASCOM-AVR Posted: Thu Jan 23, 2020 7:56 pm Subject: Search in files feature doesn't seem to work properly? |
Thanks Mark!
I take it this change will be available in the next release? |
Topic: Search in files feature doesn't seem to work properly? |
KenHorse
Replies: 11
Views: 642
|
Forum: BASCOM-AVR Posted: Wed Jan 22, 2020 9:06 pm Subject: Search in files feature doesn't seem to work properly? |
I can confirm it is the whitespace in the directory name of MCS Electronics.
MCS_Electronics or MCSElectronics works just fine...
Guess I gotta uninstall and reinstall Bascom to correct this... |
Topic: Search in files feature doesn't seem to work properly? |
KenHorse
Replies: 11
Views: 642
|
Forum: BASCOM-AVR Posted: Wed Jan 22, 2020 8:25 pm Subject: Search in files feature doesn't seem to work properly? |
when the root is searched, the provided path is not right.
make a command window and type :
DIR C:\MCS Electronics\BASCOM-AVR\rc2107_64\*.bas
it should list the files of that location.
it is ... |
|