Hi dialog,
I have some question about the circuit design about using external SPI flash in DA14580
my project need to use ADC, so I put the SPI flash to P0_ 0 3 5 6, but can I still use serial port P0_4 and 5 to program the external SPI flash? since it have
冲突的销P0_5,谢谢
Device:
Hi andoridfm2013,
Yes, you have conflict in the P0_5 when you use the serial port and the SPI flash, but you are able to override it by using a three way jumper. So, you will have to connect both SPI flash and UART with P0_5. But, could you please explain why you have referred the ADC? Be aware that the ADC GPIOs in the DA14580 chip are in P 0_0, P0_1, P0_2, P0_3 and not in P0_5. For more information, please take a look into the Table 1: Pin Description of the Da14580 datasheet.
Regards, PM_Dialog
thank you for you reply,
the reason I referred the ADC because when I check with datasheet, external SPI flash boot is only available at P 0_0, P0_1, P0_2, P0_3 or P 0_0, P0_3, P0_5, P0_6, as the first mapping will use up all the ADC, so I have to use second mapping, but it will have conflict in the P0_5. I am not quit understand what is "three way jumper" can you explain a bit more?
But now I think of it, is it ok I put the flash at P 0_0, P0_1, P0_2, P0_3 and use the ADC? since 14580 will load the program to ram then it will not access flash any more as I remember. Thank you for your help
Hi andoridfm2013,
With the “three way jumper” I mean a jumper that connects three pins in order to USE both ADC and SPI flash in the P0_5 GPIO. Could you please clarify if you want to boot from SPI flash? According toTable 1: Pin assignment and booting sequence from external devicesofthe DA14580/581/583 Booting from serial interfaces (AN-B-001)document, the DA14580 uses standard GPIOs (P0_0 , P0_3, P0_5, P0_6) to boot from SPI flash. Regarding the ADC, you have to use it in one of the P 0_0, P0_1, P0_2, P0_3 as I have mentioned in my previous comment.
Thanks, PM_Dialog