This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

problem with SSC and ST10F269

Hello,
I've got following simple problem. I need to use SSC in my sw, but I cannot get it running. SCLK doesn't work. I measured output pins, but I'got still 5V. I'v got DP3.13=1, output latch of P3.13=1, SSCBR is counting, but no square signal on P3.13. SSCEN=1, everything is set according to manual and I thing correctly, but no SCLK and so no recieved data and so transmitted data. Thank you for your help and Ideas. Jan

Parents
  • Hello Jan,
    Thanks for your answer. I'm using the SSC with 1MBit, as well. The Initialization is after EINIT. We can see signal toggling on the SSC Tx line, but nothing on the SCLK.
    The most interesting for me would be the initialization part SSC because I think there could be a difference between ST10F168 and ST10F269.
    Since I can't post my email address into the forum, could you post the (maybe few) initialization instructions (or can KEIL give you my email address)?
    Thx,
    Hans-Dieter

Reply
  • Hello Jan,
    Thanks for your answer. I'm using the SSC with 1MBit, as well. The Initialization is after EINIT. We can see signal toggling on the SSC Tx line, but nothing on the SCLK.
    The most interesting for me would be the initialization part SSC because I think there could be a difference between ST10F168 and ST10F269.
    Since I can't post my email address into the forum, could you post the (maybe few) initialization instructions (or can KEIL give you my email address)?
    Thx,
    Hans-Dieter

Children
  • Hello Hans-Dieter,
    last time I made a mistake. The initialization must be done BEFORE EINIT not after as I wrote last time. I mischanged it.... I do apologize....
    there can be a problem with ports. You must choose correct direction of ports that are used for SSC. I don't know ST10F168 but for
    ST10F269 are for SSC used P3.8, P3.9 and P3.13. P3.8 is for Master processor input, P3.9 and P3.13 are outputs. AS an initialization we use following sequence:

    extr #1
    mov SSCBR,#20 ;1us Baudrate
    bclr SSCEN
    mov SSCCON, #0100$0110$0010$1111b
    bset SSCEN

    This Sequence of instructions is placed in a Routine, that is called before the execution of EINIT.
    Jan