Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 2138 matches
www.mcselec.com Forum Index
Author Message
  Topic: Print problem with different bascom versions, ATXMega256A3BU
Evert :-)

Replies: 5
Views: 223

PostForum: BASCOM-AVR   Posted: Mon Nov 01, 2021 7:24 pm   Subject: Print problem with different bascom versions, ATXMega256A3BU
The first that's cumming up in my mind is that your stack is too low.
Can you share us your settings and preferable some code to test.
  Topic: PWM: how to set prescale seperately?
Evert :-)

Replies: 4
Views: 242

PostForum: BASCOM-AVR   Posted: Sun Oct 31, 2021 11:53 pm   Subject: PWM: how to set prescale seperately?
You can set the 3 bits for the prescaler manually in the TCCR1B register.
For example prescale 64;

tccr1b.cs10 =1
tccr1b.cs11 =1
tccr1b.cs12 =0
Have look at the datasheet page 114 for the possi ...
  Topic: 7 digit LED Calculator, single, and double operation.
Evert :-)

Replies: 2
Views: 249

PostForum: BASCOM-AVR   Posted: Thu Sep 09, 2021 8:24 pm   Subject: 7 digit LED Calculator, single, and double operation.
Daro,
Show us your complete code that's not working.
Code from EDC is working, so maybe you do something else wrong.
Low stack?
  Topic: Register Descriptions MCU Control
Evert :-)

Replies: 4
Views: 261

PostForum: BASCOM-AVR   Posted: Tue Aug 31, 2021 8:32 pm   Subject: Register Descriptions MCU Control
I'm not sure you can read those bytes this way. what i understand the production signature row is in a separate memory section.

Have a look at the [url=https://avrhelp.mcselec.com/readsig.htm?zoom_ ...
  Topic: Differences where variable dimensioned?
Evert :-)

Replies: 2
Views: 161

PostForum: BASCOM-AVR Unsupported versions   Posted: Sat Aug 07, 2021 7:31 pm   Subject: Differences where variable dimensioned?
Form the help file:


SCOPE
The scope for DIM is global. So no matter where you use the DIM statements, the variable will end up as a global visible variable that is visible in all modules, proced ...
  Topic: Swap with software uart
Evert :-)

Replies: 2
Views: 259

PostForum: BASCOM-AVR   Posted: Mon Jul 26, 2021 6:52 pm   Subject: Swap with software uart
Can you show us your hw and sw stack?
I think the sw stack is set to low.
  Topic: Version 2084
Evert :-)

Replies: 12
Views: 1255

PostForum: BASCOM-AVR   Posted: Sat Jul 10, 2021 1:38 pm   Subject: Version 2084
Cool, thanks for the hard work on the update again.
  Topic: time(clock_sys) produces HH:MM:SS in Hex!
Evert :-)

Replies: 4
Views: 294

PostForum: BASCOM-AVR Unsupported versions   Posted: Thu Jul 08, 2021 8:51 pm   Subject: time(clock_sys) produces HH:MM:SS in Hex!
Hi,
Hard to say what could be going wrong without sharing us the mcu your are using, stack and frame size, declaration of you variable and a compilable example.

This is what I find strange so far: ...
  Topic: LGT8F328
Evert :-)

Replies: 2
Views: 316

PostForum: BASCOM-ARDUINO   Posted: Sun May 16, 2021 10:56 am   Subject: LGT8F328
If I was you, don't wait for them and use a real avr , certainly if you are using them in a commercial product.

Reading this [url=https://www.eevblog.com/forum/projects/anyone-here-interested-in-t ...
  Topic: GUI-O Speed Controller
Evert :-)

Replies: 2
Views: 972

PostForum: Share your working BASCOM-AVR code here   Posted: Thu Apr 08, 2021 9:16 pm   Subject: GUI-O Speed Controller
Cool, very interesting.
Thanks for sharing.
  Topic: Interrupt overflows being missed?
Evert :-)

Replies: 29
Views: 1309

PostForum: BASCOM-AVR   Posted: Sat Feb 27, 2021 12:04 pm   Subject: Interrupt overflows being missed?
As if I understand now you are measuring the time between the 2 edges of the pulse to determine the rpm, not the easiest way.
In the calculations you are also using multiply time singles. Using Singl ...
  Topic: Is there a way to know which type is a variable?
Evert :-)

Replies: 16
Views: 668

PostForum: BASCOM-AVR   Posted: Wed Jan 27, 2021 5:18 pm   Subject: Is there a way to know which type is a variable?
var = VARPTR( var2 ) 'A variable to retrieve the address from
var = VARPTR( "var3" ) 'A constant

Take a note of the quotes.

Don't know at what moment you want to ...
  Topic: How to convert several variables into an array of bytes?
Evert :-)

Replies: 11
Views: 476

PostForum: BASCOM-AVR   Posted: Mon Jan 25, 2021 10:02 pm   Subject: How to convert several variables into an array of bytes?
You can OVERLAY the bytes (or other types) over the array

Dim MyAr(100) As Byte
Dim Mybyte1 As byte At MyAr() + &H01 Overlay
Dim Mybyte2 As byte At MyAr() + &H02 O ...
  Topic: MPU-6050 Not sending data
Evert :-)

Replies: 3
Views: 327

PostForum: BASCOM-AVR   Posted: Thu Dec 17, 2020 1:57 pm   Subject: MPU-6050 Not sending data
Hi Snow,

My first reply as electronics engineer is what about voltage levels.
The MPU6050 runs at 3.3V and the M328PB needs at 16Mhz >4.5V.
Do you have a good level convertor for the i2c bus?
  Topic: Serialin buffer
Evert :-)

Replies: 13
Views: 582

PostForum: BASCOM-AVR   Posted: Wed Dec 16, 2020 10:41 pm   Subject: Serialin buffer
Hi Andre,

Here the nice guy from Holland. Wink

It's not that easy to increase the receiver buffer. The data and pointers of the receive buffer are now stored in bytes. Bytes can hold up values to ...
 
Page 1 of 143 Goto page 1, 2, 3 ... 141, 142, 143  Next
All times are GMT + 1 Hour
Jump to: