Re: DSK5510



ewong1@xxxxxxxxxx wrote:
Hello eveyone,

I need help. The function provided by Spectrum Digital
"DSK5510_mset" works.
But, the following function doesn't work

void DSK5510_mset (uint32 m_addr, uint16 m_value)
{
*((uint16 *)m_addr ) = m_value;
}

Is there something else mising in this function?
What can I add to this function to make it work like
the one provided by Spectrum Digital?


It would be more helpful if you gave a little more information than just "it doesn't work" - not everyone in comp.dsp is telepathic.

At a guess you're running into compiler optimisation issues when trying to write repeated values to a register, in which case you probably need to do something like this:

void DSK5510_mset (uint32 m_addr, uint16 m_value)
{
*((volatile uint16 *)m_addr) = m_value;
}

Paul
.



Relevant Pages

  • Problems using serial port under Wince 5.0
    ... I know the hardware is OK, since the bootloader uses the serial port ... UINT16 read; ... UINT32 speed; ... void rx_wait; ...
    (microsoft.public.windowsce.embedded)
  • DSK5510
    ... void DSK5510_mset (uint32 m_addr, uint16 m_value) ... Is there something else mising in this function? ...
    (comp.soft-sys.matlab)
  • DSK5510
    ... void DSK5510_mset (uint32 m_addr, uint16 m_value) ... Is there something else mising in this function? ...
    (comp.dsp)
  • ExecutionEngineException trying to override IInternetSecurityManager
    ... public void QueryService(ref Guid guidService, ref Guid riid, out object ... void SaveObject; ... int GetSecuritySite; ... out UInt32 pdwZone, UInt32 dwFlags); ...
    (microsoft.public.dotnet.languages.csharp)
  • Marshal strings / byte arrays / structs
    ... extern ABS_StatusType ABS_WriteInArea(void* pxPath, ... iAmount, UINT16 iTimeout); ... extern ABS_StatusType ABS_UserSelectPath( ...
    (microsoft.public.dotnet.framework.interop)