LPC4076 FLASHTIM Discrepancy at 120MHz

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC4076 FLASHTIM Discrepancy at 120MHz

Jump to solution
1,228 Views
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 Kudos
Reply
1 Solution
1,185 Views
DougHoyt
Contributor II

OK,

Thanks Alice.

Doug

 

 

View solution in original post

0 Kudos
Reply
3 Replies
1,206 Views
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 Kudos
Reply
1,186 Views
DougHoyt
Contributor II

OK,

Thanks Alice.

Doug

 

 

0 Kudos
Reply
1,211 Views
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 Kudos
Reply