Sign in

username:

password:



Not a member?

Search c28x



Search tips

Subscribe to c28x





Discussion Groups

Discussion Groups | TMS320C28x | dsp beginner tms320f2812 !

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

dsp beginner tms320f2812 ! - riri...@caramail.com - May 9 16:16:11 2006



Hello=20

I am a french student who is doing a project in UK for a training course.

I am a beginner in programming on dsp ( The TMS320F2812). The application c=
onsists in calculating parameters of an induction motors, that is to say I =
have to do an acquisition of the current of this motor on my pc using the d=
sp board.

The problem is that I am very newbie in dsp board. I would like to now how =
to begin.
On whitch pins  I have to connect my motor P8 P4...?...and whitch number of=
 pins?
How to begin programming in c++? ( I know the basics of c++ it is not a pro=
blem)=20
I mean witch include file i have to import in my project on code composer s=
tudio? What have i to put in my source file..?

Best regards and thank you

=20

You can post a message or access and search the archives of this group on D=
SPRelated.com:
http://www.dsprelated.com/groups/c28x/1.php

_____________________________________

=20


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

Re: dsp beginner tms320f2812 ! - chirag jagadish - May 10 14:49:22 2006

hi,
  there is a folder called tidcs in ti website which gives a basic start up with all the
peripherals including ADC, EV, SCI, SPI etc, which you can use to start.
   
  i feel that to measure current, u might have to use ADC peripheral which are P5 and P9.
  convert your current to equivalent voltages and measure the voltage using ADC of the chip.
   
  the above mentioned tidcs folder is called sprc097 in ti.com (us) website.
  free download.
  it has a folder which gets u started with a basic ADC. u can change the settings using the
control register once u get familiar with the chip and by reading the manuals.
   
  this shuold be a good way to start. hope this helps
  best of luck.
   
  if i have talked anything wrong in this mail, the other members are requested to please
correct me.
   
  bye

r...@caramail.com wrote:
  Hello 

I am a french student who is doing a project in UK for a training course.

I am a beginner in programming on dsp ( The TMS320F2812). The application consists in
calculating parameters of an induction motors, that is to say I have to do an acquisition of
the current of this motor on my pc using the dsp board.

The problem is that I am very newbie in dsp board. I would like to now how to begin.
On whitch pins  I have to connect my motor P8 P4...?...and whitch number of pins?
How to begin programming in c++? ( I know the basics of c++ it is not a problem) 
I mean witch include file i have to import in my project on code composer studio? What have i
to put in my source file..?

Best regards and thank you

You can post a message or access and search the archives of this group on DSPRelated.com:
http://www.dsprelated.com/groups/c28x/1.php

_____________________________________


---------------------------------

---------------------------------
Yahoo! India Answers: Share what you know. Learn something new. Click here
Send instant messages to your online friends - NOW


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

Re: dsp beginner tms320f2812 ! - riri...@caramail.com - May 12 8:05:30 2006

   Hi chirag jagadish!

Thank you for your help in your reply

I have read a lot of datasheets about the TMS320F2812 and i found this abou=
t the P5 an the P9:
The definition of P5/P9 signals are shown in the table below.

P5             P9         P9
   signal        signal     signal
1 ADCINB0      1 GND      2 ADCINA0
2 ADCINB1      3 GND      4 ADCINA1
3 ADCINB2      5 GND      6 ADCINA2
4 ADCINB3      7 GND      8 ADCINA3
5 ADCINB4      9 GND     10 ADCINA4
6 ADCINB5     11 GND     12 ADCINA5
7 ADCINB6     13 GND     14 ADCINA6
8 ADCINB7     15 GND     16 ADCINA7
9 ADCREFM     17 GND     18 VREFLO *
10 ADCREFP    19 GND     20 No connect
* Connect VREFLO to AGND or VREFLO of target system for proper ADC operatio=
n.
Table 7: P5/P9, Analog Interface Connector

I guess that code composer studio is going to catch my signal input through=
 those pins and i will have to use all the ADCIN(A/B)# pins .but where the =
data is going?..i mean in whitch registers or in whitch adress in the memor=
y of the dsp? What are the ADCREFM ADCREFP VREFLO * AGND pins?

Maybe my questions are stupid because i am a newbie...but can you explain m=
e more please?

Besides I download the tidcs you talked about and it is very interesting..b=
ut i must confess i don't know whitch folders are good to use for my projec=
t (adc_seq_ovd_test...adc_seqmode_test...or adc_soc)
Thank you and feel free to learn me some new skills!!

Bye bye

=20

You can post a message or access and search the archives of this group on D=
SPRelated.com:
http://www.dsprelated.com/groups/c28x/1.php

_____________________________________

=20



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

Re: Re: dsp beginner tms320f2812 ! - chirag jagadish - May 15 8:21:03 2006

hi,
   
  if u have tidcs then open adc_soc folder and open the project called adc_soc at
      ----    ...\tidcs\c28\dsp281x\v100\DSP281x_examples\adc_soc
  if u open this project and open the c file called example...adc or some such similar name,
then u will find the details on how to work with it in the comments part of it at the start.
   
  that gives the basic like variables where u can watch the values.
   
  the actual adc results are stored in AdcRegs.ADCRESULT0 and such result registers 
   
  these are further processed in  the program and u can see the program for more details
  tidcs programs are quite simple and easy to understand
  for more info on configuring the adc , u have to refer to the data manuals
   
  ADCREFLO as said has to be connected to AGND(analog ground)
  and also short all the AGND pins together
  Voltage on any particular pin can be directed to any result register based on the
configuration of the ADC
  ADCREFM and REFP pins give reference voltages which is approx 1 and 2 volts and can be used
to calibrate the ADC of the 2812
  u can see the calibration details in the link i sent in another mail on this forum
   
  hope this helps
  bye

r...@caramail.com wrote:
  
   Hi chirag jagadish!

Thank you for your help in your reply

I have read a lot of datasheets about the TMS320F2812 and i found this about the P5 an the P9:
The definition of P5/P9 signals are shown in the table below.

P5             P9         P9
   signal        signal     signal
1 ADCINB0      1 GND      2 ADCINA0
2 ADCINB1      3 GND      4 ADCINA1
3 ADCINB2      5 GND      6 ADCINA2
4 ADCINB3      7 GND      8 ADCINA3
5 ADCINB4      9 GND     10 ADCINA4
6 ADCINB5     11 GND     12 ADCINA5
7 ADCINB6     13 GND     14 ADCINA6
8 ADCINB7     15 GND     16 ADCINA7
9 ADCREFM     17 GND     18 VREFLO *
10 ADCREFP    19 GND     20 No connect
* Connect VREFLO to AGND or VREFLO of target system for proper ADC operation.
Table 7: P5/P9, Analog Interface Connector

I guess that code composer studio is going to catch my signal input through those pins and i
will have to use all the ADCIN(A/B)# pins .but where the data is going?..i mean in whitch
registers or in whitch adress in the memory of the dsp? What are the ADCREFM ADCREFP VREFLO *
AGND pins?

Maybe my questions are stupid because i am a newbie...but can you explain me more please?

Besides I download the tidcs you talked about and it is very interesting..but i must confess i
don't know whitch folders are good to use for my project
(adc_seq_ovd_test...adc_seqmode_test...or adc_soc)
Thank you and feel free to learn me some new skills!!

Bye bye

 

You can post a message or access and search the archives of this group on DSPRelated.com:
http://www.dsprelated.com/groups/c28x/1.php

_____________________________________

 


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