2013-10-20

Disabling SSEL from SPI module

















    // Assign GPIO pins for SPI
    // SSP_SSP0PinsInit(sck0, ENABLE);
    SSP_SSP0PinsInit(sck0, DISABLE); // Disable SSEL


    // *** Repeat transfer for oscilloscope to display signal waveforms ***

    setupGpioPinOutputLow050(PortPinArraySsel); // setup GPIO pin as output

    uint8_t j;
    for (j = 0; j < 10000000; j++)
    {
    delayMilliSecond(1);
    setGpioDataPinLow01(PortPinArraySsel); // SSEL low
        SSP_ReadWrite(LPC_SSP0, &xferConfig, SSP_TRANSFER_POLLING);
        setGpioDataPinHigh01(PortPinArraySsel); // SSEL high
    }

.END

No comments:

Post a Comment