LPC4076 FLASHTIM Discrepancy at 120MHz

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LPC4076 FLASHTIM Discrepancy at 120MHz

跳至解决方案
1,232 次查看
DougHoyt
Contributor II

We are running the LPC4076 at 120MHz with Power Boost ON.  The User Manual UM10562 rev 3 12 March 2014 states that the FLASHTIM value should be binary 0100: "Flash accesses use 5 CPU clocks. Use for up to 100 MHz CPU clock with power boost off (see Section 3.12.6). Use this setting for operation from 100 to 120 MHz operation with power boost on."

In the MCUXpresso Peripherals window, it says one of the possible values is "FLASH_ACCESSES_USE_4 (0x3) - Flash accesses use 4 CPU clocks. Use for up to 80 MHz CPU clock with power boost off. Use this setting for operation from 100 to 120 MHz operation with power boost on."

File sysctl_17xx_40xx.h has this enumerated list which agrees with MCUXpresso:

/**
* @brief FLASH Access time definitions
*/
typedef enum {
FLASHTIM_20MHZ_CPU = 0, /*!< Flash accesses use 1 CPU clocks. Use for up to 20 MHz CPU clock */
FLASHTIM_40MHZ_CPU = 1, /*!< Flash accesses use 2 CPU clocks. Use for up to 40 MHz CPU clock */
FLASHTIM_60MHZ_CPU = 2, /*!< Flash accesses use 3 CPU clocks. Use for up to 60 MHz CPU clock */
FLASHTIM_80MHZ_CPU = 3, /*!< Flash accesses use 4 CPU clocks. Use for up to 80 MHz CPU clock */
FLASHTIM_100MHZ_CPU = 4, /*!< Flash accesses use 5 CPU clocks. Use for up to 100 MHz CPU clock */
#if defined(CHIP_LPC177X_8X) || defined(CHIP_LPC40XX)
FLASHTIM_120MHZ_CPU = 3, /*!< Flash accesses use 4 CPU clocks. Use for up to 120 MHz CPU clock with power boot on*/
#else
FLASHTIM_120MHZ_CPU = 4, /*!< Flash accesses use 5 CPU clocks. Use for up to 120 Mhz for LPC1759 and LPC1769 only.*/
#endif
FLASHTIM_SAFE_SETTING = 5, /*!< Flash accesses use 6 CPU clocks. Safe setting for any allowed conditions */
} FMC_FLASHTIM_T;

On power up the part defaults to the latter value matching MCUXpresso, but I suspect that the longer delay specified in the User Manual is correct.  Which value should we use at 120MHz?

Thanks,

Doug

0 项奖励
回复
1 解答
1,189 次查看
DougHoyt
Contributor II

OK,

Thanks Alice.

Doug

 

 

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,210 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @DougHoyt 

Please follow the UM10562. As the UM mentioned, FLASHTIM should be 0100 for operation from 100 to 120 MHz operation with power boost on.

 

BR

Alice

0 项奖励
回复
1,190 次查看
DougHoyt
Contributor II

OK,

Thanks Alice.

Doug

 

 

0 项奖励
回复
1,215 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @DougHoyt ,

Thanks for your question, I will confirm with internal, then tell you after get any information.

 

BR

Alice

0 项奖励
回复