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.

PIC32 and tlv5638 issue

Other Parts Discussed in Thread: TLV5638

Dear Friends,

 

I am using PIC32 and tlv5638. I have checked waveforms on DSO. it is ok. So I thing I am missing some configuration tlv5638. I want to use both the channels.

I am not able to see variation in analog voltage.

 

here is my code

 

  LATGbits.LATG9 = 0;        //SS2 active low//
                Nop( );
                Nop( );
            writeSPI2(0xD002);
            LATGbits.LATG9 = 1;        //SS2 active High//
                    Nop( );
                    Nop( );
            for(i = 0 ; i <100; i++){
                Nop( );   
            }
            LATGbits.LATG9 = 0;        //SS2 active low//
                Nop( );
                Nop( );
   
            writeSPI2(0x4000);
            LATGbits.LATG9 = 1;        //SS2 active low//
                    Nop( );
                    Nop( );
            for(i = 0 ; i <100; i++){
                Nop( );   
            }
            LATGbits.LATG9 = 0;        //SS2 active low//
                Nop( );
                Nop( );
   
            writeSPI2(0xC000);
            LATGbits.LATG9 = 1;        //SS2 active high//
                    Nop( );
                    Nop( );
        for(i = 0 ; i <100; i++){
                Nop( );   
            }
            LATGbits.LATG9 = 0;        //SS2 active low//
                Nop( );
                Nop( );
   
            writeSPI2(0xCFFF);
            LATGbits.LATG9 = 1;        //SS2 active high//
                    Nop( );
                    Nop( );
        for(i = 0 ; i <100; i++){
                Nop( );   
            }

 

Regards,

Hiren I Shah

  • hmmm... you will be better off posting this in TI analog forum or may be some one from TI will direct you to correct forum .... by the way, have you considred using C2000 devices instead of PIC32 :-) just kidding ......