Forums

SWI and SIO

Started by tnk March 18, 2004
Hi all,
   Just a quick check. Is it good to use SWI with SIO in TI's
DSP/BIOS? Any pointer? Thanks in advance...

tnk
tnk wrote:

> Hi all, > Just a quick check. Is it good to use SWI with SIO in TI's > DSP/BIOS? Any pointer? Thanks in advance... > > tnk
You would do well to be more specific. I haven't a clue about your needs, but I can say with certainty "It depends on what you want to do." Jerry -- Engineering is the art of making what you want from things you can get. �����������������������������������������������������������������������
Jerry Avins <jya@ieee.org> wrote in message news:<405a259a$0$3072$61fed72c@news.rcn.com>...
> tnk wrote: > > > Hi all, > > Just a quick check. Is it good to use SWI with SIO in TI's > > DSP/BIOS? Any pointer? Thanks in advance... > > > > tnk > > You would do well to be more specific. I haven't a clue about your needs, > but I can say with certainty "It depends on what you want to do." > > Jerry
Thanks for the reply, Actually I want to stream in the data from host to target and stream back the same data from target to host. It works perfectly fine while using PIP with SWI. When I try to work with SIO model together with SWI, it is not working especially, I think, input DHL driver didn't trigger the interrupt. I used swi_andnHook to syn the input output( similarly to the one used in PIP model). don't know where went wrong. tnk
tnk wrote:

> Jerry Avins <jya@ieee.org> wrote in message news:<405a259a$0$3072$61fed72c@news.rcn.com>... > >>tnk wrote: >> >> >>>Hi all, >>> Just a quick check. Is it good to use SWI with SIO in TI's >>>DSP/BIOS? Any pointer? Thanks in advance... >>> >>>tnk >> >>You would do well to be more specific. I haven't a clue about your needs, >>but I can say with certainty "It depends on what you want to do." >> >>Jerry > > > Thanks for the reply, Actually I want to stream in the data from host > to target and stream back the same data from target to host. It works > perfectly fine while using PIP with SWI. When I try to work with SIO > model together with SWI, it is not working especially, I think, input > DHL driver didn't trigger the interrupt. I used swi_andnHook to syn > the input output( similarly to the one used in PIP model). don't know > where went wrong. > > tnk
As far as I know, swi is a software interrupt. (I assume you don't need that explained.) To do real physical I/O, you want to respond to a physical interrupt (In this case, from the UART). Jerry -- Engineering is the art of making what you want from things you can get. &#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;
Jerry Avins <jya@ieee.org> wrote in message news:<405a6b29$0$3051$61fed72c@news.rcn.com>...
> tnk wrote: > > > Jerry Avins <jya@ieee.org> wrote in message news:<405a259a$0$3072$61fed72c@news.rcn.com>... > > > >>tnk wrote: > >> > >> > >>>Hi all, > >>> Just a quick check. Is it good to use SWI with SIO in TI's > >>>DSP/BIOS? Any pointer? Thanks in advance... > >>> > >>>tnk > >> > >>You would do well to be more specific. I haven't a clue about your needs, > >>but I can say with certainty "It depends on what you want to do." > >> > >>Jerry > > > > > > Thanks for the reply, Actually I want to stream in the data from host > > to target and stream back the same data from target to host. It works > > perfectly fine while using PIP with SWI. When I try to work with SIO > > model together with SWI, it is not working especially, I think, input > > DHL driver didn't trigger the interrupt. I used swi_andnHook to syn > > the input output( similarly to the one used in PIP model). don't know > > where went wrong. > > > > tnk > > As far as I know, swi is a software interrupt. (I assume you don't need > that explained.) To do real physical I/O, you want to respond to a > physical interrupt (In this case, from the UART). > > Jerry
Yeah, swi is a software interrupt and I don't go down to the physical interrupt either( by the way, the communication mean between host and target is not UART. I am using evm (dm642 to be precised) board and connect through ISA JTAG emulator board.) What I am trying to do is to stream the data from computer using SIO module(provided by dsp bios) and throw the data back to computer. there are two models actually to work with. One is PIP model used together with SWI and the other one is SIO module. I have seen PIP model work but SIO model....... still have problem. sighh.... tnk
tnk wrote:

> Jerry Avins <jya@ieee.org> wrote in message news:<405a6b29$0$3051$61fed72c@news.rcn.com>... > >>tnk wrote: >> >> >>>Jerry Avins <jya@ieee.org> wrote in message news:<405a259a$0$3072$61fed72c@news.rcn.com>... >>> >>> >>>>tnk wrote: >>>> >>>> >>>> >>>>>Hi all, >>>>> Just a quick check. Is it good to use SWI with SIO in TI's >>>>>DSP/BIOS? Any pointer? Thanks in advance... >>>>> >>>>>tnk >>>> >>>>You would do well to be more specific. I haven't a clue about your needs, >>>>but I can say with certainty "It depends on what you want to do." >>>> >>>>Jerry >>> >>> >>>Thanks for the reply, Actually I want to stream in the data from host >>>to target and stream back the same data from target to host. It works >>>perfectly fine while using PIP with SWI. When I try to work with SIO >>>model together with SWI, it is not working especially, I think, input >>>DHL driver didn't trigger the interrupt. I used swi_andnHook to syn >>>the input output( similarly to the one used in PIP model). don't know >>>where went wrong. >>> >>>tnk >> >>As far as I know, swi is a software interrupt. (I assume you don't need >>that explained.) To do real physical I/O, you want to respond to a >>physical interrupt (In this case, from the UART). >> >>Jerry > > > Yeah, swi is a software interrupt and I don't go down to the physical > interrupt either( by the way, the communication mean between host and > target is not UART. I am using evm (dm642 to be precised) board and > connect through ISA JTAG emulator board.) What I am trying to do is to > stream the data from computer using SIO module(provided by dsp bios) > and throw the data back to computer. there are two models actually to > work with. One is PIP model used together with SWI and the other one > is SIO module. I have seen PIP model work but SIO model....... still > have problem. sighh.... > > tnk
A physical interrupt is a way to allow a processor to respond to an external event without needing to check it frequently (poll it). A software interrupt is a way to put to another use the rather elaborate facilities that a processor may have for servicing interrupts. Think of swi as an alternate and sometimes advantageous subroutine call. Like any other subroutine call, it is useless for dealing with externals not being attended to by the running program. Are you using it properly? Jerry -- Engineering is the art of making what you want from things you can get. &#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;
In comp.dsp, Jerry Avins <jya@ieee.org> wrote:

>A physical interrupt is a way to allow a processor to respond to an >external event without needing to check it frequently (poll it). A >software interrupt is a way to put to another use the rather elaborate >facilities that a processor may have for servicing interrupts. Think of >swi as an alternate and sometimes advantageous subroutine call. Like any >other subroutine call, it is useless for dealing with externals not >being attended to by the running program. Are you using it properly?
This brings back to mind early IBM PC programming where DOS and BIOS calls were made through the software interrupt facility of the 8086, and so these calls were called "DOS interrupts" and "BIOS interrupts". I always thought these names were confusing and misleading, but what did I know...
>Jerry
----- http://mindspring.com/~benbradley
Jerry Avins <jya@ieee.org> wrote in message news:<405b6889$0$3059$61fed72c@news.rcn.com>...
> tnk wrote: > > > Jerry Avins <jya@ieee.org> wrote in message news:<405a6b29$0$3051$61fed72c@news.rcn.com>... > > > >>tnk wrote: > >> > >> > >>>Jerry Avins <jya@ieee.org> wrote in message news:<405a259a$0$3072$61fed72c@news.rcn.com>... > >>> > >>> > >>>>tnk wrote: > >>>> > >>>> > >>>> > >>>>>Hi all, > >>>>> Just a quick check. Is it good to use SWI with SIO in TI's > >>>>>DSP/BIOS? Any pointer? Thanks in advance... > >>>>> > >>>>>tnk > >>>> > >>>>You would do well to be more specific. I haven't a clue about your needs, > >>>>but I can say with certainty "It depends on what you want to do." > >>>> > >>>>Jerry > >>> > >>> > >>>Thanks for the reply, Actually I want to stream in the data from host > >>>to target and stream back the same data from target to host. It works > >>>perfectly fine while using PIP with SWI. When I try to work with SIO > >>>model together with SWI, it is not working especially, I think, input > >>>DHL driver didn't trigger the interrupt. I used swi_andnHook to syn > >>>the input output( similarly to the one used in PIP model). don't know > >>>where went wrong. > >>> > >>>tnk > >> > >>As far as I know, swi is a software interrupt. (I assume you don't need > >>that explained.) To do real physical I/O, you want to respond to a > >>physical interrupt (In this case, from the UART). > >> > >>Jerry > > > > > > Yeah, swi is a software interrupt and I don't go down to the physical > > interrupt either( by the way, the communication mean between host and > > target is not UART. I am using evm (dm642 to be precised) board and > > connect through ISA JTAG emulator board.) What I am trying to do is to > > stream the data from computer using SIO module(provided by dsp bios) > > and throw the data back to computer. there are two models actually to > > work with. One is PIP model used together with SWI and the other one > > is SIO module. I have seen PIP model work but SIO model....... still > > have problem. sighh.... > > > > tnk > > A physical interrupt is a way to allow a processor to respond to an > external event without needing to check it frequently (poll it). A > software interrupt is a way to put to another use the rather elaborate > facilities that a processor may have for servicing interrupts. Think of > swi as an alternate and sometimes advantageous subroutine call. Like any > other subroutine call, it is useless for dealing with externals not > being attended to by the running program. Are you using it properly? > > Jerry
Yeah, I use it through DHL. So it shouldn't be problem, but it still give me problem. :( tnk
tnk wrote:

   ...

> Yeah, I use it through DHL. So it shouldn't be problem, but it still > give me problem. :( > > tnk
What is DHL? What do you want it to do? How does it fail? Jerry -- Engineering is the art of making what you want from things you can get. &#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;&#2013266095;
Jerry Avins <jya@ieee.org> wrote in message news:<405c7e6e$0$3067$61fed72c@news.rcn.com>...
> tnk wrote: > > ... > > > Yeah, I use it through DHL. So it shouldn't be problem, but it still > > give me problem. :( > > > > tnk > > What is DHL? What do you want it to do? How does it fail? > > Jerry
DHL mean host link driver provided by ti dsp bios. tnk