Author |
Message |
Topic: BASCOM Compiler Version Reporting |
laborratte
Replies: 3
Views: 84
|
Forum: BASCOM-AVR old unsupported versions Posted: Thu Mar 21, 2024 1:24 am Subject: BASCOM Compiler Version Reporting |
the inbuild constant _BUILD holds the compiler version as number. |
Topic: ISR stacking |
laborratte
Replies: 5
Views: 173
|
Forum: BASCOM-AVR Posted: Sun Mar 17, 2024 2:20 pm Subject: Re: ISR stacking |
Disadvantage is, import goes not that far to allow Bascom's variables in a 'watch'-window, the only way is then to open a memory window within Studio and interpret the byte-based results oneself.
Thi ... |
Topic: Lookup() - number of CPU cycles to execute seems high at 40 |
laborratte
Replies: 3
Views: 260
|
Forum: BASCOM-AVR old unsupported versions Posted: Mon Feb 19, 2024 1:09 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: RC5 transmitting as a background process |
laborratte
Replies: 15
Views: 952
|
Forum: Share your working BASCOM-AVR code here Posted: Thu Jan 25, 2024 8:02 pm Subject: RC5 transmitting as a background process |
IMHO it is a "no go" using nosave and popping/pushing by hand when using bascom statements.
As Mark pointed out, there is a chance that the registers will change in future and not even that, they c ... |
Topic: Getting a more random seed from the ADC |
laborratte
Replies: 8
Views: 710
|
Forum: BASCOM-AVR Posted: Wed Dec 13, 2023 11:37 pm Subject: Getting a more random seed from the ADC |
(...) with AVR Studio 4 I was not able to set a breakpoint (...)
oh yes, this sounds very familiar to me |
Topic: Getting a more random seed from the ADC |
laborratte
Replies: 8
Views: 710
|
Forum: BASCOM-AVR Posted: Wed Dec 13, 2023 4:43 pm Subject: Getting a more random seed from the ADC |
@MWS
I agree with point 1 & 3 (and in addition I ask myself: why the heck does this loop has to run 637500 times?), but at least my compiler (2.0.8.1) translates
adc_word = getadc(0)
... |
Topic: DMX timeout |
laborratte
Replies: 3
Views: 937
|
Forum: BASCOM-AVR Posted: Tue Nov 14, 2023 4:22 pm Subject: DMX timeout |
There is no timeout implemented.
But, assumiing your program has a lot of idle time when only managing a fog machine: you can check the internal var _dmx_sync, which changes from 0 to 3 during a p ... |
Topic: Why does my code keep restarting? |
laborratte
Replies: 6
Views: 1856
|
Forum: BASCOM-AVR Posted: Mon Oct 30, 2023 7:01 pm Subject: Why does my code keep restarting? |
I'm pretty shure your program runs.
As you described:
So the first loop just sits and checks for the start button to be pressed then executes the code below.
The loop below starts with the te ... |
Topic: Why does my code keep restarting? |
laborratte
Replies: 6
Views: 1856
|
Forum: BASCOM-AVR Posted: Mon Oct 30, 2023 5:11 pm Subject: Re: Why does my code keep restarting? |
When I run this code, it keeps restarting the microprocessor.
Any ideas why?
You programmed it that way:
(...)
Start:
(...)
IF StartButton = 1 THEN GOTO Start ... |
Topic: rs485 timing, first character |
laborratte
Replies: 6
Views: 2158
|
Forum: BASCOM-AVR XTINY/MEGAX/AVRX Posted: Sat Jun 24, 2023 2:59 pm Subject: rs485 timing, first character |
When using the BYTEMATCH option, you must preserve the registers you alter. If you do not know which one, use PUSHALL and POPALL.
I.E.
Serial0CharMatch:
pushall
'Cabinet Command Ne ... |
Topic: Understanding interrupts |
laborratte
Replies: 18
Views: 7361
|
Forum: BASCOM-AVR Posted: Wed May 10, 2023 9:32 pm Subject: Understanding interrupts |
Any idea why adding Waitms 1 makes a difference?
Mechanical encoders do bounce, the datasheet should tell you how long the bouncing/chattering period is. For an [url=https://tech.alpsalpine.co ... |
Topic: Understanding interrupts |
laborratte
Replies: 18
Views: 7361
|
Forum: BASCOM-AVR Posted: Wed May 10, 2023 10:35 am Subject: Understanding interrupts |
(...)
Sometimes the encoder actually works. Mostly the screen is flickeriing like there's input, but there isn't. Sometimes moving the encoder once starts it flipping through menus. Any idea what I ... |
Topic: 1PPS signal Int2 |
laborratte
Replies: 12
Views: 3209
|
Forum: BASCOM-AVR Posted: Mon Jun 27, 2022 10:49 am Subject: 1PPS signal Int2 |
How long is the 1PPS pulse of yor GPS Device? At least 50ns is needed for MEGA324A. Maybe your optocoupler works because the pulse is stretched by this relatively slow device. |
Topic: xmega encoder |
laborratte
Replies: 9
Views: 2092
|
Forum: BASCOM-AVR Posted: Tue Jun 07, 2022 2:04 pm Subject: xmega encoder |
The [url=https://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-42005-8-and-16-bit-AVR-Microcontrollers-XMEGA-E_Manual.pdf]Series E Manual ist not clear about that. On page 85 it says, that you can ha ... |
Topic: Yet another little Bug (nothing Fancy) |
laborratte
Replies: 13
Views: 1216
|
Forum: BASCOM-AVR Posted: Thu Mar 31, 2022 8:51 pm Subject: Yet another little Bug (nothing Fancy) |
@MWS: I think the compiler already has AI which drives users completely nuts when they do too stupid things... |
|