Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 2502 matches
www.mcselec.com Forum Index
Author Message
  Topic: Data-Lines in Lib and Inline-Asseembler
AdrianJ

Replies: 11
Views: 357

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

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

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

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

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

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

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

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

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

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 ...
  Topic: Software UART issues
AdrianJ

Replies: 13
Views: 806

PostForum: BASCOM-AVR   Posted: Wed Jul 01, 2020 1:30 am   Subject: Software UART issues
Building strings from an array is good, but be aware that the string MUST end with a null ( chr(0) ) Else when you try and use the string somewhere else, you will get what looks like corruption, and ...
  Topic: Output Files
AdrianJ

Replies: 10
Views: 596

PostForum: BASCOM-AVR   Posted: Mon Jun 01, 2020 1:44 am   Subject: Output Files
None of those are really directly useful without the source code, and IMHO you can delete them, assuming of course you still have the source !

I would even include the hex, eep and bin files in a ...
  Topic: M1284P Odd Reset Issue
AdrianJ

Replies: 20
Views: 635

PostForum: BASCOM-AVR   Posted: Fri May 15, 2020 2:08 am   Subject: M1284P Odd Reset Issue
Good that you solved it !

I know its easy to be wise after the event, but a circuiit diagram of the actual board you had ( not one with a phantom AVcc connection ! ) would have made trouble shoot ...
  Topic: adding a null to a string
AdrianJ

Replies: 5
Views: 337

PostForum: BASCOM-AVR   Posted: Tue Mar 03, 2020 2:28 am   Subject: adding a null to a string

For Aa = 1 To 4 'fill the string with 4 chars
Mid(mystring , Aa , 1) = "b"

Next Aa
Bytes(5) = 0


You can also do it without the overlay:


...
  Topic: Lcd update every second?
AdrianJ

Replies: 6
Views: 602

PostForum: BASCOM-AVR   Posted: Mon Feb 24, 2020 11:33 pm   Subject: Lcd update every second?
That looks right. And yes, there will always be some jitter. As you make the main loop longer, it will get more. But unless there is some good programming reason, timing jitter on an LCD update sho ...
 
Page 1 of 167 Goto page 1, 2, 3 ... 165, 166, 167  Next
All times are GMT + 1 Hour
Jump to: