Author |
Message |
Topic: issue with serout inverted |
albertsm
Replies: 15
Views: 374
|
Forum: BASCOM-AVR old unsupported versions Posted: Thu Apr 18, 2024 9:45 am Subject: issue with serout inverted |
sorry that is not allowed.
On the MCS forum(this forum) you can only download attachments when you have a license.
MCS support and service is mainly intended for customers with a license.
The basc ... |
Topic: issue with serout inverted |
albertsm
Replies: 15
Views: 374
|
Forum: BASCOM-AVR old unsupported versions Posted: Wed Apr 17, 2024 8:14 pm Subject: issue with serout inverted |
thanks for letting me know. it will be in the 2087 release. |
Topic: issue with serout inverted |
albertsm
Replies: 15
Views: 374
|
Forum: BASCOM-AVR old unsupported versions Posted: Wed Apr 17, 2024 12:03 pm Subject: issue with serout inverted |
attached a mod you can test.
just put the lib in the LIB folder and include it with $LIB "serout.lib" the compiler will use this code instead of the code in MCS.lib |
Topic: issue with serout inverted |
albertsm
Replies: 15
Views: 374
|
Forum: BASCOM-AVR old unsupported versions Posted: Wed Apr 17, 2024 11:30 am Subject: issue with serout inverted |
I got a message from MWS who found the problem. The problem is that the pin is not set to the correct logic level at the start in inverted mode.
then there is some decoding from the parameters which ... |
Topic: issue with serout inverted |
albertsm
Replies: 15
Views: 374
|
Forum: BASCOM-AVR old unsupported versions Posted: Tue Apr 16, 2024 8:12 pm Subject: issue with serout inverted |
you say that without INVERTED option it works.
can you instead of the printbin, show serout wihtout the inverted option?
when i simulate i get both serout (with and without inverted) having the same ... |
Topic: issue with serout inverted |
albertsm
Replies: 15
Views: 374
|
Forum: BASCOM-AVR old unsupported versions Posted: Tue Apr 16, 2024 10:02 am Subject: issue with serout inverted |
$swstack = 10
this seems low , please try with a higher value like 16
i checked the code in the lib and i see no obvious reason for a difference in timing between inverted and non inverted.
yo ... |
Topic: Problem compiling with Short variable |
albertsm
Replies: 1
Views: 365
|
Forum: BASCOM-AVR Posted: Fri Mar 29, 2024 9:34 pm Subject: Problem compiling with Short variable |
ERAM variables are only intended as a simply replacement/alternative to readeeprom and writeeeprom.
they do not act as normal variables.
it should be documented under DIM in the help.
in short : y ... |
Topic: Forum is Offline |
albertsm
Replies: 7
Views: 2314
|
Forum: GERMAN BASCOM Forum Posted: Fri Mar 29, 2024 11:42 am Subject: Forum is Offline |
thanks for the warning. it is up again. |
Topic: Interrupt every 4 microseconds |
albertsm
Replies: 1
Views: 309
|
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: 387
|
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: 354
|
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: 377
|
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: 354
|
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: 415
|
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: 282
|
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. |
|