hi,
I try to get the SSC0 on the MCB-XC167NET working.
I initialize with the following instructions:
SSC0_CON_EN = 0;
SSC0_BR = CPU_FREQ / (2 * SSC0_BAUDRATE) - 1;
ALTSEL0P3_P8 = 1; ALTSEL0P3_P9 = 1; ALTSEL0P3_P13 = 1;
DP3_P8 = 0; DP3_P9 = 1; DP3_P13 = 1;
P3_P9 = 1; P3_P13 = 1;
SSC0_CON = 0xC00B;
That should work, but i get no output on P3.9 and no clock on P3.13. Is there anything I might have forgotten?
Greetings, Simon
I found the same when I started with SSC (on ST10F168). The solution was to set first the port pins (P3) and after this the port direction register (DP3).