Pic+isd4002


Closed Thread
Results 1 to 18 of 18

Thread: Pic+isd4002

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Just a teaser. I'll not post the whole thing, just the pin assignement.
    Code:
        ' LCD definition
        ' ==============
        ' 
        DEFINE LCD_DREG PORTA  ' 
        DEFINE LCD_DBIT 0      ' LCD data port : PORTA<3:0>
                               '
        DEFINE LCD_EREG PORTA  ' 
        DEFINE LCD_EBIT 6      ' LCD enable bit : PORTA.6
                               '
        DEFINE LCD_RSREG PORTA ' 
        DEFINE LCD_RSBIT 7     ' LCD RS bit : PORTA.7
    
    
        ' I/O Definition
        ' ===============
        '
        TRISA = %00110000    ' PORTA Output on :
                             '         PORTA<3:0> : LCD data 
                             '         PORTA<7:6> : LCD RS & E bit
                             '
                             ' PORTA Input on :
                             '         PORTA.4 : "ALT PLAY" Button
                             '         PORTA.5 : "PLAY" button    
                             '
        TRISB = %11110001    ' PORTB Output on : 
                             '         PORTB.1 : ISD4002 SS pin 
                             '         PORTB.2 : ISD4002 SCLK pin 
                             '         PORTB.3 : ISD4002 MOSI pin
                             '
                             ' PORTB Input on :
                             '         PORTB.0 : ISD4002 INT pin
                             '         PORTB.4 : ISD4002 MISO pin
                             '         PORTB.5 : ISD4002 RAC pin
                             '         PORTB.6 : "SETUP" button
                             '         PORTB.7 : "RECORD" button
        OPTION_REG.7 = 0     ' enable pull-up on PORTB
        CMCON = 7            ' disable analog comparator
        
        
        ' Variable definition
        ' ===================
        '
        AltPlay              var PORTA.4 ' "ALT PLAY" button
        Play                 var PORTA.5 ' "PLAY" button
        Setup                var PORTB.6 ' "SETUP" button
        Record               var PORTB.7 ' "RECORD" button
        INT                  var PORTB.0 ' ISD4002 INT pin
        SS                   var PORTB.1 ' ISD4002 SS pin
        SCLK                 var PORTB.2 ' ISD4002 SCLK pin
        MOSI                 var PORTB.3 ' ISD4002 MOSI pin
        MISO                 var PORTB.4 ' ISD4002 MISO pin
        RAC                  var PORTB.5 ' ISD4002 RAC pin
    Was setup on 16F628, you'll need to use SHIFTIN/SHIFTOUT
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2


    Did you find this post helpful? Yes | No

    Default

    The melabs LAB-XT board has a socket for this family of ISD chip. You can download the schematic and sample code:

    http://melabs.com/products/labxt.htm

  3. #3
    julioelectronic's Avatar
    julioelectronic Guest


    Did you find this post helpful? Yes | No

    Unhappy pic 16f877a(MSSP, SPI) and isd4002

    I watch the circuit that you recommended to me anderson , but the only thing that my circuit do, are sounds when pic send the pulses to isd, good i will continue treating, thanks for the help.

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    julioelectronic's Avatar
    julioelectronic Guest


    Did you find this post helpful? Yes | No

    Cool it works (isd4002)

    ok amigos it works, my error was software, ss enable/ disable.

  6. #6
    leejongfan's Avatar
    leejongfan Guest


    Did you find this post helpful? Yes | No

    Default

    Hi,
    I am using PIC16f877
    I think we have to program in SPI mode,right?
    for SPI, we only can send 8 bit at one time, but the opcode need 16 bits.
    Am I right to say we cannot use PIC16f877

  7. #7
    Join Date
    Nov 2012
    Posts
    2


    Did you find this post helpful? Yes | No

    Default Re: Pic+isd4002

    hi, i want to know how to program a ISD 4002 to record some files and play them

Similar Threads

  1. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 10:00
  2. ISD4002 Address Question
    By Atom058 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 23rd August 2009, 23:42
  3. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 14:46
  4. 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, 21:01
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23: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