PRTXDR REGISTER

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

In the Technical reference manual:

   

http://www.cypress.com/?docID=15539

   

in page 149 states:

   

 

   

7:0 Data[7:0]

   

 

   

 

   

 

   

What means that exactly? I input PRTXDR |=0xFF  (been X from 0 to 4) and I didn't read a high level at any port writed. What I doing wong? have I to put a special command to stand the value in the pin?

   

 

   

Write value to port or read value from port.

   

Reads return the state of the pin, not the value in the

   

PRTxDR register.

0 Likes
4 Replies
MR_41
Employee
Employee
First like received

You have to set the GPIO pins to StdCPU and drive mode to anything other than HighZ and HighZ Analog.  Usually, the recommended drive mode is Strong.  Check out the below articles in my blog.  These articles provide basic information about GPIOs.

   

PSoC GPIO Demystified - Part1

   

PSoC GPIO Demystified - Part 2

   

Best Regards,

   

Ganesh

0 Likes
Anonymous
Not applicable

I just did that and It works. Thanks for the info.

0 Likes
Anonymous
Not applicable

Apart that, how many current provide a digital output handled manually by means PRTXDR register. My datasheet tells the analog column buffers provided 30mA:

   

""

   

High current output drivers (two with 30 mA drive as a PSoC

   

Core Resource)

   

 

   

What about the outputs handled by software?

0 Likes
MR_41
Employee
Employee
First like received

The Analog output buffers have the 30mA drive capability.  But these pins are limited to the Analog output pins that are connected to the analog output buffers.  When analog output is not enabled, all GPIO pins are capable of sourcing 15mA and sinking 25mA of current.

0 Likes