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

configuration/downloading help

Having problems when debugging. Stepping halts when a line of code with port 3 is encountered (ie P3 = 0x07). I'm getting timeout error messages. Also, P1.7 stays on constantly, is this due to A17 being configured for this port bit? Are both problems due to board configuration? Any help with downloading my program into an external eprom is also appreciated. The microcontroller is a 80C251SB. I'm new at this and totally in the dark.

Parents
  • 1. If you configure P1.7 for A17 use, then you can't use it as a general purpose I/O pin. Since it's configured as an address line, it probably is wigglin' real fast and the LED just "appears" to stay on.

    2. If you use the on-chip serial port (on P3), writing a value to P3 interrupts the serial communication and probably makes you lose connection with the PC when debugging. To solve this problem, make sure you don't affect the serial port lines when you write to P3.

    Jon

Reply
  • 1. If you configure P1.7 for A17 use, then you can't use it as a general purpose I/O pin. Since it's configured as an address line, it probably is wigglin' real fast and the LED just "appears" to stay on.

    2. If you use the on-chip serial port (on P3), writing a value to P3 interrupts the serial communication and probably makes you lose connection with the PC when debugging. To solve this problem, make sure you don't affect the serial port lines when you write to P3.

    Jon

Children