HOW TO SET THE ADDRESS IN DTC WHEN USING CS + FOR CA?

Using rl78/f13 in CS+ FOR CA.

In CS+ for CA ,when using DTC It seems that I must set source address(SRC) and destination address(DST) using hard coded address!where can i set the address using variable's address instead of hard-coded address?

I have found that using hard-coded address during my test  may result in memory conflict(SRC/DST share the same RAM with other variable).How to avoid it?

Trying to set the source address or destination address with variable address in generator code(CS+ generate),DTC seems work,but CS+ give warning,Coulde this way work without other hidden danger?

 

THANKS!!!

  • Don't use CA78K0R.

    Do you want to use DTC for ADC result storage?

    In this case DTC source is a fixed address (AD result register ADCR).

    For destination you can define an array, place this at a fixed address, and use this address as destination address.

    #pragma address ADC_Result=0x0FDF00

    unsigned char ADC_Result[0x08];