向PSRAM中写入16位数据
int main(void) { uint16 *point16; uint16 data16 = 0x00; point16 = (uint16 *)0x80001020; while(1) { *point16=data16++; } return(0); }
向PSRAM中低地址处写入8位数据
int main(void) { uint8 *point8; uint8 data8 = 0x00; point8 = (uint8 *)0x80001010; while(1) { *point8=data8++; } return(0); }
向PSRAM中高地址处写入8位数据
int main(void){ uint8 *point8; uint8 data8=0x00; point8 = (uint8 *)0x80001011; while(1){ *point8 = data8++; } return(0); }
从PSRAM中读取8位数据
uint8 RcvData8; int main(void){ uint8 = *point8; point8 = (uint8 * )0x80001010; while(1){ RecData8 = *point8++; RecData8 = *point8++; RecData8 = *point8++; RecData8 = *point8--; point8--; point8-- } return(0); }