EB037 SD Card Sound Player mode SPI??

Forum de support pour les locuteurs de la langue française qui souhaitent écrire dans leur langue maternelle.

Moderator: Benj

Post Reply
tech
Posts: 353
Joined: Tue Sep 23, 2008 9:39 am
Been thanked: 9 times
Contact:

EB037 SD Card Sound Player mode SPI??

Post by tech »

Bonjour,

Je cherche un exemple Flowcode pour lire des fichiers audio format WAV en utilisent la fonction SPI ????

Voici ce que j'utilise:
1-EB006 (Multiprogramer + Flowcode v4)
2-EB037 (SD Card Reader Board)
3-PIC18F4455-I/P (et non un ECIO-40)
4-Crystal 20Mhz

Merci :?:

Christian

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: EB037 SD Card Sound Player mode SPI??

Post by Benj »

Bonjour Christian,

Vous pouvez utiliser cet exemple comme point de départ.

http://www.matrixmultimedia.com/mmforum ... =26&t=4850

Je pense que vous aurez besoin d'exécuter la puce à 48MHz en utilisant la PLL à se multiplier à partir de votre cristal 20MHz. L'exemple utilise un ECIO mais cela peut facilement être changé pour un dispositif 18F4455. Une chose à noter est que le périphérique SPI n'est pas tout sur un seul port de ce dispositif de sorte que vous devrez peut-être utiliser le mode logiciel pour la composante FAT pour permettre à la carte SD E-bloc pour fonctionner correctement.

Faites-nous savoir votre plus jeune.



Hello Christian,

You can use this example as a starting point.

http://www.matrixmultimedia.com/mmforum ... =26&t=4850

I think you will need to run the chip at 48MHz using the PLL to multiply up from your 20MHz crystal. The example uses an ECIO but this can easily be switched for a 18F4455 device. One thing to note is that the SPI peripheral is not all on one port on this device so you may need to use software mode for the FAT component to allow the SD card E-block to work correctly.

Let us know how your getting on.

tech
Posts: 353
Joined: Tue Sep 23, 2008 9:39 am
Been thanked: 9 times
Contact:

Re: EB037 SD Card Sound Player mode SPI??

Post by tech »

Bonjour Benj,

J'ai un problème de clicks et je crois que c’est une question de vitesse de processing de l’audio que le code audio n’a pas eu le temps de se convertir probablement un bug dans la configuration mais je ne sais pas???

Pourriez- vous me dire a partir des images et du fichier Flowcode si la configuration du PIC18F4455-I/P et correcte!?

Merci :oops:

Christian
Attachments
Chip Select.jpg
Chip Select.jpg (43.82 KiB) Viewed 5754 times
Picmicro Configuration expert.jpg
Picmicro Configuration expert.jpg (138.14 KiB) Viewed 5754 times
Sound Wav Player FAT16 V0.4.fcf
(16.03 KiB) Downloaded 250 times

tech
Posts: 353
Joined: Tue Sep 23, 2008 9:39 am
Been thanked: 9 times
Contact:

Re: EB037 SD Card Sound Player mode SPI??

Post by tech »

Benj,

Désolé l'image Chip Select n'est pas la bonne, voici la bonne image de la configuration Projet Option!

Christian
Attachments
Projet Options Clock speed.jpg
Projet Options Clock speed.jpg (61.76 KiB) Viewed 5754 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: EB037 SD Card Sound Player mode SPI??

Post by Benj »

Bonjour Christian,

Oui votre configuration ressemble ok pour moi.

Dans les paramètres de configuration d'experts essayez de changer le "fail safe clock" pour personnes à mobilité réduite.

Également vérifier vos paramètres pour "LVP" et "Extended CPU" que ceux-ci devraient également être désactivée.

Je voudrais faire un test de base 1 clignotant seconde pour confirmer que tout est ok avant de continuer avec la carte SD.



Hello Christian,

Yes your setup looks ok to me.

In the expert config settings try changing the "fail safe clock" to disabled.

Also check your settings for "LVP" and "Extended CPU" as these should also be disabled.

I would do a basic 1 second flasher test to confirm everything is ok before continuing with the SD card.

tech
Posts: 353
Joined: Tue Sep 23, 2008 9:39 am
Been thanked: 9 times
Contact:

Re: EB037 SD Card Sound Player mode SPI??

Post by tech »

Benj,

Pouvez-vous me dire quel sont les procédures pour désactivée "LVP" et "Extended CPU" ??

Merci :wink:

Christian

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: EB037 SD Card Sound Player mode SPI??

Post by Benj »

Bonjour Christian,

Ces paramètres sont disponibles dans la fenêtre de configuration expert puce comme indiqué dans votre tableau "Picmicro Configuration expert.jpg". Utilisez la barre de défilement sur ​​la droite pour afficher les paramètres supplémentaires.

LVP = Low Voltage Program.

Hello Christian,

These settings are available in the expert chip configuration window as shown in your picture "Picmicro Configuration expert.jpg". Use the scroll bar on the right to view the additional settings.

tech
Posts: 353
Joined: Tue Sep 23, 2008 9:39 am
Been thanked: 9 times
Contact:

Re: EB037 SD Card Sound Player mode SPI??

Post by tech »

Benj,

J'ai désactivée le "LVP" et "Extended CPU" et j'ai les mêmes résultats??

Merci :wink:

Christian

Post Reply