Sign in

username:

password:



Not a member?

Search c28x



Search tips

Subscribe to c28x



Sponsor

Evaluate multicore with Texas Instruments:
Low-cost evaluation module & free software development kit available NOW.

Discussion Groups

See Also

Embedded SystemsFPGAElectronics

Discussion Groups | TMS320C28x | SPI 2812 Buffer again [1 Attachment]

Technical discussions about the TI C28x DSPs (including the C2810, C2811, C2812, F2801, F2806, F2808, F2810,, F2811, F2812, R2811 and R2812).

  

Post a new Thread

SPI 2812 Buffer again [1 Attachment] - hasan mustafa - Jun 16 7:44:12 2010

Ciao Tutti,

kindly advice, im facing really annoying problem,

   EALLOW;
    GpioMuxRegs.GPFMUX.all |= 0x000F;
      EDIS;
    SpiaRegs.SPIFFTX.all=0xE040;
    SpiaRegs.SPIFFRX.all=0x204f;
    SpiaRegs.SPIFFCT.all=0x0;
      SpiaRegs.SPICCR.all =0x0008;
    SpiaRegs.SPICCR.bit.SPICHAR = 0x7;
      SpiaRegs.SPICTL.all =0x0006;
      SpiaRegs.SPIBRR =0x007F;
    SpiaRegs.SPICCR.all =0x009F;
    SpiaRegs.SPICCR.bit.SPICHAR = 0x7;
    SpiaRegs.SPIPRI.bit.FREE = 1;
    SpiaRegs.SPICCR.bit.CLKPOLARITY = 1;
    SpiaRegs.SPICTL.bit.CLK_PHASE = 0;

strange, i did make it 07,,,,,,but i write directly the 0xFFFF to the
SPIBUF,

    SpiaRegs.SPICCR.bit.SPICHAR = 0x7;

for the when it was 07, it transmit only the 0xFF, and when its 0F, it
transmit 0xFFFF but in the lowest,,,,,

Always transmit the Full as the half, and the Clock is double than the
setting, and when its normal i mean when the clock is right, the no output
data come out

no idea,   does anyone faced that before :(

Any guide, help, will be highly appreciated, thanks all
hasan mustafa

______________________________
StarterWare provides C-based no-OS platform support for the C6000 DSP devices.
Click here for details.




(You need to be a member of c28x -- send a blank email to c28x-subscribe@yahoogroups.com )