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

Other Parts Discussed in Thread: EK-TM4C1294XL

I got ur reply.. ya ok. below i have attached my program . On below program, i have problem with the line which are highlighted. WHile using the IntRegister() and  GPIOIntEnable() i got the result . Instaead of these inbuilt function, what i should have to use while accessing the Direct Register Access Model

//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)= 0xFF;//Intrupt Enable

  • Refer to the datasheet of the TM4C processor U programming for direct register access & program examples syntax.

    Tivaware support ask users to refrain from direct HW access model and refer to coding peripherals via Tivaware driver library.
  • Hi Rukmani,

    I agree with BP101, the datasheet is the best source to check info about direct register access, it has the initialization for the various peripherals features there.

    If you want to know what the Tivaware functions do just go to the source files and analyze them. If you have doubs in what are the registers, the register tables in the datasheet are your best friends.
  • Luis very nice work on GIT hub, see U added the right angle header to EK-TM4c1294xl for vector board. Like your LED project, are the (tStats) RGB variables of changes made public Cloud on Exosite?
  • Thanks BP101. I simply added the same in the examples.

    What do you mean about the RGB variables?

  • One can read/write any variable in a application into the Cloud, manipulate events with cell phone/computer or send alert messages, make changes to select variables after you add them from your program into a co-migrated Exosite program.

    So for fun you, other users could change the pattern of RGB output using a computer or cell phone connect to Exosite web. There are little over 2000 (users) EK-TM4C1294XL in the Cloud at any time and U can share or  make any (R/W event variable) public if chosen.

    https://ti.exosite.com/login

  • IoT is still a bit far away from me :x

    I still haven't picked up the TM4C1294 ethernet peripheral since I know nothing about the subject. Maybe some day I will include that in the project.
  • The sample Tivaware download programs Weather and Exosite IOT each load from LM Flash Programmer in heart beat. All you need is share ware Putty or YAT terminal emulator on the desktop to see UART messages piped through USB into virtual serial port Com3. Lots of fun to load these programs and see the true power of launch pad over Ethernet and the internet.

    U can easily set both up Luis, since you can make impressive web pages & strobe LEDS - this will be piece of cake for U, trust me. :)

    https://ti.exosite.com/login
  • I will have to check it out. Right now I'm buried in math to try things that are really new to me :p
    I wonder if all that will work under Linux

    About impressive web pages: *cough* google sites, no need for HTML.