- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have a problem with the RDAR command. First of all writing, reading, and erasing pages works fine.
When I use the RDAR command to read a register, every bit I read is 0. I tested with the different configuration registers and at least the bits 3 and 7 in configuration register 2 should be 1.
My program sequence:
- Configure the SPI connection with 1MHz clock frequency
- Sending command B7h (Enter 4Byte-address mode)
- Sending command 65h (Read any register)
- Sending 4Byte address of the register in 4 8bit data blocks (00000003h for config register 2)
- Sending empty dummy cycles to activate the clock and receiving data
Because I use a frequency of 1MHz the data should be available right after the address.
Have I made a mistake in the sequence, or is the data (all zeros) correct?
Here is an image of the SPI connection between the memory (slave) and the MCU (master) (r=CS, y=clock, b=MOSI, g=MISO)
Nachricht geändert durch Philip Scharf
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have found the problem. I was using the wrong data sheet the whole time. The memory I am using is the S70FL01GS and not the S70FS01GS. I have mixed something up here.
Thank you for your time, it helped me understanding the registers more.