Skip to main content
Visitor II
September 22, 2004
Question

use P6.2 as discrete I/O on ST10F276

  • September 22, 2004
  • 2 replies
  • 765 views
Posted on September 22, 2004 at 10:30

use P6.2 as discrete I/O on ST10F276

    This topic has been closed for replies.

    2 replies

    tom7Author
    Visitor II
    September 22, 2004
    Posted on September 22, 2004 at 10:07

    I have to use P6.2 as discrete I/O.

    The bus interface is configured for using two CS-signals therefore the

    P6.2 port pin should be available.

    Register RP0H is 0x00e2, so bus-cfg should be ok.

    When I try to access the pin, my system crashes.

    I looked at the disassembled opcode with my debugger how I'm accessing the

    pin :

    OR P6,#0x04

    OR DP6,#0x04

    AND P6,0xfffb <- here it crashes.

    I'm using Tasking v8.0 with xview rom-monitor debugger via ASC0 interface.

    Does someone has an idea what's going on there ?

    tom.

    tom7Author
    Visitor II
    September 22, 2004
    Posted on September 22, 2004 at 10:30

    Problem sorted out, it was a board ''feature'' .