This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TMS320F28335:TMS320F28335

Guru**** 2595800 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/671911/tms320f28335-tms320f28335

器件型号:TMS320F28335

您好,

如何为    InitFlash 函数中的闪存设置 OTP 的分页等待状态、随机等待状态和等待状态?

以下是示例代码

空 InitFlash (空)

  EALLOW;
  //启用闪存管道模式以提高性能
  /从闪存执行的代码。
  FlashRegs.FOPT.BIT.ENPIPE = 1;

  //               注意
  //闪存操作所需的最小等待状态
  //在给定的 CPU 速率下、必须由 TI 表征。
  //有关最新信息,请参阅数据表。
#if CPU_FRQ_150MHz
  //为闪存设置分页等待状态
  FlashRegs.FBANKWAIT.bit.PAGEWAIT = 5;

  //设置闪存的随机等待状态
  FlashRegs.FBANKWAIT.bit.RANDWAIT = 5;

  //设置 OTP 的 Waitstate
  FlashRegs.FOTPWAIT.bit.OTPWAIT = 8;

 

 

谢谢!

 

此致、

RAM