We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
Are you sure that SSC0 is enabled in the SYSCON3 register (the default is yes).
Hi,
did you check if SSC0 is enabled at all? Look at the startup code in START_V2.A66:
Peripheral Configuration --> Definitions for System Conf Reg SYSCON3 --> Disable Synchronus Serial Cnl0 SSC0
Thomas
hi Chris,
thank you for your reply. I just found the mistake, I use P3L as data lines for a LCD and i accidently switched the direction register for the whole port. now everything is fine.
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).