• AVR Freaks

Hot!H2.06 SPI_5 and SS5

Author
jtzeng
Super Member
  • Total Posts : 475
  • Reward points : 0
  • Joined: 2003/11/07 12:42:20
  • Status: offline
2020/01/14 19:26:16 (permalink)
0

H2.06 SPI_5 and SS5

H2.06, MPLAB 5.30, XC32 V2.30
Having an issue getting the SS5 to assert in buffer interrupt mode.
The drive has to take care of this as there is no way to know when the SPI will be started.
The SS5 is configured as SS5(out)
But there is no place in the driver setup to indicated to use the SS pin.
When I step through it, it disables that function.
The const struct setup to initialize the driver never sets the bool to use the SSPIN.
 

John Zigrang
JTZ Engineering, Inc.
#1

2 Replies Related Threads

    arpananand
    Super Member
    • Total Posts : 436
    • Reward points : 0
    • Joined: 2009/11/18 04:35:42
    • Location: 0
    • Status: offline
    Re: H2.06 SPI_5 and SS5 2020/01/15 20:25:34 (permalink)
    0
    in H2, there is clientConfigure API, you would need to register starting and ending callback through that. in those callback functions, you can assert and deassert SS pins in application. note that, you should use some GPIO pin as SS pin for this.
    you can check in spi driver demo to understand the flow better.
    post edited by arpananand - 2020/01/17 01:12:17
    #2
    jtzeng
    Super Member
    • Total Posts : 475
    • Reward points : 0
    • Joined: 2003/11/07 12:42:20
    • Status: offline
    Re: H2.06 SPI_5 and SS5 2020/01/16 08:58:19 (permalink)
    0
    Thanks for that post.  I looked at it and had to dive into the driver to see what was going to be passed to the callback(s).
    Documentation is very poor on SPI in the .h files.
     
    The serial_eprom example also show just controlling the SS when the buffer is added to the queue completed.
     

    John Zigrang
    JTZ Engineering, Inc.
    #3
    Jump to:
    © 2020 APG vNext Commercial Version 4.5