Reply by Ali Irfan Ahmed July 18, 20022002-07-18
Hi,

use _Sportl_Ctrl_Reg = 0x6B07; instead of _Sportl_Ctrl_Reg = 8; plus if u
want to send 8 bits out of the sport u have to set one less bit value in the
last four bits of the sport1 control register. That is if u want to sent 8
bits the value in the lower four bits of the control register will be 0111
not 1000. The _Sportl_Ctrl_Reg = 0x6B07; value sets the serial port in the
following state

8 data bits
right justified data
Internal RFS enable
Internal TFS enable
Receive FS Reqd with each word
Tx Frame Sync Required with each word
Internal serial clock

Hope the information is worth. I simulated the project and it works with the
above setting.

Regards,
Ali Irfan Ahmed

----- Original Message -----
From: "Martins Pukitis" <>
To: <>
Sent: Thursday, July 18, 2002 1:55 AM
Subject: [adsp] Sport interrupt simulation in VisualDSP++ 2.0 > Hello.
> Session - 2186 simulation
>
> Sport1 receive interrupt simulation doesn't work.
> I do set Streams->Source->File to Sport1RX.dat, format - hex,
> Streams->Destination->Port 1, click Connect, they add to the Active page,
> click OK. Then Set Interrupts ->RFS1, min and max both to 200, (set
> breakpoint at PM 0x24) then click F7, Reload, Run, but interrupts doesn't
> occur.
> I commented out autobufferring lines for port1, but it didn't help. IMASK
> reg is ok = 2, system control reg - also (both interrupts enabled, SPORT1
> as serial port)
> Project options:
> Generate debug information, all others unchecked (off).
> The example 3 that comes with VisualDSP++ works.
>
> Please, help.
> _____________________________________
> Note: If you do a simple "reply" with your email client, only the author
of this message will receive your answer. You need to do a "reply all" if
you want your answer to be distributed to the entire group.
>
> _____________________________________
> About this discussion group:
>
> To Join: Send an email to
>
> To Post: Send an email to
>
> To Leave: Send an email to
>
> Archives: http://groups.yahoo.com/group/adsp
>
> Other Groups: http://www.dsprelated.com/groups.php3 > ">http://docs.yahoo.com/info/terms/


Reply by Martins Pukitis July 17, 20022002-07-17
Hello.
Session - 2186 simulation

Sport1 receive interrupt simulation doesn't work.
I do set Streams->Source->File to Sport1RX.dat, format - hex,
Streams->Destination->Port 1, click Connect, they add to the Active page,
click OK. Then Set Interrupts ->RFS1, min and max both to 200, (set
breakpoint at PM 0x24) then click F7, Reload, Run, but interrupts doesn't
occur.
I commented out autobufferring lines for port1, but it didn't help. IMASK
reg is ok = 2, system control reg - also (both interrupts enabled, SPORT1
as serial port)
Project options:
Generate debug information, all others unchecked (off).
The example 3 that comes with VisualDSP++ works.

Please, help.


Attachment (not stored)
Test.zip
Type: application/zip