- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Sirs and Madams,
We are developing PSoC4S(CY8C4126AXI-S443)) device using PSoC Creator IDE.
Also, I am using an external crystal for my PSoC4S.
According to PSoC4S Architecture TRM, I understand that I need to set ATRIM and WDTRIM.
For example, if We would like to set "ATRIM to 0x03" and "WDTRIM to 0x01", how should We set it in PSoC Creator?
There is a description of ATRIM and WTRIM at page 87 "9.2.4.1 ECO Trimming" in Architecture TRM , but We can't find a register that corresponds to Register TRM.
Also, what would happen if ATRIM and WDTRIM were a non-existent combination like "ATRIM:0x03" and "WDTRIM:0x02"?
It seems that the default settings are "ATRIM:0x03" and "WDTRIM:0x02".
/* PSoC 4100S Family PSoC 4 Architecture Technical Reference Manual (TRM) */
/* PSoC 4100S Family PSoC® 4 Registers Technical Reference Manual (TRM) */
Regards,
Solved! Go to Solution.
- Labels:
-
PSoC 4 MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @MaMi_1205306 ,
CY_SET_REG32(addr, value); is used to write a 32 bit vaule to the specified register.
/* Writing 0x03 to ATRIM and 0x01 to WDTRIM in the
EXCO_ECO_TRIM0 register (address: 0x402FFF00) */
CY_SET_REG32(0x402FFF00, ((0x03<<2) | 0x01) );
Best regards,
Rakesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @MaMi_1205306 ,
Kindly refer to the PSoC 4100S Plus Family register TRM to locate ECO Trim Register (EXCO_ECO_TRIM0) for ATRIM and WDTRIM.
Best Regards,
Rakesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Rakesh-san,
Thank you for your support.
If we would like to change "ATRIM to 0x03" and "WDTRIM to 0x01" to the EXCO_ECO_TRIM0 register, could you please tell me how to describe it in main.c?
/* Set ATRIM=0x03 and WDTRIM=0x01 */
EXCO_ECO_TRIM0 = 0x0000000D
Is the above description correct?
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @MaMi_1205306 ,
CY_SET_REG32(addr, value); is used to write a 32 bit vaule to the specified register.
/* Writing 0x03 to ATRIM and 0x01 to WDTRIM in the
EXCO_ECO_TRIM0 register (address: 0x402FFF00) */
CY_SET_REG32(0x402FFF00, ((0x03<<2) | 0x01) );
Best regards,
Rakesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Rakesh-san,
I appreciate your prompt response.
It was very helpful information.
Regards,