PIC Audio


Closed Thread
Results 1 to 29 of 29

Thread: PIC Audio

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Posts
    15


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Normnet View Post
    See M25P32 PIC Audio **warning, other compiler**
    Includes hardware SPI routines.

    Norm
    Norm,
    Great project. I think I read about it last week when I was searching for PIC Audio Projects. Thanks for the link and the additional info. Where did you originally get the info for the SPI harware routines if they aren't in the PBP or Proton Manual?? Does RealBasic cover it in their manual?

  2. #2
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default

    Learn hardware SPI routines:

    1.Read data sheet timing diagrams.

    2.Test with working SHIFTOUT and SHIFTIN program. (SHIFTOUT pbp & SHOUT proton are almost identical)

    3.Bitbang above program, something like:
    low CS pin
    pause
    low clock pin
    pause
    high dataout pin (bit 7 = 1)
    pause
    high clock pin
    pause
    low clock pin
    pause
    low dataout pin (bit 6 = 0)
    etc.

    Watch on scope or if you don't have a scope make a led driver with pin > N channel FET > pullup & P channel FET > LED.

    4.Now timing known. Read PIC 452 data sheet page 130 for your SPI configuration of
    SSPSTAT = %01000000
    SSPCON1 = %00100010

    See SPI clk speed adjustment post 13.
    Hardware SPI extremely fast compared to SHOUT.
    Sends and receives in 3line instruction.

    Norm

Similar Threads

  1. Replies: 33
    Last Post: - 8th September 2010, 12:28
  2. pic to pic ir link versus wired link : help please anyone
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th May 2008, 22:01
  3. Pic driven digital audio delay
    By skimask in forum Off Topic
    Replies: 12
    Last Post: - 19th April 2007, 21:42
  4. Audio Encoding and playback in a PIC
    By Rob in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 24th March 2005, 09:56
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th March 2005, 00:14

Members who have read this thread : 0

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