Utilisation de la broche normalement Tx ou Rx comme E/S normale

Patrice Jean-Paul

Active member
Bonjour,

Sur un Picaxe 14M2 j'essaye d'utiliser la sortie C.5 qui est normalement utilisée comme broche Tx du cordon de programmation.

Dans le programme j'utilise la broche en faisant low C.5 ou high C.5 ça marche sans problème , mais ...

Impossible d'utiliser le cordon une fois avoir fait cela, le circuit est définitivement non reprogrammable ?

Y a-t-il une solution pour réparer l'erreur ?

J'ai un circuit qui est déjà utilisé et je cherche une sortie en plus: est-il possible d'utiliser Rx ou Tx tout en gardant la possibilité de reprogrammation ?

Je ne trouve pas de section dans la documentation sur ce sujet.

Bien cordialement,
Patrice
 

PieM

Senior Member
J'ai un sérieux doute, car C.5 sur un 14M2 est une entrée. donc High C.5 ou Low C.5, n'est même pas accepté par le contrôle de syntaxe.
 

PieM

Senior Member
Voir les instructions disconnect et reconnect.
Pour reprogrammer, faire un hard-reset du picaxe.
 

Technoman

Senior Member
Bonjour,
Sur la carte de développement AXE021 à base de 08M2, un cavalier permet de choisir entre sortie (out) et programmation (prog). Connecté sur la sortie Tx, il permet d'orienter le signal sortant soit vers le connecteur de programmation, soit vers le circuit d'application.
https://picaxe.com/docs/axe021.pdf
Vous pouvez vous en inspirer.
 

PieM

Senior Member
Pour reprogrammer, faire un hard-reset du picaxe.
Selon ce qui est connecté sur B.0, suivre le conseil de Technoman.
Une led sur B.0 fonctionne et ne perturbe pas la programmation.
 

Patrice Jean-Paul

Active member
Je ne comprend pas mais maintenant la programmation avec le cordon ne marche plus.
J'ai testé le cordon: il est ok.
J'ai réinstallé le driver
J'ai réinstallé Picace
J'ai pris un circuit intégré neuf.
J'ai testé la borne COM3 (USB): elle marche sans problème

J'ai toujours l'erreur: "Erreur : matériel non trouvé sur COM3!"
Le circuit imprimé est inchangé , mais il y a seulement le Picaxe dessus avec la prise jack

Est-ce que quelqu'un aurait une idée ?

Cordialement,
Patrice
 

Technoman

Senior Member
Bonjour,

Comme déjà évoqué par PieM, essayez un "hard reset". (Page 39 du manuel Picaxe 1 - version française)

Pour effectuer une réinitialisation matériel par l'utilisation de bouton Reset (PICAXE 28, 40 pins) :

1) Appuyez et maintenez enfoncé le bouton de réinitialisation vers le bas.
2) Cliquez sur le menu PICAXE-> Programme pour démarrer un téléchargement
3) Attendre jusqu'à ce que la barre de progression apparaisse à l'écran.
4) Attendre 1 seconde puis relâchez le bouton reset.

Pour effectuer une réinitialisation matériel par l'utilisation de l'alimentation (tout format) :

1) Déconnecter l'alimentation
2) Attendre jusqu'à ce que les capacités de découplages soient déchargées (peut prendre 30
secondes ou plus suivant les circuits).
3) Cliquez sur le menu PICAXE-> Programme pour démarrer un téléchargement.
4) Attendre jusqu'à ce que la barre de progression apparaisse à l'écran.

5) Rebrancher l'alimentation.
 

Patrice Jean-Paul

Active member
Je ne comprend pas.
Par Picaxe->Programme vous voulez dire le bouton "Téléchargement" ?
Quand je clicke ce bouton , j'obtiens toujours la même erreur "Erreur : matériel non trouvé sur COM3!"
Je ne vois aucun autre bouton.
Il y a deux menus "Connecter" et "Déconnecter" , mais le menu connecter me présente une liste qui ne contient pas PIC027

Patrice
 

piclt

Member
By Picaxe->Program you mean the "Download" button? When I click this button, I always get the same error "Error: Hardware not found on COM3!"
Do not wait until Error Hardware not found comes up
First Power off then
Click PICAXE tab
Then click Program Tab
Then switch on power
PICAXE should program

Are you using Picaxe Editor 6.2
If it cannot see the program lead it will say "Cannot Open COM port" so your must be working and seen by the editor.
There is Workspace Explorer and simulation menus on LHS or screen which are dockable or Auto Hidden. you may have to change setting to see them.
But there are options here to check COMs port, reset port, see what chip is connected and test the lead, Device manager etc.
This is the bit that talks to the AXE027.
Even with this working you will still have to reset boot the chip as above to get it working again
 
Last edited:

Patrice Jean-Paul

Active member
I read througth the manual for the PIC027 installation.
In section 3.1 part 6) I don't see the PIC027 anyware.
How should I install this component ?
 

Patrice Jean-Paul

Active member
Do you really speak about PICAXE 2.0 software ?
Your expanations are very far from what I have in my software.
Whatever things I do, I have contineously the same error.
I can unistall and reintall the software , I have still the same error.

If I try to follow your explanations, it is difficult because nothing is like you say.
 

piclt

Member
PICAXE Forum

I assume you are using the PICAXE Forum at https://picaxeforum.co.uk
There is a link to products and shop, you can see all the Picaxes there and the program lead AXE027. There is only a datasheet for you can download. free. There is a windows driver for it if it is not already on your PC...You can download that also Free
The Program Editor Ver 6.2 is also there for download free. It is just an editor IDE Programming software tool.
Are you running Windows.
In Windows Device Manager doe you see the AXE026 PICAXE USB listed under Com Ports.
If you see it in device manager then it is already installed
Post a screen dump of what you are doing
 

piclt

Member
I read througth the manual for the PIC027 installation.
In section 3.1 part 6) I don't see the PIC027 anyware.
How should I install this component ?
The datasheet is for AXE027 USB to 3.5mm jack programming cable
IT is NOT PIC027 at least here in UK.
To install it you just install the driver.
If it has listed as something wrong with RedX or Yellow? over it in Device Manager.... Right click it and click uninstall and this will uninstall it.
Then reboot PC or Click ReScan for new hardware and let it install.
Or you can click on the existing driver and click update driver.

The section 3.1 part 6 shows all this on the AXE027 datasheet.... below is the text from the datasheet

6) Find the 'AXE027 PICAXE USB' entry within the 'Other devices' section
7) Right click over 'AXE027 PICAXE USB' and select 'Update driver'
This within your PC Device Manager.....nothing to do with Picaxe Editor..... but the editor needs this installed first.

If you have dificulty reading this....does your browser have a translate button....Microsoft edge has... that is how I read you earlier posting
 
Last edited:

kfjl

Member
In section 3.1 part 6) I don't see the PIC027 anyware.
Moi non plus. Je dirais même plus, je ne vois pas de PIC027 anywhere de tout!
Je suppose que vous voulez dire AXE027.
Vous êtes sûr qu'il est branché sur COM3?
Essayez le câble sans le picaxe. Windows devrait détecter le puce FTDI. Sinon, pas la peine d'aller plus loin.
Dans poste #9 vous dites avoir changé de circuit intégré. Si c'est un picaxe neuf, il n'y a pas besoin de diconnect ou reconnect.

Installation AXE027
 

piclt

Member
... You will still have to check Device Manager of your PC and there is a link to it from the Picaxe 6.2 editor where you can check and setup your COMMs.. with all the fiddling there may be wrong drivers picked up and they will be listed under "odd" names and have RED X or YELLOW? over them. You will need to uninstall them or disable them to stop the AXE027 picking up an old driver.. Ot

Also when checking in Device Manager check what Comm number the AXE027 is on. USB ports enumerate up to large numbers.... my PC the comm number is comm26... but you should see that listed in PICAXE workspace explorer comms when setting up the picaxe you are using and the comm port it is using
 
Last edited:

Patrice Jean-Paul

Active member
Capture d'écran 2024-03-09 214636.png
Je ne peux pas installer le driver car le PC voit qu'il est déjà installé.
Si je le désinstalle , il n'y a plus de ligne AXE027 et donc je ne peux pas l'installer en suivant cette doc.
 

piclt

Member
aYou say PC see it already installed, is that when you try to update it..'s
cDo you see it in Device Manager COMM Ports with its proper name and no error redX
or is it in Other Devices . What is its number.
I thought you would post screen dump of device manager
What do you see from Picaxe editor what comm port is picked
and what device is picked Did you try Refresh com port
or Configure and Test f
it is listed in device manager it is probably installed ok
but you need to see it listed in picaxe setup w
 

piclt

Member
just noticed in #9 you said you tested the USB using terminal
how did you do that without a com port selected
or did the terminal just open
 

Patrice Jean-Paul

Active member
Here is the Compiler's page:

PICAXE Preprocessor
Version 1.0.5
Copyright (c) 2011-2015
Revolution Education Ltd

Preprocessing files...
E:\Users\utilisateur\Patrice_SSD\CAO\Fraiseuse\MoteurZ\Officiel\f2cofh2i.bas
E:\Users\utilisateur\Patrice_SSD\CAO\Fraiseuse\MoteurZ\Officiel\Pwm_v1.bas
E:\Users\utilisateur\Patrice_SSD\CAO\Fraiseuse\MoteurZ\Officiel\Fsm_Principal_v0.bas
E:\Users\utilisateur\Patrice_SSD\CAO\Fraiseuse\MoteurZ\Officiel\Potentiometre_v1.bas

PASS, preprocessing successful.

PICAXE-14M2 Compiler
Version 3.4
Copyright (c) 1996-2016
Revolution Education Ltd

Compiled successfully.
Memory used = 1206 out of 2048 bytes.

Connect power now!
Searching for hardware on COM3.

line# 0, col# 0
 

piclt

Member
The camera does not test the USB port. The camera will use its own comm port even though it is plugged into the same actual USB on the PC
Did you test the AXE027 lead as my post #22
There are option to do loop test..... link Tx and RX on the jack plug on end of lead with paper clip
Does your picaxe editor have same screens as shown in post #22
Unplug the lead from your board and do loop test with the lead plugged in at USB to PC only

Forget about programming the picaxe until you sort out the AXE027
 
Last edited:

Patrice Jean-Paul

Active member
I cabled a new board , with a new supply voltage and it is working fine !!!

I don't understand, the fact to try the Tx pin !!!

Probably the board has an issue and there is no relationship with the fact to try tu use Tx.
"The joys of electronics"

Thanks a lot for your help.
Best regards,
Patrice
 

piclt

Member
You must be running a different Picaxe editor the we run in UK.
Do you have the screen shown in #22
Do You see......
COM Port option ... Configure and Test
That opens up another screen and an option to test Download Cable
Follow the on screen instruction and keep pressing Next until
Test1-Loopback test...... You will see the paper clip, This links
Tx and Rx of the cable, so what is transmitted is looped back to your screen
Click Next.... and you will seethe test message and it will say .....
Pass... Test message 1 etc, etc,etc
If you get pass, thats it, Cable is OK and driver and Comm is installed.
Do this test anytime you have problems
 

Attachments

Technoman

Senior Member
@piclt : I don't think there is any other Picaxe editor, just the language in the settings, 6.2 for all!
If using AxePad, the version is 1.5.

@Patrice Jean-Paul :
Il n'y a que deux câbles : le AXE026 sur un port série RS232 ou le AXE027 sur un port USB.
Pour installer le AXE027, il faut suivre rigoureusement les instructions. A noter que seul le port USB utilisé lors de l'installation sera utile ; vous ne pourrez pas connecter votre câble sur un autre port.
Quel logiciel et quelle version utilisez-vous, ce n'est pas clair. Un compilateur en ligne de commande?
 

Patrice Jean-Paul

Active member
Stop !!
I have found the issue, it's not a software problem.
I cabled a new board and the new board works fine !!

Thanks a lot for your help.

Best regards
Patrice
 

PieM

Senior Member
Un principe élémentaire pour les débutants : On ne change jamais tout à la fois, et on lit les documentations.
 

Technoman

Senior Member
Un principe élémentaire pour les débutants : On ne change jamais tout à la fois, et on lit les documentations.
Je pense que c'est au terme d'un apprentissage lors d'expérimentations plus ou moins probantes que nous parvenons à une approche globale et qu’avec le recul, nous agissons avec méthode ; ce point est aussi un des objectifs d'un enseignement. Lire les documentations cela s'apprend aussi. Le débutant, débordé par les informations ou ne les comprenant pas, ne parvient pas à extraire l'information utile, les élude, s'agite et se perd...
 
Top