SPI Interface on PIC16F15323


Today 13:59
Forum: Proton Plus Compiler v3
Starter: davroski
Views: 0
Replies: 2
Go to last post By: normnet
Today 10:20
Forum: FineLineIDE
Starter: normnet
Views: 33570
Replies: 159
Yesterday 20:56
Forum: The Lounge
Starter: See_Mos
Views: 0
Replies: 6
+ Reply to Thread
Results 1 to 3 of 3

Thread: SPI Interface on PIC16F15323196 days old

  1. #1
    Junior Member gdesantis's Avatar
    Join Date
    Apr 2011
    Posts
    30
    Thumbs Up
    Received: 5
    Given: 0
    Total Downloaded
    3.46 GB

    2 Not allowed!

    Default SPI Interface on PIC16F15323

    To use the SPI interface on the PIC16F15323, note the following.

    First, Table 32-3 in the device datasheet does not include all registers associated with the Master Synchronous Serial Port (MSSP1) module. Specifically, SSP1IF bit in register PIR3 which indicates when a transmission / reception bus condition is complete must be cleared in software. Secondly, certain PPS registers must be configured.

    For example, the following commands output SCLK on PORTC.0 and SDA on PORTC.1

    RC0PPS = $16 ; SCLK on PORTC.0
    RC1PPS = $15 ; SDA on PORTC.1

    Please refer to the attached files for details.
    Attached Files Attached Files

  2. 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. #2
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    2,075
    Thumbs Up
    Received: 190
    Given: 169
    Total Downloaded
    4.66 GB

    0 Not allowed!

    Default Re: SPI Interface on PIC16F15323

    Thanks for the info, that range of devices is quite interesting, particularly the 16F15325.

    If I may comment on your code

    Code:
            PORTA.0 = 0                 ;Set Low
            PORTA.1 = 0                 ;Set Low
            PORTA.2 = 0                 ;Set Low
            PORTA.4 = 0                 ;Set Low
            PORTA.5 = 0                 ;Set Low
            PORTC.1 = 0                 ;Set Low
            PORTC.2 = 0                 ;Set Low
            PORTC.3 = 0                 ;Set Low
            PORTC.4 = 0                 ;Set Low
            PORTC.5 = 0                 ;Set Low
    might be replaced with
    AND portA with %11001001
    AND portC with %11000001

    and

    Code:
    	    TRISA = %001000             ;Configure PORTA
    	    TRISC = %000000             ;Configure PORTC
    only uses 6 bits (ahh but which 6 bits?)

    BTW if yuo find that this board truncates binary values, try going to source mode.
    Last edited by towlerg; 2nd February 2019 at 11:27.
    George.

  4. 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. #3
    Junior Member gdesantis's Avatar
    Join Date
    Apr 2011
    Posts
    30
    Thumbs Up
    Received: 5
    Given: 0
    Total Downloaded
    3.46 GB

    0 Not allowed!

    Default Re: SPI Interface on PIC16F15323

    ALL
    An oscilloscope screenshot of the SPI output vs. time is attached.
    Gerald DeSantis
    Attached Images Attached Images

  6. 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. Request for Assistance - PIC16F15323
    By gdesantis in forum Proton Plus Compiler v3
    Replies: 5
    Last Post: 31st December 2018, 00:43
  2. Help in 3 wire spi interface tft screen.
    By davidsgr in forum Proton Plus Compiler v3
    Replies: 9
    Last Post: 25th August 2014, 10:48
  3. SPI - (Can't belive a search on SPI yields no results?)
    By Peter Truman in forum Proton Plus Compiler v3
    Replies: 12
    Last Post: 30th September 2012, 10:12
  4. Need Help on TFT-proto SPI interface
    By davidsgr in forum Proton Plus Compiler v3
    Replies: 2
    Last Post: 22nd February 2012, 20:06
  5. TFT Interface
    By cotang in forum Proton Plus Compiler v3
    Replies: 11
    Last Post: 9th July 2007, 19:11

Members who have read this thread : 52

Actions :  (Set Date)

You do not have permission to view the list of names.

Posting Permissions

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