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

Problem when using HOLD(P6.5) as I/O

I have a problem when using the hold line of my C167CR as normal I/O. I'm not very sure what is really going wrong.
When I program my firmware into flash and I want set P6.5(HOLD) as a pushpull output my program crashes after I write a '1' to this port. When I set the port to opendrain there is no problem.

I checked the following things:

- HLDEN bit in the PSW register is set to '0' as it should be.
- When I load my program into my Lauterbach emulator there is no problem.
- I see no strange things happening on the I/O line(looked with scope).
- I have no I/O connected to this line yet. I'm using only the HD200 test print of phytec with a phycore 167 microcontroller print.
- When I set any other I/0 pin at the same place in code there is no problem.

Because a lot of C167 knowledge is gathered here I thought maybe I could ask this question here. Anyone ideas?

Best regards,

Paul Krol