Roman Black Sound (btc)


Results 1 to 40 of 58

Threaded View

  1. #16
    Join Date
    Jan 2007
    Location
    Brazil
    Posts
    108


    Did you find this post helpful? Yes | No

    Default

    I recorded a 5 sec 8-bit mono 22050Hz sound... then I stored it in the 24C512..

    then I put this on the 16F877:

    Code:
    LOOP:   
          I2CREAD DPIN,CPIN,$A0,B0,[ATUAL, PROX] ' Read 2 locations in a row
          B0 = 2
          REPEAT
            while F_nova = 0 : wend
                f_nova = 0
                I2CREAD DPIN,CPIN,$A0,B0,[PROX]
                b0 = b0 + 1
          'UNTIL B0 = 4997
    goto loop 
      
    disable
    PPL:    PIR1.0 = 0 
            TMR1H = LOAD.HIGHBYTE
            TMR1L = LOAD.LOWBYTE
            BUFFER.6 = ATUAL.7
            PORTD.1 = BUFFER.6
            PORTD.0 = BUFFER.7
            BUFFER = BUFFER << 1
            ATUAL = ATUAL << 1
            f_ctrl = F_Ctrl + 1
            if F_ctrl = 8 then
                F_NOVA = 1  
                f_ctrl = 0
                atual = prox
            endif
    RETURN
    ENABLE
    Well, what I get is a slow and noise sound of what I had recorded. It is recognizable but isn't that good..

    I've tried increasing TMR1 interrupt but it did not make a difference...

    So, next steps:

    I'll try to user asm interrupts (instant interrupt..DT)
    try not to use I2CREAD..(editing: So, i've got to use MSSP..... Well, I suspect that there is no @ HI2CREAD yet, right? )

    Well, that is all..

    danke schön..
    Last edited by sirvo; - 12th December 2008 at 01:50.
    Sylvio,

Similar Threads

  1. Delayed output 10 secs
    By lilimike in forum mel PIC BASIC Pro
    Replies: 37
    Last Post: - 14th October 2011, 06:28
  2. new to PIC programming could really do with some help
    By karenhornby in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 5th March 2008, 14:03
  3. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 20:36
  4. Sound and sound control with minimal parts
    By bartman in forum General
    Replies: 23
    Last Post: - 18th January 2005, 14:08
  5. Re: quick fix for sound command?
    By Melanie in forum Code Examples
    Replies: 0
    Last Post: - 9th July 2004, 01:44

Members who have read this thread : 1

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