Author |
Message |
Topic: Interrupt every 4 microseconds |
albertsm
Replies: 1
Views: 39
|
Forum: BASCOM-AVR old unsupported versions Posted: Tue Mar 26, 2024 3:34 pm Subject: Interrupt every 4 microseconds |
you need to adjust the timer count value.
now it count to 255 and it flows over.
so preset it so it overflows earlier
when time is 16 us now, divide 256 by 4 is 64 times 3 makes 192
also set th ... |
Topic: UART buffer ISR flags |
albertsm
Replies: 3
Views: 83
|
Forum: BASCOM-AVR Posted: Tue Mar 26, 2024 2:53 pm Subject: UART buffer ISR flags |
when using buffered serial, input, inkey,waitkey etc. take the data from the buffer. so they do not change any of the uart registers.
the buffered serial works independent. |
Topic: 2D array vs bootyfab |
albertsm
Replies: 4
Views: 101
|
Forum: BASCOM-AVR Posted: Sun Mar 24, 2024 11:27 am Subject: 2D array vs bootyfab |
yes multi dim requires more code. for an array(a,b,c,d) all the indexes must be multiplied with the size and added to get the proper memory location. |
Topic: UC1608 update lib for 8bit communication |
albertsm
Replies: 1
Views: 80
|
Forum: Share your working BASCOM-AVR code here Posted: Sun Mar 24, 2024 10:31 am Subject: UC1608 update lib for 8bit communication |
thanks for sharing your update and work.
I will move it to the Share your code section |
Topic: 2D array vs bootyfab |
albertsm
Replies: 4
Views: 101
|
Forum: BASCOM-AVR Posted: Sun Mar 24, 2024 10:29 am Subject: 2D array vs bootyfab |
i do not see the point of the select case, you can calculate the index right?
if you do not want to multiply you can also use a DATA table with the offset. then use lookup() get the index and add acc ... |
Topic: Array Index Out of Range |
albertsm
Replies: 4
Views: 171
|
Forum: BASCOM-AVR Posted: Fri Mar 22, 2024 11:00 am Subject: Array Index Out of Range |
i do not know the Frankencode. But in order to allow for different base there is an internal variable named _BASE.
this is a global constant. it could be a variable to allow dynamic change but i do ... |
Topic: BASCOM Compiler Version Reporting |
albertsm
Replies: 3
Views: 86
|
Forum: BASCOM-AVR old unsupported versions Posted: Thu Mar 21, 2024 8:41 pm Subject: BASCOM Compiler Version Reporting |
some directive could be added like $halt
but as you do not use the latest version it will not help much. |
Topic: PULSEOUT problem |
albertsm
Replies: 6
Views: 232
|
Forum: BASCOM-AVR Posted: Thu Mar 21, 2024 8:38 pm Subject: PULSEOUT problem |
yes MWS is right. there was no provision for extended ports (ports with a word address).
to be efficient addressable most ports are on a low address. but newer chips used extended space for addition ... |
Topic: PULSEOUT problem |
albertsm
Replies: 6
Views: 232
|
Forum: BASCOM-AVR Posted: Mon Mar 18, 2024 10:07 am Subject: PULSEOUT problem |
as always, produce a small example that can be tested. |
Topic: Array Index Out of Range |
albertsm
Replies: 4
Views: 171
|
Forum: BASCOM-AVR Posted: Wed Mar 13, 2024 10:57 am Subject: Array Index Out of Range |
the rule here is to post complete code, small as possible that can be checked. not some fragments.
you best check config base option. it might be used to set base to 1, and then in your other code ... |
Topic: Gosub without return questions. |
albertsm
Replies: 3
Views: 123
|
Forum: BASCOM-AVR Posted: Tue Mar 12, 2024 12:38 pm Subject: Gosub without return questions. |
simple rule : every gosub must have a RETURN at some point. Then it continues on the next line of code.
The processor hardware pushes the address of the next code on the hardware stack before it jump ... |
Topic: Shifted cursor in dead code |
albertsm
Replies: 2
Views: 106
|
Forum: BASCOM-AVR Posted: Fri Mar 08, 2024 9:24 am Subject: Shifted cursor in dead code |
I do not know if you have Italic selected for Dead Code? you might try to turn it off.
There is also a setting 'Use monofont' you can try.
Dead code is intended to be used when your project is do ... |
Topic: Fuse Questions |
albertsm
Replies: 10
Views: 186
|
Forum: BASCOM-AVR Posted: Fri Mar 08, 2024 9:17 am Subject: Fuse Questions |
I dont know why it works like that but this is how it is, so $prog is used for programming next chip
That is exact the intention. It is used for small production programming.
And to make sure it ... |
Topic: size of DATA table |
albertsm
Replies: 7
Views: 168
|
Forum: BASCOM-AVR Posted: Wed Mar 06, 2024 2:35 pm Subject: size of DATA table |
no but you can put the data lines in a binary file and use $INC which can optional include the size. |
Topic: considerations about solar energy |
albertsm
Replies: 14
Views: 2494
|
Forum: Green Energy Posted: Sun Mar 03, 2024 4:32 pm Subject: considerations about solar energy |
that was 2005 that is a long time ago. science advanced and still is.
if you talk about bad for the environment : the war from Russia against Ukraine is way more worse for the environment. Not talkin ... |
|