Dear Dialog,
Currently, I am trying to run the demonstration example for the SPI Adapter Concept. I am using a DA 14695 USB Kit to do this.
In the demonstration example code, there are several discrepancies with the DA 14695 data sheet when it comes to the SPI configuration for pins. For example, when looking underSection 5.7at the code overview of the demonstration example [http://lpccs-docs.dialog-semiconductor.com/da1469x_spi_adapters/code_overview.html], it shows that the CLK_PIN is defined as PIN_28. However, withpage 14of theDA 14695 data sheet[//www.xmece.com/sites/default/files/um-b-103_da1469..., the clock pin is defined as number 21.
Is there a reason for this discrepancy and what would you advise going forward?
Thank you for your time.
Hi toshiyo,
Did you connect the MCP4822 module to the correct GPIOs (P0_26, P0_28, P0_29) which are populated in the USB kit board? Please check the Fig. 9 Configuring the MCP4822 DAC Slave Device. Can you please clarify your statement regarding the “the clock pin is defined as number 21”? Where did you find it in the datasheet? Also, did you mean the datasheet or the UM-B-103? Do you have any issue with the tutorial? All the tutorials can be run in any DA1469x related design.
Thanks, PM_Dialog
Dear PM_Dialog,
Thank you so much for the response. I might be mistaken, but for my statement "the clock pin is defined as number 21" I found it in the UM-B-103 datasheet page 14 and have attached screenshots to clarify what I mean [was not able to post them in my initial post because the only allowed file type was pdf ].
The tutorial code describes the GPIO for the CLK_PIN as HW_GPIO_PIN_28 [ seen in spi_configurations.png ]. However, the SCLK pin according to the UM-B-103 datasheet is P0_21, [ seen in red star marked in usb_kit_pin_configurations_1.jpg ]. Should I change the code in the tutorial to define GPIO for CLK_PIN as HW_GPIO_PIN_21 to match the information from the datasheet for the USB Kit?
I have not run the tutorial code yet as I am confused as to whether I need to change any pin configurations in the tutorial code because I am using the USB Kit instead of the Pro-DK.
Thank you and I have attached all the mentioned screenshots as a zip to this message.
Hi toshiyo,
My apologies for the delay. You should not change the configuration. You will need to connect the MCP4822 DAC Slave Device with the USB kit, in the GPIOs are shown in the readme file. Please try to run it in the USB kit and let me know.
Thanks, PM_Dialog
Dear PM_Dialog,
I have run the USB kit with the SPI Adapter Concept Demonstration Example Tutorial and unfortunately, while the program compiles without issue, pressing the K1 button does not trigger a printing of the '#' on the Terminal as expected. What are some possible reasons this could be the case? Is there a way for me to test the USB Kit to distinguish if this is a hardware (button malfunctioning) or software problem?
Thank you for your time.
Hi toshiyo,
Can you please run your code in debug mode in order to make sure that is running correctly?
Thanks, PM_Dialog
Dear PM_Dialog,
It runs in debug mode, however, when I press the K1 button, it does not display the pound sign. Is seems like it does not register the button press. The program compiles fine and runs, it just keeps waiting for the button press (even when I press the button)
Hi toshiyo,
It’s little bit weird! Are you able to run any other SW example on DA14695 USB Kit?
Thanks, PM_Dialog