This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

problem with GPIO interrupt Register



 Thanks I got ur reply... Now I have Enabled interrupt using HWREG model. and got the result.  On below program, i have problem with the line which are highlighted in red.  For registering interrupt i m using inbuilt  IntRegister() function.  Instead of this inbuilt function, what i should have to use while accessing the HWREG Access Model

I'd like to register the interrupt using HWREG access model. Can u please send me the HWREG access model example syntax for the line highlighted in RED

//GPIOIntDisable(GPIO_PORTE_BASE, GPIO_INT_PIN_4);

HWREG(GPIO_PORTE_BASE + GPIO_O_IM)= 0x00;//inrupt disable

//GPIOIntClear(GPIO_PORTE_BASE, GPIO_INT_PIN_4);
HWREG(GPIO_PORTE_BASE + GPIO_O_ICR)= 0xFF;//Intrupt Clear

GPIOIntRegister(GPIO_PORTE_BASE, GPIO_IntHandler);

//GPIOIntTypeSet(GPIO_PORTE_BASE, GPIO_PIN_4, GPIO_FALLING_EDGE);
HWREG(GPIO_PORTE_BASE + GPIO_O_IS)= 0x00;// Edge Sensitive
HWREG(GPIO_PORTE_BASE + GPIO_O_IEV)= 0x00;//Falling edge

//GPIOIntEnable(GPIO_PORTE_BASE, GPIO_INT_PIN_4);
HWREG(GPIO_PORTE_BASE + GPIO_O_IM)= GPIO_PIN_4;

  • Hi Rukmani,

    Please stop making several posts for every reply you make!
    It just makes it hard to who answered to follow up, you fragment info and will get you to your answer slower.
    If you want to know what to use instead of Tivaware functions just consult the source files...
  • Hello Rukmani,

    I believe a lot of folks have shown an interest in DRM. I would like to drive this message home, that we may deprecate the DRM completely., so that any future release will not be any longer working for DRM style of access. Also any change of register name would break your applications.
    So suggest using TivaWare.

    Regards
    Amit
  • I don't quite understand the statement Amit. Are you saying that the use of DRM above will not be possible?
    I can say 1 or 2 applications that I need direct register access for a small piece of code. It was just a small handler nothing else, but with Tivaware it would just not run fast enough.

    I can say that in most embedded systems classes it's used DRM over libraries, for learning purposes I guess, still have yet to ask that question to the teacher... Might be the reason why so many insist on using that over libraries.
  • Hello Luis,

    There are two methods: DRM and HWREG. The DRM style is planned to be deprecated. The HWREG will not as it forms the basis of TivaWare.

    Regards
    Amit
  • Ah ok, didn't knew it was distinguished that way.

    I like the HWREG better :D