question about how to implement ASM and ENDASM


Results 1 to 2 of 2

Threaded View

  1. #1
    Join Date
    Mar 2008
    Posts
    79

    Default question about how to implement ASM and ENDASM

    Hi
    I want to include a sound output on the 16F877 which I THINK I've figured it out ok, and can THINK my code willget it to play simple sounds

    However I've found Roman Black's BTc Sound Encoder 2.0 Software which converts sound (in wave files) to a 1-bit format that can be played back on microprocessor chip

    The sound is output on 2 pins of the PIC as follows:

    ; Digital ----------2R-----,
    ; |
    ; Digital ----------2R-----*----- Analogue
    ; | out
    ; |
    ; |
    ; C = 0.22 uF
    ; |
    ; |
    ; |
    ; Gnd

    The generated file is in ASM format, which I understand I can include by using the ASM command, but how do you define what ports the sound is to be played out of?

    I've included the sound sample I wish to try here (its a clip from star trek) (its renamed to .txt as .asm files arent allowed for some reason)

    Any ideas how to proceed with this?


    The problem being as i see it, I've got a generated wave table but no playback algorithm??

    How can I use this and have the sound played on say for example PORTD.0 and PORTD.1 of a 16F877?
    Attached Files Attached Files

Similar Threads

  1. Quadrature encoder and ASM Interrupts. questions..
    By godfodder in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 17th March 2013, 14:45
  2. ASM help
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 21st October 2009, 03:08
  3. Problem using ASM instruction
    By ewandeur in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 3rd April 2008, 15:26
  4. Asm...Endasm
    By Socal in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 18th April 2007, 05:27
  5. Making PBP code more modular
    By forgie in forum General
    Replies: 30
    Last Post: - 25th October 2005, 16:24

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