Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 281 matches
www.mcselec.com Forum Index
Author Message
  Topic: ATMEGA4809 TCA0 Split mode PWM 100% duty?
laborratte

Replies: 4
Views: 173

PostForum: BASCOM-AVR   Posted: Fri Oct 15, 2021 10:34 am   Subject: ATMEGA4809 TCA0 Split mode PWM 100% duty?
Yes, sorry, you are right. I misssed the "Down Count Only" behaviour of split mode. And it makes sense: if the counter reaches zero output is set to low, if CMP > PER it will never set back to high ...
  Topic: ATMEGA4809 TCA0 Split mode PWM 100% duty?
laborratte

Replies: 4
Views: 173

PostForum: BASCOM-AVR   Posted: Wed Oct 13, 2021 1:20 pm   Subject: ATMEGA4809 TCA0 Split mode PWM 100% duty?
As I understand the datasheet you should get a 100% on time if you set the periodic (LPER and HPER) registers to &HFE and compare registers (LCMP0 ... HCMP2) to &HFF.

sorry, no possiblities ...
  Topic: Swap with software uart
laborratte

Replies: 2
Views: 180

PostForum: BASCOM-AVR   Posted: Mon Jul 26, 2021 12:33 pm   Subject: Swap with software uart
<deleted>
  Topic: Help with XTEA Encoding of an Array
laborratte

Replies: 4
Views: 198

PostForum: BASCOM-AVR   Posted: Fri May 21, 2021 3:17 pm   Subject: Help with XTEA Encoding of an Array
Well, you could change the XTEA-Lib (or write your own) in a way that the routine will write in a second array and you have found the starting point.
But I wouldn't do it at all.

Simply copy your ...
  Topic: Problem with Single variable
laborratte

Replies: 17
Views: 570

PostForum: BASCOM-AVR   Posted: Thu Apr 22, 2021 9:34 am   Subject: Problem with Single variable
Doing math with floating point values is always "non-precise". The obvious example in the decimal world is: 3 * (1/3) = 0.9999999999. As computers work binary rounding errors may occur on places where ...
  Topic: Question of 'AN #118 - I2C LCD and Keboard library'
laborratte

Replies: 7
Views: 582

PostForum: BASCOM-AVR   Posted: Tue Mar 23, 2021 11:53 am   Subject: Question of 'AN #118 - I2C LCD and Keboard library'
comparing your measurements and the code _temp1 is clearly an alias for R24 or R25. As R24 and R25 are used and changed in *BASIC: waitms 4, _temp1 has the value of &h00 after waitms, that is corr ...
  Topic: Interrupt overflows being missed?
laborratte

Replies: 29
Views: 1276

PostForum: BASCOM-AVR   Posted: Mon Mar 01, 2021 2:03 pm   Subject: Re: laborratte
I did change the use of Timer0 and Timer 1
sorry, missed that.

I would love to find a good resource about the timers and pwm. If you have any I can read, please let me know.
I'm afraid I can't h ...
  Topic: Interrupt overflows being missed?
laborratte

Replies: 29
Views: 1276

PostForum: BASCOM-AVR   Posted: Mon Mar 01, 2021 11:28 am   Subject: Interrupt overflows being missed?
Hi,
A) You are creating a "artifical" 16Bit timer0 with your overflow counter isr and use timer1 as a pwm with a resoultion of 80 (dec) - less than 7 bit. Why not vice versa? When you use timer0 as p ...
  Topic: AVR-DOS and FLASH MEMORY IC (AT25SF081)
laborratte

Replies: 2
Views: 294

PostForum: AVR-DOS   Posted: Fri Feb 26, 2021 11:40 am   Subject: AVR-DOS and FLASH MEMORY IC (AT25SF081)
There are some chips which might be interesting to you: XTSD01GLGEAG to XTSD08GLGEAG by a company named XTX. These are tiny flash chips with a (non-official) SD interface. They should work with the st ...
  Topic: SRAM space left
laborratte

Replies: 3
Views: 309

PostForum: BASCOM-AVR   Posted: Thu Feb 18, 2021 10:21 pm   Subject: SRAM space left
First var is at 200 hex.
  Topic: Data-Lines in Lib and Inline-Asseembler
laborratte

Replies: 11
Views: 655

PostForum: BASCOM-AVR   Posted: Fri Feb 12, 2021 1:44 pm   Subject: Re: Data-Lines in Lib and Inline-Asseembler

Is there a way to store Word, Long and String like this?

.dw wordvalue
.dl longvalue
.db "String",0

no.


Or must i use basic-command like Data to do this?

In Lib
*Basic: Data "Hallo ...
  Topic: Do we want an Xmega based Arduino board?
laborratte

Replies: 12
Views: 703

PostForum: AVR   Posted: Thu Feb 11, 2021 11:07 pm   Subject: Do we want an Xmega based Arduino board?
As MWS wrote I think the lack of XMegas is more likely based on missing Arduino IDE implementations - the few projects were not touched for years. I 've found a [url=https://www.akafugu.jp/posts/produ ...
  Topic: How can I read ATXmega LOTNUM, WAFNUM and COORDx Register
laborratte

Replies: 3
Views: 261

PostForum: BASCOM-AVR   Posted: Sun Feb 07, 2021 2:05 pm   Subject: How can I read ATXmega LOTNUM, WAFNUM and COORDx Register
in helpfile look for readsig. there is a sample.
  Topic: dim Jbit as bit
laborratte

Replies: 7
Views: 413

PostForum: BASCOM-AVR   Posted: Thu Jan 21, 2021 7:24 pm   Subject: dim Jbit as bit
...or in other words

dim A as Bit
dim B as Bit
dim C as Bit
dim D as Bit

' and optional for Testing:
dim BitContainer as byte at A overlay

is equivalent to

dim BitContainer as byte ...
  Topic: dim Jbit as bit
laborratte

Replies: 7
Views: 413

PostForum: BASCOM-AVR   Posted: Thu Jan 21, 2021 5:05 pm   Subject: dim Jbit as bit
Hi,

in HELP - "Language Fundamentals" the type Bit is described.

If you decleare only one bit, it will occupy a byte. If you declare 8 Bit - still one byte.

Unless you are doings tons of loo ...
 
Page 1 of 19 Goto page 1, 2, 3 ... 17, 18, 19  Next
All times are GMT + 1 Hour
Jump to: