Author |
Message |
Topic: Wait problem |
atmega64
Replies: 11
Views: 967
|
Forum: BASCOM-AVR Posted: Tue Jan 02, 2024 4:56 pm Subject: Wait problem |
Indeed...
Set Pllcsr.plle
It didn't make sense, I deleted it... |
Topic: Wait problem |
atmega64
Replies: 11
Views: 967
|
Forum: BASCOM-AVR Posted: Tue Jan 02, 2024 4:22 pm Subject: Wait problem |
there was an error in the fuse setting
All ok...
thanks |
Topic: Wait problem |
atmega64
Replies: 11
Views: 967
|
Forum: BASCOM-AVR Posted: Tue Jan 02, 2024 3:56 pm Subject: Wait problem |
64000000 / 8 = 8000000
Calibrated internal RC oscillator 8.0MHz |
Topic: Wait problem |
atmega64
Replies: 11
Views: 967
|
Forum: BASCOM-AVR Posted: Tue Jan 02, 2024 2:53 pm Subject: Wait problem |
or just change $crystal to 1000000
64000000 |
Topic: Wait problem |
atmega64
Replies: 11
Views: 967
|
Forum: BASCOM-AVR Posted: Tue Jan 02, 2024 2:39 pm Subject: Wait problem |
Hi,
Edit: If you're using internal CLK, CKDIV8 is programmed by default. In this case, system clock is 1 MHz.
so here's the problem...
so I should put
CONFIG CLOCKDIV = 1 |
Topic: Wait problem |
atmega64
Replies: 11
Views: 967
|
Forum: BASCOM-AVR Posted: Tue Jan 02, 2024 2:34 pm Subject: Wait problem |
I use the internal clock, no external components... |
Topic: Wait problem |
atmega64
Replies: 11
Views: 967
|
Forum: BASCOM-AVR Posted: Tue Jan 02, 2024 2:26 pm Subject: Wait problem |
Hi,
because with command:
Wait 2
it's stop only for one second?
$regfile = "Attiny45.dat"
$crystal = 8000000
Config Portb.0 = Output ... |
Topic: PWM out change |
atmega64
Replies: 14
Views: 5699
|
Forum: BASCOM-AVR Posted: Fri Sep 01, 2023 2:19 pm Subject: PWM out change |
sorry i used the same reasoning,
but why, this code doesn't work for Timer2 ?
Config Portd.7 = Output
Const Cpwmfreqe1vac = 178
Vacpwr = 150
Tccr2a = &B10000011 '&B00100011
Tc ... |
Topic: PWM out change |
atmega64
Replies: 14
Views: 5699
|
Forum: BASCOM-AVR Posted: Fri Sep 01, 2023 8:19 am Subject: PWM out change |
ok it works...
thanks and good coffee |
Topic: PWM out change |
atmega64
Replies: 14
Views: 5699
|
Forum: BASCOM-AVR Posted: Fri Sep 01, 2023 7:21 am Subject: PWM out change |
okok
I could use pinB7 (OC3B) the others are busy...
this is the code i modified to use OC3B but its not working... (if I use OC3A instead it works...)
Config Portb.7 = Output ... |
Topic: PWM out change |
atmega64
Replies: 14
Views: 5699
|
Forum: BASCOM-AVR Posted: Thu Aug 31, 2023 3:29 pm Subject: PWM out change |
Hi,
how should I change this code to have PWM signal on pin D7 (OC2A)?
$regfile = "m1284def.dat"
... |
Topic: Abnormal restart timer |
atmega64
Replies: 7
Views: 1311
|
Forum: BASCOM-AVR Posted: Mon Jan 30, 2023 12:28 pm Subject: Abnormal restart timer |
ok perfect it works!!
thank you. |
Topic: Abnormal restart timer |
atmega64
Replies: 7
Views: 1311
|
Forum: BASCOM-AVR Posted: Thu Jan 26, 2023 11:48 am Subject: Abnormal restart timer |
I'm sorry but I'm stuck on this problem...
I did not know:
Reason is: The prescalers are counters with preset TOPs like 1, 8, 32, 64,...
These prescaler counters keep their internal value ... |
Topic: Abnormal restart timer |
atmega64
Replies: 7
Views: 1311
|
Forum: BASCOM-AVR Posted: Thu Jan 26, 2023 8:26 am Subject: Abnormal restart timer |
any advice please?? |
Topic: Abnormal restart timer |
atmega64
Replies: 7
Views: 1311
|
Forum: BASCOM-AVR Posted: Fri Jan 13, 2023 2:40 pm Subject: Abnormal restart timer |
instead, if power supply off and then power supply on,
they work fine until I block them from software... |
|