[SOLVED !] Shin and Shout speed is too slow


Closed Thread
Results 1 to 5 of 5

Thread: Shin and Shout speed is too slow2580 days old

  1. #1
    mhanley
    Guest mhanley's Avatar

    0 Not allowed!

    Question Shin and Shout speed is too slow

    Hi,

    Does anyone know if it is possible to change the clocking speed for Shin and Shout. The manual states it is running at 45Khz.

    I would like to clock it in the Mhz range if possible. I'm not using the hardware SPI for a number of reasons so I need to use Shin and Shout.

    I'm using it for communication with Flash memory which is shared with a second PIC micro. The Flash memory can run at up to 80Mhz

    Thanks in advance.

    M.

Attention

This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

The advertisements we display are relevant to this web site and your browsing history

Please consider supporting us by disabling your ad blocker.


Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

If you can, please report issues in the forum area WebSite / Forum Issues


Thank you for your attention.

  • #2
    Fanatical Contributor Tim's Avatar
    Join Date
    Jan 2003
    Posts
    7,682
    Thumbs Up
    Received: 47
    Given: 95
    Total Downloaded
    1.32 GB

    0 Not allowed!

    Default Re: Shin and Shout speed is too slow

    Its simple enough to write your own code.

    This my own SPI routines from my Flash memory access code

    Code:
    SPI_OutSub:    SpiIndex = 8
        Repeat
            If SPITemp.7 = 1 Then
                SPIDoPin = 1
            Else
                SPIDoPin = 0
            EndIf
            Delay1US
            SPIClockPin = 1
            Delay1US
            SPIClockPin = 0
            SPITemp = SPITemp << 1
            Dec SpiIndex
        Until SpiIndex = 0
        Return
    
    SPI_InSub:    
        SpiIndex = 8
        Repeat
            SPITemp = SPITemp << 1
            SPITemp.0 = SPIDiPin    
            SPIClockPin = 1
            Delay1US       
            SPIClockPin = 0
            Delay1US        
            Dec SpiIndex
        Until SpiIndex = 0    
        Return
    Tim

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #3
    mhanley
    Guest mhanley's Avatar

    0 Not allowed!

    Default Re: Shin and Shout speed is too slow

    Hi Tim,

    Thanks for the sample code but with the addition of the delay of 1us (DELAY1US) this would equate to a clock freq. of 500Khz. With the additional clock cycles required for processing this will be slightly lower.

    I'm using a Saleae Logic analyser and when using the standard Shin and Shout it gives me a clock frequency of 333Khz. Maybe you can shed some light on why the manual states that these are running at about 45Khz. Is it 1 Byte per Hz. This would roughly convert to 45Khz (41.625Khz).


    Below is a screen shot from Saleae.

    Thanks Again, M.
    Attached Thumbnails Attached Thumbnails SaleaeScreenShot.jpg‎  
    Last edited by mhanley; 5th January 2013 at 23:22.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #4
    Fanatical Contributor Tim's Avatar
    Join Date
    Jan 2003
    Posts
    7,682
    Thumbs Up
    Received: 47
    Given: 95
    Total Downloaded
    1.32 GB

    0 Not allowed!

    Default Re: Shin and Shout speed is too slow

    You can change the 1us delay to a nop or drop it altogether.

    The delay routine I use is a call to a routine that just says bra $2

    If you want to know what is happening then compile the code and look at the asm.
    Tim

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

  • #5
    Roshan
    Guest Roshan's Avatar

    0 Not allowed!

    Default Re: Shin and Shout speed is too slow

    Hi,

    without hardware spi you can not achive fast speed.

    to get speed read this article.

    http://www.myamicus.co.uk/content.ph...sion-using-SPI

    I hope your problem will solved.

  • Attention

    This valuable resource relies upon the very small amount of revenue generated by displaying online advertisements to our visitors.

    The advertisements we display are relevant to this web site and your browsing history

    Please consider supporting us by disabling your ad blocker.


    Note: Some users have reported issues related to ad-blockers rendering parts of this wesite unusable,
    where possible we will rectify the issues to enable you to use this resource with adblocking enabled.

    If you can, please report issues in the forum area WebSite / Forum Issues


    Thank you for your attention.

    Thread Information

    Users Browsing this Thread

    There are currently 1 users browsing this thread. (0 members and 1 guests)

       

    Similar Threads

    1. Shin/Shout difficulty
      By charliecoultas in forum Proton 24
      Replies: 5
      Last Post: 20th August 2017, 14:42
    2. Shout command too slow
      By peterc in forum Projects discussion
      Replies: 8
      Last Post: 28th May 2017, 21:25
    3. SHIn / SHOut
      By Richard in forum Proton Plus Compiler v3
      Replies: 7
      Last Post: 30th July 2009, 09:52
    4. [SOLVED !] SHIn / SHOut
      By Richard in forum Proton Plus Compiler v3
      Replies: 0
      Last Post: 12th July 2009, 07:16
    5. [SOLVED !] SHIN-SHOUT problem
      By abdelrazzac10 in forum Proton Plus Compiler v3
      Replies: 4
      Last Post: 28th May 2007, 15:09

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts