你就用INT2对应的I/O口来判断一下是否busy:
例如对应以上page wirte的时序图,可以
1. /* Page write command and address */ 2. /* Write data */ 3. /* write confirm code */ 4. while( GPIO_ReadInputDataBit(GPIOG, GPIO_Pin_6) == 0 ); 5. /* Check status for successful operation */
如果R/B接到了NWAIT,就不用以上的4了,FSMC会自动插入等待
|