Author |
Message |
Topic: Atmega8A compability problem |
MWS
Replies: 14
Views: 443
|
Forum: BASCOM-AVR Archive Posted: Sat Feb 11, 2012 11:04 pm Subject: Atmega8A compability problem |
Check the fuse settings. |
Topic: ATTINY10 |
MWS
Replies: 9
Views: 512
|
Forum: BASCOM-AVR Archive Posted: Sat Feb 11, 2012 8:04 pm Subject: ATTINY10 |
The "freedom" to be unkind does not excuse the act of being unkind.
Your sentence implies that something has to be excused, which is not the case.
This is a very lightly posted to forum...
...incre ... |
Topic: ATTINY10 |
MWS
Replies: 9
Views: 512
|
Forum: BASCOM-AVR Archive Posted: Sat Feb 11, 2012 5:52 pm Subject: ATTINY10 |
beananimal,
... MWS ...
as you mention my name, I recall we had some quarrel some time ago, and I must confess I'm not always nice
I see it as part of freedom to say something without the need o ... |
Topic: RESTORE address not label |
MWS
Replies: 3
Views: 168
|
Forum: BASCOM-AVR Archive Posted: Sat Feb 11, 2012 5:06 pm Subject: RESTORE address not label |
(please excuse my poor ASM )
Nothing to excuse, but you can also do without:
$Regfile = "m32def.dat"
$Crystal=4000000
$hwstack=32
$swstack=8
$framesize=24
Const dsplcm = 10
Dim g ... |
Topic: RESTORE address not label |
MWS
Replies: 3
Views: 168
|
Forum: BASCOM-AVR Archive Posted: Sat Feb 11, 2012 4:22 pm Subject: RESTORE address not label |
Yes, that's no problem, the read pointer for Read() is in µC-reg R8/R9.
Load these regs with the address + displacement , then use Read(). Notice the read pointer is byte-based.
If you want to read ... |
Topic: Is possible set ATTiny25 internal oscillator at 16MHz withou |
MWS
Replies: 9
Views: 320
|
Forum: BASCOM-AVR Archive Posted: Thu Feb 09, 2012 7:51 pm Subject: Is possible set ATTiny25 internal oscillator at 16MHz withou |
The system clock will be 1/4 of 64 MHz = 16 MHz.
Good advice. |
Topic: Is possible set ATTiny25 internal oscillator at 16MHz withou |
MWS
Replies: 9
Views: 320
|
Forum: BASCOM-AVR Archive Posted: Thu Feb 09, 2012 7:27 pm Subject: Is possible set ATTiny25 internal oscillator at 16MHz withou |
Write OSCCAL to &h7F, and you'll know it.
Be aware that EEProm and Flash write access won't work at the resulting frequency. |
Topic: PWM PLL and Dead-time |
MWS
Replies: 6
Views: 730
|
Forum: BASCOM-AVR Archive Posted: Thu Feb 02, 2012 12:13 pm Subject: PWM PLL and Dead-time |
I have tried to enable dead time with following code with various combination, but get "assignment error".
Tccr1 = Bits(pwm1a)
Tccr1 = Bits(com1a0)
Tccr1 = Bits(cs11)
Fir ... |
Topic: PWM PLL and Dead-time |
MWS
Replies: 6
Views: 730
|
Forum: BASCOM-AVR Archive Posted: Thu Feb 02, 2012 1:00 am Subject: PWM PLL and Dead-time |
Adrian,
in fact there exist such as a dead time generator in ATiny25/45/85.
Dead Time Generator
The Dead Time Generator is provided for the Timer/Counter1 PWM output pairs to allow driving extern ... |
Topic: ADC with Atmega128A - Results are always 1023 |
MWS
Replies: 3
Views: 200
|
Forum: BASCOM-AVR Archive Posted: Wed Jan 18, 2012 6:05 pm Subject: Re: ADC with Atmega128A - Results are always 1023 |
Anyone spot what I am doing wrong here:
Config Adc = Free , Prescaler = Auto
With "free" it works not the way you do it, change it to "single".
For free running mode, check the adc_int.bas in the ... |
Topic: interrupt happening ONLY on rising edges |
MWS
Replies: 8
Views: 305
|
Forum: BASCOM-AVR Archive Posted: Wed Jan 18, 2012 5:57 pm Subject: interrupt happening ONLY on rising edges |
your setup for the timer produces interrupts only on the rising edges of the generated wave.
Sure
You can also write it like that, looks cleaner:
TCCR1A = Bits(Com1A1 , WGM11)
TCCR1B ... |
Topic: interrupt happening ONLY on rising edges |
MWS
Replies: 8
Views: 305
|
Forum: BASCOM-AVR Archive Posted: Wed Jan 18, 2012 9:41 am Subject: Re: interrupt happening ONLY on rising edges |
With an ATMega168 I need to generate a square wave using Timer1, with a period of 26uS. the problem is that I also need an interrupt happening ONLY ON THE RISING EDGES of this wave.
Bascom uses per ... |
Topic: Update Wizard [Solved] |
MWS
Replies: 5
Views: 395
|
Forum: BASCOM-AVR Archive Posted: Thu Jan 05, 2012 8:56 am Subject: Update Wizard [Solved] |
You need to click "next" two times, at the second click it checks for updates and restarts if there are any.
It reads on the wiz:
When you press the Next-button, the Wiz will check the Internet for ... |
Topic: Atmega88 and watchdog |
MWS
Replies: 10
Views: 476
|
Forum: BASCOM-AVR Archive Posted: Tue Jan 03, 2012 11:52 pm Subject: Atmega88 and watchdog |
!WDR did not change anything.
It was the only point in disassembled code which did not meet the data sheet, everything else looked ok.
Addendum:
Whereas I do not see any difference between ATM8 &am ... |
Topic: Atmega88 and watchdog |
MWS
Replies: 10
Views: 476
|
Forum: BASCOM-AVR Archive Posted: Tue Jan 03, 2012 3:19 pm Subject: Atmega88 and watchdog |
Put a !WDR ibefore Config Watchdog = 2048 within the _init_micro sub. The init micro sub squeezes in just after setting up the stack pointer and before Bascom resets the watchdog itself, so the watch ... |
|