Quantcast
Channel: MCS Electronics Forum
Browsing all 20577 articles
Browse latest View live
↧

BASCOM-AVR : Inline assembler: Possible to specify code placement? : REPLY

it is not a good idea to use the vector space for normal code. the RETI protect you so that unwanted interrupts are still handled correctly without causing problems. i have always understood (since...

View Article


BASCOM-AVR : Inline assembler: Possible to specify code placement? : REPLY

I doubt the usefulness and whether it is worth the efforts. You save a few bytes and the whole benefit is strongly depending on where the interrupt vector is located in the table, at start or towards...

View Article


BASCOM-AVR : Inline assembler: Possible to specify code placement? : REPLY

hi MWS. yes i agree but for xmega when using at the boot area it could safe space. And while a great way to get crazy executing code, it might be worth the effort to test it.

View Article

BASCOM-AVR : Bootloader suddenly stopped working? : REPLY

Finally I got an USB ISP programmer and adapted it to the board (this was easier than I thought because all the signals needed are available on the IC sockets). With the ISP programmer I could...

View Article

BASCOM-AVR : #IF please explain : NEWTOPIC

Hi, short question. What does the symbol before IF mean ? What does the code below doing ? [code:1:21b2651161] #if Cdebug Print "init W3100A" #endif[/code:1:21b2651161]...

View Article


BASCOM-AVR : #IF please explain : REPLY

you mean your F1 key is defect?

View Article

BASCOM-AVR : Bootloader suddenly stopped working? : REPLY

i do not know which version of the bootloader was used in your product. but early version do not protect against overwriting the boot area. later versions have : [code:1:b599d3d237] If Page <...

View Article

BASCOM-AVR : #IF please explain : REPLY

Sorry for my question. Of Course i use F1 but i don't understand

View Article


BASCOM-AVR : #IF please explain : REPLY

from the help: Action Conditional compilation directives intended for conditional compilation. Syntax #IF condition #ELSEIF condition #ELSE #ENDIF Remarks Conditional compilation is supported by the...

View Article


BASCOM-AVR : Inline assembler: Possible to specify code placement? : REPLY

As always, you get first-class answers in this forum. :-) Before you go ahead and implement this, please let me explain why I am asking odd questions about inline assembly: I am currently working on...

View Article

BASCOM-AVR : #IF please explain : REPLY

If i understand well, when Cdebug = 1 then condition will be compiled. I don`t understand where i can use it

View Article

BASCOM-AVR : Inline assembler: Possible to specify code placement? : REPLY

the serialin code you can lookup the mcs.lib. i dont know if you realize but serialin and printbin are already asm routines. there are more ways to rome, and for example waitms does a 0 check. when...

View Article

BASCOM-AVR : #IF please explain : REPLY

There are a lot of options that you probably will not use :-) One example is when you want to include debug code in your code like : const cdebug=1 #if cdebug print "started" #endif here goes some...

View Article


BASCOM-AVR : LCD 20*4, C2004A, on i2C. E, E1, E2 signals and PCF8574 prob :...

Code from Marcel Kroll (in attached archive) really working in hardware and software Proteus emulation. With software and hardware I2C....

View Article

BASCOM-AVR : Inline assembler: Possible to specify code placement? : REPLY

Thanks for the input. It should save me some time in the coming work. I don't disagree with you. I just want to gain a rough understanding of how much you "lose" by using generic library code /...

View Article


BASCOM-AVR : Inline assembler: Possible to specify code placement? : REPLY

it is relatively simple to migrate to xmega. in fact the dat files also contain UDR/USR aliases for the uarts. i would suggest only to create an asm routine for specific purpose, for example a time...

View Article

BASCOM-AVR : help with automotive CAN please : NEWTOPIC

Hello I have an AT90CAN128 running and picking up unsolicited responses from a Holden Rodeo SUV using the Elektorb.bas sample. eg ID 000000C9 hex data 80 10 70 00 1E 03 However I can not get it to...

View Article


BASCOM-AVR : help with automotive CAN please : REPLY

I'm getting it :oops: send 8 byte query to the ECU (7DF) 8 byte response on ID (7E8)

View Article

BASCOM-AVR : #IF please explain : REPLY

okay. Now It is clear for me. Thanks.

View Article

BASCOM-AVR : help with automotive CAN please : REPLY

have a look at the forum at another CAN topic where i explained how to do it. i wanted to do this myself and now have a connector, but no time. in short, you need to reconfig the mob and send again...

View Article
Browsing all 20577 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>