Hi!
I can not write/read data to the config register in configuration mode.
I do this on stm32: (parallel interface)
GPIOC->BSRR |= GPIO_BSRR_BS4; //A0=1
GPIOC->BSRR |= GPIO_BSRR_BS5; //A1=1
GPIOB->BSRR |= GPIO_BSRR_BR12; //CS=0
GPIOA->BSRR |= GPIO_BSRR_BS2; //SOE = 1
D15_D0_IN(); //all input
while(1)
{
GPIOC->BSRR |= GPIO_BSRR_BR1; //RESET=0
HAL_Delay(10);
GPIOC->BSRR |= GPIO_BSRR_BS1; //RESET=1
HAL_Delay(1);
D15_D0_OUT(); //all output
GPIOA->BSRR |= GPIO_BSRR_BR1; //WR=0
GPIOD->ODR = 0x0092;
GPIOA->BSRR |= GPIO_BSRR_BS1; //WR=1
HAL_Delay(1);
GPIOA->BSRR |= GPIO_BSRR_BR1; //WR=0
GPIOD->ODR = 0x007e;
GPIOA->BSRR |= GPIO_BSRR_BS1; //WR=1
HAL_Delay(1);
D15_D0_OUT();
GPIOA->BSRR |= GPIO_BSRR_BR1; //WR=0
GPIOD->ODR = 0x0092;
GPIOA->BSRR |= GPIO_BSRR_BS1; //WR=1
D15_D0_IN(); //all input
GPIOC->BSRR |= GPIO_BSRR_BR2; //RD=0
HAL_Delay(1);
HAL_Delay(1); //wait data.....
GPIOC->BSRR |= GPIO_BSRR_BS2; //RD=1
HAL_Delay(100);
}
Edit Notes
change[edited by: denis_nal at 12:58 PM (GMT -4) on 16 Aug 2021]

