Hello,
I have connected a resolver controller on my EMIF1 16 bits data and address lines ( EM1BA1, A0 to A7).
I want to adress the first address (AM1BA1 = 0, A0 = 0)
I dont see the AM1BA1 go low when i want to read to adress 0x00.
i have declared in my .cmd:
EMIF_CS2 : origin = 0x100000, length = 0x000200 /* EMIF CS2 - data space */
RDC_SECTION : > EMIF_CS2, PAGE = 1
then,
in my.c file:
#pragma DATA_SECTION(rdc_mode, "RDC_SECTION");
volatile st_rdc_mode_settings rdc_mode;
when reading:
/* RDC: Read position (address 0,0) and velocity values address (1,0) */
XTHETA_RDC = rdc_mode.normal_position_out;
POS_RDC =
//THETA_RES = (XTHETA_RDC * RDC_THETA_QUANT_TO_RAD); // rad.
XOMEGA_RDC = rdc_mode.normal_velocity_out;
thank you,
regards
PA Nicoletti.