Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 278 matches
www.mcselec.com Forum Index
Author Message
  Topic: Help with XTEA Encoding of an Array
laborratte

Replies: 4
Views: 162

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: 469

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: 517

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: 1170

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: 1170

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: 240

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: 268

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: 571

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: 543

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: 229

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: 399

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: 399

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 ...
  Topic: Timer1 interrupt won't fire
laborratte

Replies: 7
Views: 348

PostForum: BASCOM-AVR   Posted: Mon Dec 21, 2020 6:25 pm   Subject: Timer1 interrupt won't fire
...and don't use nosave in on interrupt statement whem using isr like you do.
  Topic: Timer controlled movement of RC servo strange
laborratte

Replies: 15
Views: 851

PostForum: BASCOM-AVR   Posted: Sun Dec 13, 2020 5:19 pm   Subject: Timer controlled movement of RC servo strange
Hi,
I'm not familiar with RC Servos, but here some notes to your code:

- I don't see any overflow control in your on-off-time calculation. How do you avoid values >255 or <0?

- When writi ...
  Topic: Kill large number of files
laborratte

Replies: 12
Views: 712

PostForum: BASCOM-AVR   Posted: Thu Dec 10, 2020 4:51 pm   Subject: Kill large number of files
About formatting:
IMHO it is not a good idea to write a hard coded fixed MBR to a SD-Card as shown in the C-Code example. This can ruin the card if physical parameters (i.e. size) are not identical. ...
 
Page 1 of 19 Goto page 1, 2, 3 ... 17, 18, 19  Next
All times are GMT + 1 Hour
Jump to: