Reply
Highlighted
Posts: 15
Registered: ‎03-16-2017
Accepted Solution

Port issues

Well, this are two interesting issue I'm currently facing, while handling the general i/o ports:

  1. Port 1.3 remains fixed at 1
  2. Port 0.0 when set to 0 in debugging mode, causes the debugger to disconnect. When the debugger runs in continuous mode.. i.e, the breakpoints are disabled; the debugger continues to work.

The required pins are configured as digital and push-pull modes. 

Posts: 1,735
Registered: ‎10-14-2014

Re: Port issues

Could I ask a question? Which device you are using? are you working on a board self-made by yourself or a DK barod from Silabs?

 

 

WeiguoLu
Posts: 15
Registered: ‎03-16-2017

Re: Port issues

I'm using 8051f350 on my self made board. Just to clarify... rest of the port 1 pins are are working as expected.
Posts: 1,735
Registered: ‎10-14-2014

Re: Port issues

is it ok for you to upload you source code and maybe someone could reproduce the issue. it also help if you could upload your schematic file(pdf frefered).
WeiguoLu
Posts: 15
Registered: ‎03-16-2017

Re: Port issues

for trial i used the example for port I/O with minor tweaking. I attach my schema and the code in attachment.

Posts: 1,735
Registered: ‎10-14-2014

Re: Port issues

I did not see anything wrong in your attached code, but I prefer you could upload the code that blink p1.3 that you think not working as you have expected. 

In the attached code I did not see any code that operate/toggle P1.3.

 

WeiguoLu
Posts: 1,735
Registered: ‎10-14-2014

Re: Port issues

[ Edited ]

@shambo

On the F350 TB board there is no problem to toggle the P1.3.

I tried attached code with simplicity studio.

 

I also tried to toggle p0.0, could not reproduce the issue you observed.

Change the LED2 to P0.0 in the attached code to test the P0.0 toggle.

 

WeiguoLu