Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 316 matches
www.mcselec.com Forum Index
Author Message
  Topic: Please check MIN(ar(1), m , idx)
hzz

Replies: 5
Views: 394

PostForum: BASCOM-AVR   Posted: Thu Dec 02, 2021 8:21 pm   Subject: Please check MIN(ar(1), m , idx)
OK, I pointed out just in case MIN and MAX were intended to work as SORT
  Topic: Please check MIN(ar(1), m , idx)
hzz

Replies: 5
Views: 394

PostForum: BASCOM-AVR   Posted: Wed Dec 01, 2021 11:26 pm   Subject: Please check MIN(ar(1), m , idx)
It works Ok when the index of the array is 1 but reading the Help seems that it was supposed to work also with other values so it may be a bug:

MIN(ar(1), m , idx)
Ar(1) Starting element to get t ...
  Topic: Please check MIN(ar(1), m , idx)
hzz

Replies: 5
Views: 394

PostForum: BASCOM-AVR   Posted: Wed Dec 01, 2021 6:51 pm   Subject: Please check MIN(ar(1), m , idx)
'____________________________________________________________________________________
$regfile = "xm256a3Udef.dat"
$hwstack = 256
$swstack = 128
$framesize = 128
'______________________ ...
  Topic: FRAM lib compatible with both FM25L16B and FM24C16B
hzz

Replies: 5
Views: 752

PostForum: BASCOM-AVR   Posted: Fri Sep 10, 2021 11:37 am   Subject: FRAM lib compatible with both FM25L16B and FM24C16B
Hello Mark, I need 3 now for prototypes and 200 more this year. I have seen tha Mouser will receive several thousand in October so I will wait.

What I cannot find is XMEGA256A3U. I also need 200 th ...
  Topic: FRAM lib compatible with both FM25L16B and FM24C16B
hzz

Replies: 5
Views: 752

PostForum: BASCOM-AVR   Posted: Tue Sep 07, 2021 5:22 pm   Subject: FRAM lib compatible with both FM25L16B and FM24C16B
Thanks Klaus!

What a poor analysis I did!

It seems there is no alternative to the FM25L16B then. I'm getting lead times longer than 50 weeks.
  Topic: Same .bin for XMEGA192A3U and XMEGA256A3U?
hzz

Replies: 3
Views: 459

PostForum: BASCOM-AVR   Posted: Mon Sep 06, 2021 7:18 pm   Subject: Same .bin for XMEGA192A3U and XMEGA256A3U?
Thanks!

When you send a 256K bin file to a 192K Flash chip, the bootloader will write to flash the first 192K which is OK, but it will keep writing blocks to inexistent flash addresses until it rec ...
  Topic: Same .bin for XMEGA192A3U and XMEGA256A3U?
hzz

Replies: 3
Views: 459

PostForum: BASCOM-AVR   Posted: Mon Sep 06, 2021 12:55 pm   Subject: Same .bin for XMEGA192A3U and XMEGA256A3U?
I have several devices, some using XMEGA192A3U and some using XMEGA256A3U, all of them with Bascom bootloader. Is there a way to update them without knowing which processor each one is using?

I gu ...
  Topic: FRAM lib compatible with both FM25L16B and FM24C16B
hzz

Replies: 5
Views: 752

PostForum: BASCOM-AVR   Posted: Mon Sep 06, 2021 12:24 pm   Subject: FRAM lib compatible with both FM25L16B and FM24C16B
I have XMEGA256A3U boards with FM25L16B with a software using "fm25c256.lib"
There is a shortage of FM25L16B, but FM24C16B-G is available so I will make new boards with the FM24C16B-G instead.
Is ...
  Topic: Is there a way to know which type is a variable?
hzz

Replies: 16
Views: 1062

PostForum: BASCOM-AVR   Posted: Fri Feb 05, 2021 9:27 am   Subject: Is there a way to know which type is a variable?
OK
It does not return the full space ocuppied by a string in SRAM, ... string*10 retunrs 10, not 11.
Also, it does not work with arrays larger than 255 elements.
But for my purpose (to identify by ...
  Topic: Is there a way to know which type is a variable?
hzz

Replies: 16
Views: 1062

PostForum: BASCOM-AVR   Posted: Wed Jan 27, 2021 11:52 pm   Subject: Is there a way to know which type is a variable?
Hello MKS
First of all I truly appreciate you sharing your experiencie.
Second, and this is for anyone reading this thread, I'm writing the code almost real time, it sure is useful to get ideas, but ...
  Topic: How to convert several variables into an array of bytes?
hzz

Replies: 11
Views: 735

PostForum: BASCOM-AVR   Posted: Wed Jan 27, 2021 7:29 pm   Subject: Working code
Please see a better solution at:
https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&p=80030#80030
  Topic: Is there a way to know which type is a variable?
hzz

Replies: 16
Views: 1062

PostForum: BASCOM-AVR   Posted: Wed Jan 27, 2021 7:28 pm   Subject: Is there a way to know which type is a variable?
Here is the working code of what I pretended to do
Thanks all!
'____________________________________________________________________________________
' Given any sequence of variables of type Byte, ...
  Topic: Is there a way to know which type is a variable?
hzz

Replies: 16
Views: 1062

PostForum: BASCOM-AVR   Posted: Wed Jan 27, 2021 4:02 pm   Subject: Is there a way to know which type is a variable?
I do read the threads and appreciate very much the time you take to answer.

I read your post and tested Varptr("var") but it didn't work so I thought it was just for EEPROM variables; maybe I rea ...
  Topic: Is there a way to know which type is a variable?
hzz

Replies: 16
Views: 1062

PostForum: BASCOM-AVR   Posted: Wed Jan 27, 2021 12:25 pm   Subject: Is there a function to know the address where the SRAM varia
Is there a function to know the address where an SRAM variable is stored?

Knowing this address and the size of the variable it will be possible read the bytes that the variable is made of
  Topic: Is there a way to know which type is a variable?
hzz

Replies: 16
Views: 1062

PostForum: BASCOM-AVR   Posted: Wed Jan 27, 2021 12:06 pm   Subject: Is there a way to know which type is a variable?
Thanks Mark!
Sizeof is just what I was looking for. (It is not in BASCOM help)
 
Page 1 of 22 Goto page 1, 2, 3 ... 20, 21, 22  Next
All times are GMT + 1 Hour
Jump to: