Jump to content
43oh

angel d

Members
  • Content Count

    8
  • Joined

  • Last visited

Posts posted by angel d

  1. in the arduino you can use the attachInterrup in this form you can chenge the state of led quhe push a botton

    int  bzero = 2, // El Pin 2  corresponde al botón(interrupcion)
    int  ledPin = 4;
    // La variable tipo volatile  que comunica entre la
    // función de interrupción y bucle principal (loop)
    volátile int etat = HIGH ;
    void  setup () {
    // El pin conectado al botón se abre en modo INPUT
    pinMode (Bzero, INPUT)  // Pin en modo entrada
    // Activación de la resistencia interna pull-up
    digitalWrite (Bzero, HIGH );
    // El pin está preparado para encender  el LED
    pinMode (ledPin, OUTPUT );
    // La interrupción  0 monitorea los cambios de estado del pin 2.
    attachInterrupt(0, inter0, CHANGE);
    } // fin de setup
    void  loop () {
    // No hacemos nada más que esperar …
    delay (30000);
    } // fin del bucle
    void  inter0 ()   {  // Se ejecuta cuando se detecta un cambio de estado del Pin 2
    etat =! etat  // Cambia el estado. De HIGH a LOW y de LOW a HIGH
    igitalWrite (ledPin, etat)   / / encender o apagar el LED
    } / / fin inter0

    but in tiva how can do some similar? and where is the pins to iterrupt in Tiva launchpad?

  2. Hi angel d

    Do you have TivaWare for C serise software 'SW-TM4C' ?

    you can download this site, http://www.ti.com/tool/sw-tm4c-drl

     

    SW-TM4C: is TivaWare for C Series Software SW-TM4C-DRL: is TivaWare™ Peripheral Driver Library for C Series SW-TM4C-USBL: is TivaWare™ USB Library for C Series SW-TM4C-GRL: is TivaWare™ for C Series Graphics Library

     

    Do you know 'Energia'? its more easy programing tool.

    Please check this site http://energia.nu/

     

    enjoy Tiva world!! :)

     

    hi pao

    hi iam new in this microcontroler, the true is to i dont be a master programing, im going to try the examples and see what happen,

    tanks for the information and if i have problems i call you :)

×
×
  • Create New...