isd4002 problems help required please


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Dec 2004
    Location
    USA
    Posts
    36


    Did you find this post helpful? Yes | No

    Default

    Hi Nick,

    I used the SETPLAY command (%11100000) instead of PLAY (%11110000). It went something like this:

    CmdPlay VAR WORD
    CmdPwrUp CON %0010000

    SHIFTOUT MOSI, SCLK, 0, [CmdPwrUp\8]
    HIGH SS
    PAUSE 20
    LOW SS

    CmdPlay = %111000010001011 'SETPLAY + address
    SHIFTOUT MOSI, SCLK, 0, [CmdPlay\16]
    HIGH SS

    Klaus

  2. #2
    Join Date
    Nov 2005
    Location
    Cambridge UK
    Posts
    45


    Did you find this post helpful? Yes | No

    Default

    Hi Klaus,

    Thanks for the code example, I have checked the code and I am using set_play (11100000). The problem I have is reading in the play address using 4 bits on porta and then looking it up in the array. I have included the full code in notepad if you want to look at it. I dont think my 1st post was very clear.

    I am going to keep your code sample and play with it once I get this working

    thanks again
    Nick
    Attached Files Attached Files

  3. #3
    Join Date
    Sep 2003
    Location
    INDIA
    Posts
    161


    Did you find this post helpful? Yes | No

    Default Can you share the Code !

    Hi Nick,

    Can you share the code once done. I have a similar chip APR6016 to play with.

    Thanks for the start code.

    regards

  4. #4
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Smile

    Hi Nick,

    I haven't used a PIC in this manner but I think the line:
    "TRISA = %00001111 'Bits 0-3 address select"
    is wrong. TRISA sets the data direction for PortA.

    Now if you had "TRISA = %00000000" then all of the lines of PortA are set as outputs. The next line should then be "PortA = %00001111".

    This would then turn PortA 0 - 3 on and 4 - 7 off.

    BobK

    Sorry, I didn't look at the date of the original post!

  5. #5
    Join Date
    Nov 2005
    Location
    Cambridge UK
    Posts
    45


    Did you find this post helpful? Yes | No

    Default

    Hi BobK,

    PortA bits 0-3 are for a binary switch; they set the play address for the isd4002.

    charudatt,
    I have worked out all the problems myself, now it stores the address to eeprom and can be selected via the binary switch using a lookup table. Is this what you are after? Contact me via email in my personal info and I will send you the completed code.

    Regards
    Nick

  6. #6
    Join Date
    Nov 2005
    Location
    Cambridge UK
    Posts
    45


    Did you find this post helpful? Yes | No

    Default

    Hi BobK,

    PortA bits 0-3 are for a binary switch; they set the play address for the isd4002.

    charudatt,
    I have worked out all the problems myself, now it stores the address to eeprom and can be selected via the binary switch using a lookup table. Is this what you are after? Contact me via email in my personal info and I will send you the completed code.

    Regards
    Nick

  7. #7
    Join Date
    Sep 2003
    Location
    INDIA
    Posts
    161


    Did you find this post helpful? Yes | No

    Default Sent A Pm!

    Hi Nick,

    Sent You A Pm Some Days Back. Don't Know If You Got It.

    Regards
    Charudatt

  8. #8
    Join Date
    Sep 2003
    Location
    INDIA
    Posts
    161


    Did you find this post helpful? Yes | No

    Default Fyi - Apr6016 Design

    JUST IN CASE IF SOME ONE WAS INTERESTED, I HAVE A SIMILAR PROJECT USING APR6016 IC.

    THIS CONNECTS TO A DEVELOPMENT BOARD FOR CONTROL.

    APR6016 IS MANUFACTURED BY APLUS AND THE DATASHEET CAN BE FOUND AT http://www.aplusinc.com.tw/data/reco...et/apr6016.zip

    REGARDS
    Attached Images Attached Images

Similar Threads

  1. Problems with U2 programmer C30 compiled code
    By minimii in forum Off Topic
    Replies: 0
    Last Post: - 5th November 2009, 10:43
  2. 2.60 + MCSP problems
    By HenrikOlsson in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 27th September 2009, 16:42
  3. ISD4002 Address Question
    By Atom058 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 24th August 2009, 00:42
  4. Input problems
    By ALFRED in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 23rd July 2006, 22:02
  5. Problems with 16F876 on interrupts an WRITE / READ
    By BigWumpus in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 20th December 2005, 15:38

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