Write Peripheral and DataMem, still waiting for more test.