Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 2506 matches
www.mcselec.com Forum Index
Author Message
  Topic: Problem with Delchar
AdrianJ

Replies: 3
Views: 488

PostForum: BASCOM-AVR   Posted: Fri Jul 02, 2021 1:00 am   Subject: Problem with Delchar
When you build a string by inserting characters with the mid statement, the next character will be whatever is left over from when the string was last used. But bascom assumes that the end of the stri ...
  Topic: Help with XTEA Encoding of an Array
AdrianJ

Replies: 4
Views: 470

PostForum: BASCOM-AVR   Posted: Sat May 22, 2021 2:12 am   Subject: Help with XTEA Encoding of an Array
xtea has to have somewhere to do its operations, and the 'easiest' place is on the incoming array, and it does multiple operations on each byte. Even if you rewrote the xtea code, I seriously doubt i ...
  Topic: Problem with Single variable
AdrianJ

Replies: 17
Views: 1310

PostForum: BASCOM-AVR   Posted: Sat Apr 24, 2021 2:07 am   Subject: Problem with Single variable
Floating point always has rounding errors. Doing calcs in double precision is one way, but it really only masks the problem by pushing it down several decimal places, at the expense of very much long ...
  Topic: temperature sensor TMP117
AdrianJ

Replies: 3
Views: 585

PostForum: BASCOM-AVR   Posted: Thu Mar 25, 2021 11:56 pm   Subject: temperature sensor TMP117
Nice sensor ! Pity they werent around when I needed such a thing 10 years or so ago !
  Topic: GetADC Conversion time on mega328
AdrianJ

Replies: 13
Views: 1148

PostForum: BASCOM-AVR   Posted: Wed Mar 17, 2021 2:12 am   Subject: GetADC Conversion time on mega328
You should consider also the turnoff time of the LED panel, and what sort of LEDs they are ( white phosphor, or direct output ). Probably much shorter than the ADC conversion time, but worth checking ...
  Topic: Data-Lines in Lib and Inline-Asseembler
AdrianJ

Replies: 11
Views: 1062

PostForum: BASCOM-AVR   Posted: Wed Feb 17, 2021 11:49 pm   Subject: Data-Lines in Lib and Inline-Asseembler
I agree with hgruensis.

In 20+ years of using both ASM and Bascom, I only found a couple of cases where ASM was significanty faster than Bascom. Now that Bascom has direct use of the registers to ...
  Topic: Data-Lines in Lib and Inline-Asseembler
AdrianJ

Replies: 11
Views: 1062

PostForum: BASCOM-AVR   Posted: Tue Feb 16, 2021 11:56 pm   Subject: Data-Lines in Lib and Inline-Asseembler
I still cant see the point in assigning high level data in assembler. Assembler has no direct commands for handling any form of data other than bytes. Anything else, you have to code subroutines for ...
  Topic: 5 k lookup table
AdrianJ

Replies: 19
Views: 2430

PostForum: BASCOM-AVR   Posted: Thu Jan 14, 2021 10:37 pm   Subject: 5 k lookup table
Hmm,

Measuring the position might be the harder of the several problems.
  Topic: 5 k lookup table
AdrianJ

Replies: 19
Views: 2430

PostForum: BASCOM-AVR   Posted: Thu Jan 14, 2021 3:15 am   Subject: 5 k lookup table
This page is blank
  Topic: 5 k lookup table
AdrianJ

Replies: 19
Views: 2430

PostForum: BASCOM-AVR   Posted: Thu Jan 14, 2021 2:45 am   Subject: 5 k lookup table
@ O-family
True, but I would hardly class 3D vector geometry as "advanced" Yes it needs some trigonometry, and possibly vector algebra, but these are easy in Bascom, and if you stick to single preci ...
  Topic: 5 k lookup table
AdrianJ

Replies: 19
Views: 2430

PostForum: BASCOM-AVR   Posted: Wed Jan 13, 2021 11:41 pm   Subject: 5 k lookup table
Since its essentially a geometric problem, I would solve it by doing some analytic geometry to derive actual math expressions for the values you are trying to find, then just evaluate the formula in r ...
  Topic: Bootloader being overwritten during program execution?
AdrianJ

Replies: 6
Views: 853

PostForum: BASCOM-AVR   Posted: Tue Nov 10, 2020 10:51 pm   Subject: Bootloader being overwritten during program execution?
You can also set a fuse to disable writing to the bootloader area. Obviously, do this after installing the bootloader !

And for added general security, set another fuse bit to prevent any read a ...
  Topic: Do STCHECK,$HWCHECK,$FRAMECHECK,$SOFTCHECK work
AdrianJ

Replies: 6
Views: 586

PostForum: BASCOM-AVR   Posted: Mon Aug 24, 2020 2:07 am   Subject: Do STCHECK,$HWCHECK,$FRAMECHECK,$SOFTCHECK work
Great you solved it !

One thing I used to do to trace this sort of corruption was to rearrange the order variables are defined. Then see whether the corruption happens on the same or a different v ...
  Topic: Using a 16 bit timer counter value in operations
AdrianJ

Replies: 3
Views: 394

PostForum: BASCOM-AVR   Posted: Thu Aug 20, 2020 1:13 am   Subject: Using a 16 bit timer counter value in operations
Both are the same, the timer is read as two bytes, and as long as Bascom reads them in the correct order ( which I am sure it does ) then a low byte rollover is prevented before the upper byte is tran ...
  Topic: Software UART issues
AdrianJ

Replies: 13
Views: 2774

PostForum: BASCOM-AVR   Posted: Wed Jul 01, 2020 4:49 am   Subject: Software UART issues
@EDC
Yes, if you concat a character on the end of a string, just by doing tempstr = tempstr + chr the null is inserted automatically. But last time I looked, if you use the Mid function to insert a ...
 
Page 1 of 168 Goto page 1, 2, 3 ... 166, 167, 168  Next
All times are GMT + 1 Hour
Jump to: