I am using ADSP532 on VDSP++3.1
Here is the excat task.
The sending and receving data to the modem is to be done in VDK platfrom.
Now sending is working fine.now on the receving part
Here using PFs of BF532.for communicating with modem.
But the problem is in receving part i need to use interrupt thing in VDK.
I have gone thru all docs related to the VDK ISr thing.
Only i got know is ,how to create an interrupt but i need to write it
in asmbley.
How to make it work ,is the problem,
If any budy have any type of specific example with explanation to
it.will help me a lot in this matter.
like uart using for sending data using an interrupt and receving data
on the uart ,using interrupt.only in VDk platform.
Plz help me guy
VDK interrupt guys
Started by ●May 24, 2005
Reply by ●May 24, 20052005-05-24
There are a number of EZ-Kit examples that use interrupts in both C
and asm. Find a simple example that blinks LED's and go from there.
My question is, what is VDK doing for you? I'm not familiar with VDK
but you need a reason for including it. What will you need it for?
At 06:54 AM 5/24/2005, ajax_narayan@ajax... wrote:
>I am using ADSP532 on VDSP++3.1
>
>Here is the excat task.
>
>The sending and receving data to the modem is to be done in VDK platfrom.
>Now sending is working fine.now on the receving part
>Here using PFs of BF532.for communicating with modem.
>But the problem is in receving part i need to use interrupt thing in VDK.
>I have gone thru all docs related to the VDK ISr thing.
>
>Only i got know is ,how to create an interrupt but i need to write it
>in asmbley.
>
>How to make it work ,is the problem,
>If any budy have any type of specific example with explanation to
>it.will help me a lot in this matter.
>
>like uart using for sending data using an interrupt and receving data
>on the uart ,using interrupt.only in VDk platform.
>
>Plz help me guy >
>
Steve Holle
Link Communications, Inc.
1035 Cerise Rd.
Billings, MT 59101
sholle@shol...
and asm. Find a simple example that blinks LED's and go from there.
My question is, what is VDK doing for you? I'm not familiar with VDK
but you need a reason for including it. What will you need it for?
At 06:54 AM 5/24/2005, ajax_narayan@ajax... wrote:
>I am using ADSP532 on VDSP++3.1
>
>Here is the excat task.
>
>The sending and receving data to the modem is to be done in VDK platfrom.
>Now sending is working fine.now on the receving part
>Here using PFs of BF532.for communicating with modem.
>But the problem is in receving part i need to use interrupt thing in VDK.
>I have gone thru all docs related to the VDK ISr thing.
>
>Only i got know is ,how to create an interrupt but i need to write it
>in asmbley.
>
>How to make it work ,is the problem,
>If any budy have any type of specific example with explanation to
>it.will help me a lot in this matter.
>
>like uart using for sending data using an interrupt and receving data
>on the uart ,using interrupt.only in VDk platform.
>
>Plz help me guy >
>
Steve Holle
Link Communications, Inc.
1035 Cerise Rd.
Billings, MT 59101
sholle@shol...
Reply by ●May 25, 20052005-05-25
Like I said, I'm not familiar with the VDK but I suspect there might
be some limitations as far as interrupts go. If the VDK is a
complete RTOS you might be able to get away with a simple loop that
sleeps between samples instead of an interrupt. You may have to
worry about jitter in your samples but you can increase you sample
rate to some multiple of the baud rate to compensate for that. Your
loop will look something like this :
while ( 1 )
{
NewRxBit = RxInput ;
TxOutput = NewTxBit ;
BuildRxWord ( NewRxBit ) ;
NewTxBit = NextTx() ;
Sleep ( 1/baud ) ;
} ;
The 1/baud value will probably have to be adjusted for the amount of
time your processing takes and you will need to fill a thread-safe
queue with the results of your Rx and your new Tx words so they can
be communicated to other threads as needed.
An interrupt is just a way of using hardware to notify you of an
event. In the case of a software UART it is just a timer tick that
lets you know when to sample and output the next bits. Since you
already have the VDK you can probably use the built in scheduler as a
replacement for your interrupt. Otherwise, you have to figure out
how to run an interrupt in conjunction with the VDK and that is out
of my knowledge base.
It sounds like your almost there with your current routine.
At 10:22 PM 5/24/2005, ajax narayan wrote:
>Hai STeve
> what is VDK doing for you
>
>First their is already an project is their which is in VDK
>platfrom.That is they created an Library for GSm and GPS thing.Hence
>it needs GPS and GSM data in Real time there fore they have use VDK.
>
>Now What is the need for me.
>
>I am adding my application code as an thread to that VDK project.
>In this i am able to do mainly 3 things.
>1)Capturing an perticular data coming from the GPS ,and Writing
>that in to the flash .------> Done
>2)Now sending commands form DSP to an Modem,for specfic task.----->Done
>3)After sending command tot the modem ,the modem will finish the
>task and send back the data tot he dsp.But here i need use an
>interrupt thing and i am not able to get that clear picutre.of it.
>The communication b/t the DSP and the modem is using with the PFs of the dSP.
>
>Hence all these things are done on VDK platfrom ,Not only this still
>it is cery big thing need it be done ,this just a beggining.
>PLZ if u know any budy plz let me know.
>
>regards
>Ajay Narayan
>
>Steve Holle <sholle@shol...> wrote:
>There are a number of EZ-Kit examples that use interrupts in both C
>and asm. Find a simple example that blinks LED's and go from there.
>My question is, what is VDK doing for you? I'm not familiar with VDK
>but you need a reason for including it. What will you need it for?
>
>At 06:54 AM 5/24/2005, ajax_narayan@ajax... wrote:
> >I am using ADSP532 on VDSP++3.1
> >
> >Here is the excat task.
> >
> >The sending and receving data to the modem is to be done in VDK platfrom.
> >Now sending is working fine.now on the receving part
> >Here using PFs of BF532.for communicating with modem.
> >But the problem is in receving part i need to use interrupt thing in VDK.
> >I have gone thru all docs related to the VDK ISr thing.
> >
> >Only i got know is ,how to create an interrupt but i need to write it
> >in asmbley.
> >
> >How to make it work ,is the problem,
> >If any budy have any type of specific example with explanation to
> >it.will help me a lot in this matter.
> >
> >like uart using for sending data using an interrupt and receving data
> >on the uart ,using interrupt.only in VDk platform.
> >
> >Plz help me guy
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
>Steve Holle
>Link Communications, Inc.
>1035 Cerise Rd.
>Billings, MT 59101
>sholle@shol...
>
><http://yahoo.shaadi.com/india-matrimony/>Yahoo!" target="_blank" rel="nofollow">http://in.rd.yahoo.com/specials/mailtg/*http://yahoo.shaadi.com/india-matrimony/>Yahoo!
>India Matrimony: Find your life partner
><http://yahoo.shaadi.com/india-matrimony/>online" target="_blank" rel="nofollow">http://in.rd.yahoo.com/specials/mailtg2/*http://yahoo.shaadi.com/india-matrimony/>online.
>
Steve Holle
Link Communications, Inc.
1035 Cerise Rd.
Billings, MT 59101
sholle@shol...
be some limitations as far as interrupts go. If the VDK is a
complete RTOS you might be able to get away with a simple loop that
sleeps between samples instead of an interrupt. You may have to
worry about jitter in your samples but you can increase you sample
rate to some multiple of the baud rate to compensate for that. Your
loop will look something like this :
while ( 1 )
{
NewRxBit = RxInput ;
TxOutput = NewTxBit ;
BuildRxWord ( NewRxBit ) ;
NewTxBit = NextTx() ;
Sleep ( 1/baud ) ;
} ;
The 1/baud value will probably have to be adjusted for the amount of
time your processing takes and you will need to fill a thread-safe
queue with the results of your Rx and your new Tx words so they can
be communicated to other threads as needed.
An interrupt is just a way of using hardware to notify you of an
event. In the case of a software UART it is just a timer tick that
lets you know when to sample and output the next bits. Since you
already have the VDK you can probably use the built in scheduler as a
replacement for your interrupt. Otherwise, you have to figure out
how to run an interrupt in conjunction with the VDK and that is out
of my knowledge base.
It sounds like your almost there with your current routine.
At 10:22 PM 5/24/2005, ajax narayan wrote:
>Hai STeve
> what is VDK doing for you
>
>First their is already an project is their which is in VDK
>platfrom.That is they created an Library for GSm and GPS thing.Hence
>it needs GPS and GSM data in Real time there fore they have use VDK.
>
>Now What is the need for me.
>
>I am adding my application code as an thread to that VDK project.
>In this i am able to do mainly 3 things.
>1)Capturing an perticular data coming from the GPS ,and Writing
>that in to the flash .------> Done
>2)Now sending commands form DSP to an Modem,for specfic task.----->Done
>3)After sending command tot the modem ,the modem will finish the
>task and send back the data tot he dsp.But here i need use an
>interrupt thing and i am not able to get that clear picutre.of it.
>The communication b/t the DSP and the modem is using with the PFs of the dSP.
>
>Hence all these things are done on VDK platfrom ,Not only this still
>it is cery big thing need it be done ,this just a beggining.
>PLZ if u know any budy plz let me know.
>
>regards
>Ajay Narayan
>
>Steve Holle <sholle@shol...> wrote:
>There are a number of EZ-Kit examples that use interrupts in both C
>and asm. Find a simple example that blinks LED's and go from there.
>My question is, what is VDK doing for you? I'm not familiar with VDK
>but you need a reason for including it. What will you need it for?
>
>At 06:54 AM 5/24/2005, ajax_narayan@ajax... wrote:
> >I am using ADSP532 on VDSP++3.1
> >
> >Here is the excat task.
> >
> >The sending and receving data to the modem is to be done in VDK platfrom.
> >Now sending is working fine.now on the receving part
> >Here using PFs of BF532.for communicating with modem.
> >But the problem is in receving part i need to use interrupt thing in VDK.
> >I have gone thru all docs related to the VDK ISr thing.
> >
> >Only i got know is ,how to create an interrupt but i need to write it
> >in asmbley.
> >
> >How to make it work ,is the problem,
> >If any budy have any type of specific example with explanation to
> >it.will help me a lot in this matter.
> >
> >like uart using for sending data using an interrupt and receving data
> >on the uart ,using interrupt.only in VDk platform.
> >
> >Plz help me guy
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
>Steve Holle
>Link Communications, Inc.
>1035 Cerise Rd.
>Billings, MT 59101
>sholle@shol...
>
><http://yahoo.shaadi.com/india-matrimony/>Yahoo!" target="_blank" rel="nofollow">http://in.rd.yahoo.com/specials/mailtg/*http://yahoo.shaadi.com/india-matrimony/>Yahoo!
>India Matrimony: Find your life partner
><http://yahoo.shaadi.com/india-matrimony/>online" target="_blank" rel="nofollow">http://in.rd.yahoo.com/specials/mailtg2/*http://yahoo.shaadi.com/india-matrimony/>online.
>
Steve Holle
Link Communications, Inc.
1035 Cerise Rd.
Billings, MT 59101
sholle@shol...