This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

McASP AHCLKXCTL clock divider

Hi,

I'm trying to set up the McASP1 however the values in the AHCLKXCTL register seem to make no difference as far as the divider goes. I appear to be feeding the 24MHz aux clk directly through (divide by 1) dispite altering the value in this register, and having the bit enabled to use the AUX clk.   

The only divider that makes a difference is the one in ACLKXCTL but that only allows a maximum of divide by 32.

Any one else had similar problems?

Dave

  • David,

    David Lemon said:
    I appear to be feeding the 24MHz aux clk directly through (divide by 1) dispite altering the value in this register, and having the bit enabled to use the AUX clk.   

    Are you aware of the reset sequence as specified section 2.4 of the OMAP-L138 McASP User's Guide? If not it would be a good guide to set up the McASP to operate properly.

    From the above statement, I'll assume that you are generating the clock to the McASP module via AUXCLK, and that you have the PINMUX registers configured properly since you appear to be getting some sort of clock out of the device. There are a few more registers that need to be configured in addition to the AUXCLK bit. In particular, I would take a look at the Global Control Register  (GBLCTL). You can alternatively use the XGBLCTL register to mask off the bits that affect the Rx side of the McASP.

    By default, the AHCLKX Divider is held in reset, and needs to be released during initialization.

     

     

  • Hi Drew,

    Thanks for that I hadn't set XHCLKRST in the global control register

    Thanks for your answer

    Dave