Author |
Message |
Topic: Mcucsr: 2.0.8.6 - Does not work, 2.0.8.5 - ALL OK |
albertsm
Replies: 20
Views: 348
|
Forum: BASCOM-AVR Posted: Thu Feb 22, 2024 10:42 am Subject: Mcucsr: 2.0.8.6 - Does not work, 2.0.8.5 - ALL OK |
you must do this as soon as possible. in your code.
one way is using $initmicro
also , you say it works in 2085 but that is either a coincidence or not true since it was changed long time ago.
... |
Topic: Mcucsr: 2.0.8.6 - Does not work, 2.0.8.5 - ALL OK |
albertsm
Replies: 20
Views: 348
|
Forum: BASCOM-AVR Posted: Thu Feb 22, 2024 10:13 am Subject: Mcucsr: 2.0.8.6 - Does not work, 2.0.8.5 - ALL OK |
check the config watchdog help. |
Topic: Fuzzy Yacht Autopilot |
albertsm
Replies: 10
Views: 558
|
Forum: Share your working BASCOM-AVR code here Posted: Tue Feb 20, 2024 8:31 pm Subject: Fuzzy Yacht Autopilot |
thanks for sharing. I have no experience with this but i am sure it is of interest to others. lets see |
Topic: Bootloader on 328P |
albertsm
Replies: 5
Views: 277
|
Forum: BASCOM-AVR Posted: Tue Feb 20, 2024 8:27 pm Subject: Bootloader on 328P |
'write one or more pages
Writepage:
If Bkind = 0 Then
For J = 1 To 128 Step 2 'we write 2 bytes into a page
Vl = Buf(j) : Vh = Buf(j ... |
Topic: Lookup() - number of CPU cycles to execute seems high at 40 |
albertsm
Replies: 27
Views: 886
|
Forum: BASCOM-AVR Posted: Mon Feb 19, 2024 8:22 pm Subject: Lookup() - number of CPU cycles to execute seems high at 40 |
small note : not all processors support movW. the DAT file contains MOVW=1 if the movw is supported.
lpm on older processors only support loading into R0. later processors have the instructions to l ... |
Topic: Lookup() - number of CPU cycles to execute seems high at 40 |
albertsm
Replies: 3
Views: 260
|
Forum: BASCOM-AVR old unsupported versions Posted: Mon Feb 19, 2024 2:53 pm Subject: Lookup() - number of CPU cycles to execute seems high at 40 |
My first attemp to speed up things would be eliminating all calculations by using a precalculated table.
In your case I would go with an DWord-Table that contains the complete 32Bit you want to sen ... |
Topic: Lookup() - number of CPU cycles to execute seems high at 40 |
albertsm
Replies: 27
Views: 886
|
Forum: BASCOM-AVR Posted: Mon Feb 19, 2024 2:48 pm Subject: Lookup() - number of CPU cycles to execute seems high at 40 |
i explain how lookup works. for your micro that is.
- the address is needed for the start of the table. either in flash or ram. that requires 2 LDI instructions.
- an offset need to be added so in ... |
Topic: Bootloader on 328P |
albertsm
Replies: 5
Views: 277
|
Forum: BASCOM-AVR Posted: Mon Feb 19, 2024 1:15 pm Subject: Bootloader on 328P |
#if Loaderchip = 328 'Mega328
$loader = $3c00 'this address you can find in the datasheet
'the loader address i ... |
Topic: Lookup() - number of CPU cycles to execute seems high at 40 |
albertsm
Replies: 27
Views: 886
|
Forum: BASCOM-AVR Posted: Mon Feb 19, 2024 1:12 pm Subject: Lookup() - number of CPU cycles to execute seems high at 40 |
you should include the used processor. best way is $regfile with the value.
also, it is best to shrink the code to the essential part.
what is important : the used processor. the data type of the ... |
Topic: Lookup() - number of CPU cycles to execute seems high at 40 |
albertsm
Replies: 3
Views: 260
|
Forum: BASCOM-AVR old unsupported versions Posted: Mon Feb 19, 2024 12:38 pm Subject: Lookup() - number of CPU cycles to execute seems high at 40 |
the 40 is correct.
you best post a small sample that includes info about processor : $regfile
and where the used variables are dimmed.
depending on the used processor it can probably be done qui ... |
Topic: ATTINY1624/1626/1627 series programming possible? |
albertsm
Replies: 4
Views: 334
|
Forum: BASCOM-AVR XTINY/MEGAX/AVRX Posted: Mon Feb 12, 2024 9:51 am Subject: ATTINY1624/1626/1627 series programming possible? |
pic-ify, haha. yes that is how it looks. but the STC 8051 also look like that. that is why i will keep that simple for starters.
i get that there are different processors with different memory size. ... |
Topic: AVRISP mkII on Windows 11 |
albertsm
Replies: 4
Views: 334
|
Forum: AVR Posted: Sun Feb 11, 2024 4:05 pm Subject: AVRISP mkII on Windows 11 |
Good that it works.
User EDC has a link for the driver package if i remember correct. |
Topic: AVRISP mkII on Windows 11 |
albertsm
Replies: 4
Views: 334
|
Forum: AVR Posted: Sun Feb 11, 2024 1:10 pm Subject: AVRISP mkII on Windows 11 |
that is a very old version(avr studio) . W11 probably does not support it. you best install a newer driver (avr studio) to get the device working.
atmel has some link for downloading only the driver ... |
Topic: ATTINY1624/1626/1627 series programming possible? |
albertsm
Replies: 4
Views: 334
|
Forum: BASCOM-AVR XTINY/MEGAX/AVRX Posted: Sun Feb 11, 2024 1:04 pm Subject: ATTINY1624/1626/1627 series programming possible? |
there is no DAT file yet for this series.
it differs from the normal/existing xtiny series.
Only a DAT is not enough. adding support for a series is a whole process :
- study PDF for differences
... |
Topic: dim and include declaration in a include file |
albertsm
Replies: 7
Views: 426
|
Forum: BASCOM-AVR Posted: Fri Feb 09, 2024 3:17 pm Subject: dim and include declaration in a include file |
the variables can not be dynamic declared. they must be known at compile time.
this will not work:
if a=1 then
dim b as byte
else
dim b as word
end if
you can of course #IF with conditio ... |
|