The purpose of this group is to foster exchange of information on the Texas Instruments MSP430 family of microcontrollers and related tools. Everyone welcome, all levels of familiarity/expertise.
IrDA Stack - buffaloengineer - Oct 7 21:30:28 2009
Has anyone worked with the IrDA stack that TI provides? It's available in a sample
assembly program here:
http://focus.ti.com/general/docs/litabsmultiplefilelist.tsp?literatureNumber=slaa202a
I'm trying to integrate it with a C program on the MSP430F4152, and I thought the easiest
way to do it would be to comment out everything except what's necessary for the stack
protocol and call the whole think as a function. Is this reasonable, since the stack
contains multiple assembly functions? Or would it be easiest to try to put bring them
into the C file as ASM declarations?
Thanks!
------------------------------------

(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )
Re: IrDA Stack - old_cow_yellow - Oct 7 21:50:07 2009
Yes. You can modify the assm code and call that from c. You can also translate the assm
code into c code.
BTW someone modified that code to enable higher IrDA datarates and did that successfully.
He also found at least one mistake in the origial code. Search past msgs and you will find
it.
--=OCY
--- In m...@yahoogroups.com, "buffaloengineer"
wrote:
>
> Has anyone worked with the IrDA stack that TI provides? It's available in a sample
assembly program here:
>
> http://focus.ti.com/general/docs/litabsmultiplefilelist.tsp?literatureNumber=slaa202a
>
> I'm trying to integrate it with a C program on the MSP430F4152, and I thought the
easiest way to do it would be to comment out everything except what's necessary for the
stack protocol and call the whole think as a function. Is this reasonable, since the
stack contains multiple assembly functions? Or would it be easiest to try to put bring
them into the C file as ASM declarations?
>
> Thanks!
>
------------------------------------
______________________________
controlSUITE software. Comprehensive. Intuitive. Optimized.
Real-world software for real-time control. Details Here!

(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )Re: IrDA Stack - buffaloengineer - Oct 10 23:27:22 2009
Thanks - my thought was that if I copied the stack and called the InitIrDA function from
C, that would allow the computer to, for the moment, just recognize that the device is
there. I'm probing the TX and RX lines, and the RX line has activity from the PC
periodically checking for IR devices, but it doesn't recognize the device and the TX line
has not activity.
>From my reading of the protocol, it looks like the stack automatically scans for the BOF
byte, but when I run it, the program loops between the UART interrupt, the IR_RX_L2 (which
checks if the received byte is the BOF), and the IrDA_RX function.
--- In m...@yahoogroups.com, "old_cow_yellow"
wrote:
>
> Yes. You can modify the assm code and call that from c. You can also translate the assm
code into c code.
>
> BTW someone modified that code to enable higher IrDA datarates and did that
successfully. He also found at least one mistake in the origial code. Search past msgs and
you will find it.
>
> --=OCY
>
> --- In m...@yahoogroups.com, "buffaloengineer" wrote:
> >
> > Has anyone worked with the IrDA stack that TI provides? It's available in a sample
assembly program here:
> >
> >
http://focus.ti.com/general/docs/litabsmultiplefilelist.tsp?literatureNumber=slaa202a
> >
> > I'm trying to integrate it with a C program on the MSP430F4152, and I thought the
easiest way to do it would be to comment out everything except what's necessary for the
stack protocol and call the whole think as a function. Is this reasonable, since the
stack contains multiple assembly functions? Or would it be easiest to try to put bring
them into the C file as ASM declarations?
> >
> > Thanks!
>
------------------------------------

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