Author |
Message |
Topic: sth confused about MIDI code |
saroch
Replies: 13
Views: 21416
|
Forum: General CCS C Discussion Posted: Thu Nov 25, 2004 11:16 am Subject: sth confused about MIDI code |
Hi, Mark
For your code can I lengthen or shorten it ?
I mean if I want the song longer and shorter.
What kind of delay can be used ?
thx |
Topic: sth confused about MIDI code |
saroch
Replies: 13
Views: 21416
|
Forum: General CCS C Discussion Posted: Wed Nov 24, 2004 10:45 am Subject: sth confused about MIDI code |
Hi,
My real goal is to play a song from PIC.
It could be MIDI or WAV but I think MIDI uses fewer memory than WAV.
So I decide to use MIDI rather than WAV.
(PIC has only 256K memory !! If I use W ... |
Topic: sth confused about MIDI code |
saroch
Replies: 13
Views: 21416
|
Forum: General CCS C Discussion Posted: Tue Nov 23, 2004 9:36 am Subject: sth confused about MIDI code |
I don't know what MIDI code inserted to CCS code be?
I know that MIDI is just a sound that compose of each note C, D, E, ... , B.
but when we hear MIDI ,why we think that song sounds quite good eve ... |
Topic: pls give me some suggestion about converting this to 16f877 |
saroch
Replies: 15
Views: 25444
|
Forum: General CCS C Discussion Posted: Mon Nov 22, 2004 11:51 am Subject: pls give me some suggestion about converting this to 16f877 |
ckielstra,
delay_ms(500);
This gives you a single sound of 25 seconds....
Why 25 sec
It is 0.5 sec, isn't it?
Mark,
The little test program that I posted should gen ... |
Topic: pls give me some suggestion about converting this to 16f877 |
saroch
Replies: 15
Views: 25444
|
Forum: General CCS C Discussion Posted: Mon Nov 22, 2004 11:02 am Subject: pls give me some suggestion about converting this to 16f877 |
Hi, Mark
I try to make my new simple program based on your code.
Here is my code
#include <16F877.h>
#fuses HS,NOWDT,NOPROTECT,NOLVP
#define CLOCKSPEED 20000000
#use delay(clo ... |
Topic: pls give me some suggestion about converting this to 16f877 |
saroch
Replies: 15
Views: 25444
|
Forum: General CCS C Discussion Posted: Mon Nov 22, 2004 8:08 am Subject: pls give me some suggestion about converting this to 16f877 |
Hi, Mark
I made a little change to your code.
So I don't worry about pushing button.
void main(void)
{
TRISCbits.TRISC2 = 0;
InitTimer();
enable_interrupts( ... |
Topic: pls give me some suggestion about converting this to 16f877 |
saroch
Replies: 15
Views: 25444
|
Forum: General CCS C Discussion Posted: Sun Nov 21, 2004 9:57 am Subject: pls give me some suggestion about converting this to 16f877 |
oh forgot the code
/*****************************************************************************/
/* */
/* RT ... |
Topic: pls give me some suggestion about converting this to 16f877 |
saroch
Replies: 15
Views: 25444
|
Forum: General CCS C Discussion Posted: Sun Nov 21, 2004 9:56 am Subject: pls give me some suggestion about converting this to 16f877 |
oh forgot the code
/*****************************************************************************/
/* */
/* ... |
Topic: pls give me some suggestion about converting this to 16f877 |
saroch
Replies: 15
Views: 25444
|
Forum: General CCS C Discussion Posted: Sun Nov 21, 2004 9:55 am Subject: pls give me some suggestion about converting this to 16f877 |
Here is the code that i recieved form Mark and i wanna change this code for 16f877.
but when i try to change, so many problems have occured.
pls give me some suggestion to convert that code for 16 ... |
Topic: How to use PWM play the song (.mid) to speaker? |
saroch
Replies: 8
Views: 18517
|
Forum: General CCS C Discussion Posted: Sun Nov 14, 2004 10:45 am Subject: How to use PWM play the song (.mid) to speaker? |
THANK YOU VERY VERY VERY MUCH |
Topic: How to use PWM play the song (.mid) to speaker? |
saroch
Replies: 8
Views: 18517
|
Forum: General CCS C Discussion Posted: Fri Nov 12, 2004 10:36 am Subject: How to use PWM play the song (.mid) to speaker? |
how can i convert this code form HI_TECH PIC to CCS C ?
#include <pic.h>
#define TONE RB0
void InitTimer(void);
void delayms(unsigned char cnt);
void PlayNote( ... |
Topic: How to use PWM play the song (.mid) to speaker? |
saroch
Replies: 8
Views: 18517
|
Forum: General CCS C Discussion Posted: Thu Nov 11, 2004 7:22 am Subject: How to use PWM play the song (.mid) to speaker? |
Sorry I give a wrong information.
I used code loaded from website that you gave to me.
So I burnt PIC with ringtone.HEX from your website without changing anything.
thx |
Topic: How to use PWM play the song (.mid) to speaker? |
saroch
Replies: 8
Views: 18517
|
Forum: General CCS C Discussion Posted: Wed Nov 10, 2004 9:29 pm Subject: How to use PWM play the song (.mid) to speaker? |
Hi Mark,
I tried your code (ringtone.HEX) with 16F877 but it doesn't work !!
I used Xtal = 20 MHz and connected pin33 (RB0) to C = 1 uF and to speaker then shorted it to gnd.
But when 5V was app ... |
Topic: How to use PWM play the song (.mid) to speaker? |
saroch
Replies: 8
Views: 18517
|
Forum: General CCS C Discussion Posted: Wed Nov 10, 2004 10:33 am Subject: How to use PWM play the song (.mid) to speaker? |
Hi,
I use PIC16F877. I want to play the song (*.mid) to the speaker and I know that PIC has PWM module that can play this song. But how to make it?
thank in advance
saroch |
Topic: problems with Capture mode |
saroch
Replies: 1
Views: 7424
|
Forum: General CCS C Discussion Posted: Fri Oct 22, 2004 10:02 am Subject: problems with Capture mode |
here is my code
#include <16F877.h>
#fuses HS, NOLVP, NOWDT, NOPROTECT
#use delay (clock=20000000)
#define use_portb_lcd
#include <lcd.c>
int16 time;
#INT_CCP1
... |
|