Bonjour,
nouvel utilisateur de flowcode, je cherche à savoir comment on paramètre le diviseur lorsqu'on utilise l'oscillateur interne.
En effet, mon projet fonctionne environ 50 fois trop lentement.
Merci de vos contributions.
oscillateur interne sur 16F88
Moderator: Benj
- 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: oscillateur interne sur 16F88
Bonjour,
L'oscillateur interne de l'appareil 16F88 s'exécute par défaut au 31.25KHz.
Pour permettre aux retards Flowcode etc fonctionne correctement, vous aurez besoin d'aller à la vue - Projet> Options du menu et de régler la vitesse d'horloge à 31250.
Vous pouvez augmenter la vitesse de l'oscillateur interne en ajoutant la ligne suivante de code dans une icône de code C au début de votre organigramme. Si vous faites cela, vous devez mettre à jour la vitesse d'horloge dans la fenêtre Options du projet au 4000000 ou 8000000 en fonction de la ligne de code que vous utilisez.
osccon = 0x60; //Définir la vitesse d'horloge interne pour 4MHz
osccon = 0x70; //Définir la vitesse d'horloge interne pour 8MHz
Hello,
The internal oscillator on the 16F88 device by default runs at 31.25KHz.
To allow Flowcode delays etc to work correctly you will need to go to the View -> Project Options menu and set the clock speed to 31250.
You can increase the speed of the internal oscillator by adding the following line of code in a C code icon at the start of your Flowchart. If you are doing this then you need to update the clock speed in the project options window to 4000000 or 8000000 depending on the line of code you use.
osccon = 0x60; //Set internal Clock Speed to 4MHz
osccon = 0x70; //Set internal Clock Speed to 8MHz
L'oscillateur interne de l'appareil 16F88 s'exécute par défaut au 31.25KHz.
Pour permettre aux retards Flowcode etc fonctionne correctement, vous aurez besoin d'aller à la vue - Projet> Options du menu et de régler la vitesse d'horloge à 31250.
Vous pouvez augmenter la vitesse de l'oscillateur interne en ajoutant la ligne suivante de code dans une icône de code C au début de votre organigramme. Si vous faites cela, vous devez mettre à jour la vitesse d'horloge dans la fenêtre Options du projet au 4000000 ou 8000000 en fonction de la ligne de code que vous utilisez.
osccon = 0x60; //Définir la vitesse d'horloge interne pour 4MHz
osccon = 0x70; //Définir la vitesse d'horloge interne pour 8MHz
Hello,
The internal oscillator on the 16F88 device by default runs at 31.25KHz.
To allow Flowcode delays etc to work correctly you will need to go to the View -> Project Options menu and set the clock speed to 31250.
You can increase the speed of the internal oscillator by adding the following line of code in a C code icon at the start of your Flowchart. If you are doing this then you need to update the clock speed in the project options window to 4000000 or 8000000 depending on the line of code you use.
osccon = 0x60; //Set internal Clock Speed to 4MHz
osccon = 0x70; //Set internal Clock Speed to 8MHz
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel