I am doing a project which involves, interfacing SPI or Microwire 3-wir bus (DAC receiving data in SPI/Microwire), press button, and LED/Relay.
I dont know which ports need to be used for SPI Data, connecting LED, an pres button switch. Also need any sample c programs( I am only familia with C)
- When Button is pressed LED should switch on, when Button is presse again, LED should switch off. (Info about which port need to be used fo connecting LED and switch)
- Reference to SPI c programs, Send commands to DAC. Which port to b used for CLK, LD, WRITE and DATA.