programacion pic pic

Upload: hector-ramos

Post on 22-Feb-2018

216 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/24/2019 Programacion Pic Pic

    1/2

    // constantes con la secuencia de pasos

    const unsigned short PASOS [] =

    {

    0b00000001,

    0b00000010,

    0b00000100,

    0b00001000

    //

    };

    oid !ain " oid #

    {

    //$eclaracion de ariables%

    unsigned short PASO=0;

    // inicio del puerto

    &'(S) = 0*+0;

    PO'&)= 0;

    OP&(O '-. = 0; // A&(A AS '-S% pull up%

    2hile"1#

    {

    // P'(3-' )4- PA'A .('A' - 4 S-&($O PO' - P(

    2hile")utton"5 PO'&), 6,100, 0##

    {

    PO'&) = PASOS[PASO];

    PASO77;

    i8"PASO==9# PASO=0;

    }

  • 7/24/2019 Programacion Pic Pic

    2/2

    //)4- PA'A .('A' - - S-&($O O&'A'(O PO' - P(

    2hile")utton"5 PO'&), :,100, 0##

    {

    PO'&) = PASOS[PASO];

    PASO;

    i8"PASO==;

    //

    }

    }

    }