PSoC 4000 TCPWM register TCPWM_CNT_TR_CTRL0 - bit field definitions

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

cross mob
BiBi_1928986
Level 7
Level 7
First comment on blog 500 replies posted 250 replies posted

Where are the 4-bit fields defined for PSoC 4000 TCPWM register TCPWM_CNT_TR_CTRL0?  The fields are described as having 16 values (I suspect there are really only 5 or 6 values implemented), but there's no table to relate the bits to the function they represent.  I've searched the Architecture TRM and the Registers TRM.  I also checked the TCPWM component API document.

I have to use one type of Start trigger when the 4000 firsts starts up and a different Start trigger later.  Hence, I need to know the values to put into these fields.

BTW, this data is also missing in the 4100/4200 TRM doc's.

Thanks, Bill

0 Likes
1 Solution
BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hi Bill,

You can find this information in the PSoC 4000 device datasheet, pinouts sections ( Pg no 7 , Table 1, TCPWM signals column):

http://www.cypress.com/file/138646/download 

Thanks,

Bragadeesh

Regards,
Bragadeesh

View solution in original post

0 Likes
4 Replies
BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hi Bill,

You can find this information in the PSoC 4000 device datasheet, pinouts sections ( Pg no 7 , Table 1, TCPWM signals column):

http://www.cypress.com/file/138646/download 

Thanks,

Bragadeesh

Regards,
Bragadeesh
0 Likes
BiBi_1928986
Level 7
Level 7
First comment on blog 500 replies posted 250 replies posted

Hello.

Thank you for the answer.  I never would have made that 'connection' between the datasheet and the register definition document.  Maybe as an improvement to the register doc, the wording could reflect the association to the datasheet by simply adding the word "pins" in the description.  Example, "Selects one of 16 input trigger pins as a start trigger", etc...

That solves the mystery for PSoC 4000.

According to PSoC 4200 Architecture TRM:

http://www.cypress.com/file/126171/download

page 168 (Acrobat page 172), I can use a GPIO pin as the input trigger connected to DSI bus.  But, how does the selected GPIO get related to setting the bit fields in TCPWM_CNT_TR_CTRL0?  There must be a mapping function somewhere?

Thanks,

            Bill

0 Likes

Hi Bill,

In 4200, you can make any GPIO pins as a trigger input source. It is a mistake in the architecture TRM document and will be fixed soon.

Also regarding the 4000, we have made an internal ticket to update the document as you rightly suggested.

Regards,

Bragadeesh

Regards,
Bragadeesh
0 Likes

Hello Bragadeesh.

Thank you for clarifying the TRM's for me.

Bill

0 Likes