Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 271 matches
www.mcselec.com Forum Index
Author Message
  Topic: Timer does not start immediately
atmega64

Replies: 6
Views: 362

PostForum: BASCOM-AVR   Posted: Mon Nov 30, 2020 8:10 am   Subject: Timer does not start immediately
Yes, OK...

but with this system, now the timer response is acceptable ...

could it still be improved?
  Topic: Timer does not start immediately
atmega64

Replies: 6
Views: 362

PostForum: BASCOM-AVR   Posted: Fri Nov 27, 2020 10:40 am   Subject: Timer does not start immediately
hi,

well, I added
load timer1, Cpwmfreq

seems to work well now ...

what do you think about it?

updated code:
$regfile = "m1284def.dat"
$crystal = 16000000
$hwstack = 48
$sws ...
  Topic: Timer does not start immediately
atmega64

Replies: 6
Views: 362

PostForum: BASCOM-AVR   Posted: Thu Nov 26, 2020 5:04 pm   Subject: Timer does not start immediately
sorry but the input code is missing ...

obviously Cpwmfreq is never zero and never negative

the value of Cpwmfreq ranges from 5 to 50
  Topic: Timer does not start immediately
atmega64

Replies: 6
Views: 362

PostForum: BASCOM-AVR   Posted: Thu Nov 26, 2020 4:34 pm   Subject: Timer does not start immediately
Hi,
with the following code,

when I switch from a low frequency to a high frequency (for example Cpwmfreq = 50)

the timer does not start immediately but after a few seconds ... why?

$regfil ...
  Topic: ATtiny45 reset
atmega64

Replies: 6
Views: 416

PostForum: AVR   Posted: Tue Jun 30, 2020 1:07 pm   Subject: ATtiny45 reset
I have to pilot an IR emitter at 38kHz so what do you recommend?
  Topic: ATtiny45 reset
atmega64

Replies: 6
Views: 416

PostForum: AVR   Posted: Tue Jun 30, 2020 10:59 am   Subject: ATtiny45 reset
I have to generate a 38KHz PWM without using an external clock ...

I managed to set the clock to 8MHz but maximum arrival at 35KHz ...

how can i solve?
  Topic: ATtiny45 reset
atmega64

Replies: 6
Views: 416

PostForum: AVR   Posted: Tue Jun 30, 2020 8:25 am   Subject: ATtiny45 reset
Hi,

it's the first time I use a micro from the ATtiny family ...

I have an ATtiny45, is a 8.2k resistor between the RESET and VCC ok for the reset?

(BASCOM-AVR version : 2.0.8.2 )
  Topic: Bug BASCOM AVR 2.0.8.2 version?
atmega64

Replies: 18
Views: 1061

PostForum: BASCOM-AVR   Posted: Wed Mar 11, 2020 8:41 am   Subject: Bug BASCOM AVR 2.0.8.2 version?
yes you repeat but you fail to give proper information in the first place. when the problem is only visible under certain conditions you should provide this information.

Albertsm I have been using ...
  Topic: Bug BASCOM AVR 2.0.8.2 version?
atmega64

Replies: 18
Views: 1061

PostForum: BASCOM-AVR   Posted: Tue Mar 10, 2020 4:33 pm   Subject: Bug BASCOM AVR 2.0.8.2 version?
you should also include info about the data you sent.
and if it includes CR , LF or both.

The data I send does not include CR and LF

but I repeat, sending the same data, with the bascom version ...
  Topic: Bug BASCOM AVR 2.0.8.2 version?
atmega64

Replies: 18
Views: 1061

PostForum: BASCOM-AVR   Posted: Tue Mar 10, 2020 3:28 pm   Subject: Bug BASCOM AVR 2.0.8.2 version?
I modified the code but always the same problem, that is, it doesn't work with the bascom version 2.0.8.2...

$regfile = "m1284def.dat"
$crystal = 16000000
$hwstack = 48
$swstack = 40
...
  Topic: Bug BASCOM AVR 2.0.8.2 version?
atmega64

Replies: 18
Views: 1061

PostForum: BASCOM-AVR   Posted: Tue Mar 10, 2020 2:12 pm   Subject: Bug BASCOM AVR 2.0.8.2 version?
Btw., to name a bit var rxdata1 and and a string val rxdata1$ is also not the brightest idea around.
Easier reading and less error-prone it's with self explaining names, for example rx1_data and rx1_ ...
  Topic: Bug BASCOM AVR 2.0.8.2 version?
atmega64

Replies: 18
Views: 1061

PostForum: BASCOM-AVR   Posted: Tue Mar 10, 2020 12:58 pm   Subject: Bug BASCOM AVR 2.0.8.2 version?
i would not recommend to work on a variable inside an int and in the main program without disabling interrupts in the main code.

so I should disable the interrupts before Rxdata2 $ = "" and immedia ...
  Topic: Bug BASCOM AVR 2.0.8.2 version?
atmega64

Replies: 18
Views: 1061

PostForum: BASCOM-AVR   Posted: Tue Mar 10, 2020 8:55 am   Subject: Bug BASCOM AVR 2.0.8.2 version?
I confirm that even increasing the stacks / frame values it only works with the BASCOM version 2.0.8.1

$regfile = "m1284def.dat"
$crystal = 16000000
$hwstack = 48
$swstack = 40
$frame ...
  Topic: Bug BASCOM AVR 2.0.8.2 version?
atmega64

Replies: 18
Views: 1061

PostForum: BASCOM-AVR   Posted: Tue Mar 10, 2020 8:08 am   Subject: Bug BASCOM AVR 2.0.8.2 version?

Already said, one more time:
Quote:
In such case the IDE's values are used, which may differ between the versions.


Obviously I had already checked that IDE's values were the same ... Wink ...
  Topic: Bug BASCOM AVR 2.0.8.2 version?
atmega64

Replies: 18
Views: 1061

PostForum: BASCOM-AVR   Posted: Mon Mar 09, 2020 2:03 pm   Subject: Bug BASCOM AVR 2.0.8.2 version?
ok...

but how do you explain that with v.2.0.8.1 it works?
 
Page 1 of 19 Goto page 1, 2, 3 ... 17, 18, 19  Next
All times are GMT + 1 Hour
Jump to: