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.

Powering up TMS320F2812

Other Parts Discussed in Thread: TMS320F2812

Hi All,

I am using TMS320F2812 DSP based customised board.The board doesnot has any LED's.Now,I would like to know to how to determine if the DSP is powered up or not once I give power to the DSP(as there is no LED's)?

I would also like to know to what are all the sequence of actions that has to take place once the DSP is powered up?

Thanks,

Shilpa 

 


  • Hi Shilpa,

    You say you are using customized board without any LEDs.

    Then are you using Code Composer Studio? Which version?

    You can use the GEL file and monitor the status messages to check that DSP is powered up, PLL has been configured, etc.

    Since GEL file is used to define the power-up status of DSP processor on reset, it monitors Power registers and Configuration registers to check the status of DSP processor.

    Regards,

    Sid

  • Hi Sid,

    Thanks a lot for the inputs.Your inputs provided me to get a lot of info w.r.t my issue.

    Unfortunately,I don't have the CCS.We have actually ordered for the CCS and it would take around 4-5 weeks for the arrival.

    One more thing is our project denotes testing of the DSP through GUI,though we write the programs in CCS for debugging.The GUI in Host PC communicates with DSP(target) through serial port communication.

    Now,I have written the code in VB such that if I pass some command(say 1) through serial port to DSP,the DSP should poweron.Now,during my process of collecting information w.r.t to the power register I came across a bit  ~XRS(active low signal) described in page 100 of SPRU078F TMS320x281x manual which states that it is a Reset Input Signal Status which is connected directly to the XRS input pin.This is bit 5 defined in DEVICECNF register.

    Hence,Now I would like to know one thing.Can I write a code on DSP side such that I check this bit in the DEVICECNF register if the DSP is powered on or not and pass the result back to serialport buffer register which will be eventually taken by the Serialport register of PC and display the message accrodingly?

    To explain in brief:

    On VB side I will pass the command say 1 for DSP power on,wait till the response from the DSP side arrives

    ON DSP side the code would be

    Read  DEVICECNF register.Collect the data in some variable say x.

    if((x & 0x0020)==0x0020) //bit 5 so 0x0020 value is checked

    //condition is true then DSP is not powered on so pass 0 to SBUF register in UART

      On VB side write the code in such a way that if 0 input is received from SBUF register then display the message as "DSP is not powered".

    So I would like to know is can I write the code on the DSP side to read the register? Will this be allowed? I request you to provide me your comments w.r.t DSP side configuration as with VB side configuration I can handle.

    Waiting for your valuable inputs.

    Thanks,

    Shilpa                  

     

     

  • Hi Shilpa,

    Some questions first

    1. On the DSP side, when writing the code , are you going to use CCS only?

    2. I have always made appropriate changes in the GEL file to monitor Power conditions, but I think the way you suggested it should be possible. It seems you are going to monitor status using UART on DSP. There are some similar tutorials which uses minicom to monitor status of some programs running on DSP processor DM6467 whileand after porting Linux on it.

    Besides, you would need to read the user guide of Power Configuration registers to ensure that they dont require something like PLL configuration, etc. initially to monitor register status.

    3. DSP side programs require a linker file(.cmd) too to ensure that the program you have written goes into allocated memory sections. So you need to ensure you use one.

    Hope this helps.

    regards,

    Sid

     

  • Hi Sid,

    yes,you are true I would be using CCS inorder to debug the codes that I would have written for DSP peripherals.Apart from this,I would also write codes that would be controlled via GUI.

    I have just now finished coding in VB such that when command 1 is sent to DSP board the DSP should acknoweldge this command and should send back a message as "powered on" or "powered off" depending on the status of the bit XRS input pin defined in the DEVICECNF register.Now what I will do for the DSP to send back the message is,I will write a code for determining the status of this bit and I will burn the code into flash.So once the 1 command is received from the DSP SBUF register it will give a message to DSP to check the bit and send the message accordingly to the GUI. In this way,I will define different commands for different tasks for e.g. command 2 for ADC conversion check, command 3 for checking GPIO status bits etc.

    Now,according to your third point what I have though is for testing purpose I can write the code for determining the XRS signal and I keep on running the code in CCS while I am parallely waiting for the GUI to receive message.However in any way I have to send and receive the data from the SBUF register.

    Thanks for guiding me with loads of info.Incase of any issues,I will write in to you further.

    Thanks,

    Shilpa