This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

About P0 and P1

In my application with c167, I want to use PORT0 and PORT1 as general I/O , but it dosen't work. In my application ,I made the
pin EA keep a high level ,and in the code i
initialization the BUSSCON0 as 0 , then i used the ports , but i faild. pls help me ,
and sorry for my poor english! thank you !!

Parents
  • MY CODE is as follows:

    bset P1L.1
    bset DP1L.1
    bset P6.7
    BSET DP6.7
    LGW:
    bclr P1L.1
    NOP
    NOP
    NOP
    NOP
    BCLR P6.7
    NOP
    NOP
    nop
    nop
    nop
    bset P1L.1
    NOP
    NOP
    nop
    nop
    nop
    BSET P6_7
    jmpr cc_UC ,LGW

    the same code with P1L.1 and P6.7 ,has
    different result , P6.7 works well , but P1l.1 doesn't work .
    sorry for my poor english!

Reply
  • MY CODE is as follows:

    bset P1L.1
    bset DP1L.1
    bset P6.7
    BSET DP6.7
    LGW:
    bclr P1L.1
    NOP
    NOP
    NOP
    NOP
    BCLR P6.7
    NOP
    NOP
    nop
    nop
    nop
    bset P1L.1
    NOP
    NOP
    nop
    nop
    nop
    BSET P6_7
    jmpr cc_UC ,LGW

    the same code with P1L.1 and P6.7 ,has
    different result , P6.7 works well , but P1l.1 doesn't work .
    sorry for my poor english!

Children