i want to make music with an arduino due and a DAC 24 bits.
first i want to configure the Synchronous Serial Controller SSC. Before to look for TD and TF i try to get a signal out from the TK of the due (the master clock for the DAC).
//Synchronous Serial Controller //3 pins in peripheral B of PIOA //TK : MCLK pin 23 ( PIOA 14 ) //TF : FS pin 24 ( PIOA 15 ) //TD : SDATA pin A0 ( PIOA 16 ) //PIO PMC->PMC_PCER0 = 1 << 11;// enable PIOA in PMC PIOA->PIO_WPMR = (0x50494F << 8) | 0b0 ;//disable write protection PIOA->PIO_PDR = 0b111 << 14;//give the control of the 3 pins to the SSC peripheral PIOA->PIO_ABSR = 0b111 << 14; //Assigns the I/O lines to the Peripheral B function (TD TK TF) PMC->PMC_PCER0 = 1 << 26;//enable SSC in PMC SSC->SSC_WPMR = 0x535343 | 0b0;//disable write protection SSC->SSC_TCMR = 0b00;//clock divider for SSC SSC->SSC_CMR = 0b1;//value of the clock divider
but with this code i get nothing from TK pin.
thanks for help