Can somebody please give some suggestions on this?
Aditi.
On Fri, Aug 5, 2011 at 10:19 AM, Aditi Akula wrote:
> Hi
>
> I am using C6713 and want to interface a UART. Doing so by using McBSP as
> GPIO.
>
> I have taken the code from the TI's SPRA633C document that describes how
to
> use McBSP as a soft UART
>
> in GPIO mode. To test the code and verify if I am receiving correctly, I
> just put the code inside a while(1) loop
>
> inside main() as follows
>
> voide main(){
>
> -----
> ------
>
> while (1){
>
> UartSpeed = SoftUartSpeedDetect();
>
> while(UartSpeed)
>
> c = SoftUartInchar(UartSpeed);
>
> }
>
> }
>
> I want the UART code (a function) to be run by BIOS.
>
> How do I add it to the BIOS scheduler? Because there are no interrupts (if
> I use McBSP in GPIO mode), how do I do it?
>
> This is what I want to acheive
>
> 1) The BIOS constantly runs the code to find UartSpeed to find if there is
> any activity on the Rx pins (how can this be added to the BIOS scheduler)
>
> 2) If the UartSpeed is non-zero, then it calls the function to find the
> input character. (this could be done as a SWI_post I believe)
> 3) Based on what the input char is it has to send some data out (this also
> goes into the SWI_post function).
>
> Can somebody suggest how to do this?
>
> Thanks
>
> Aditi.
>