Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 00:59 02 May 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Wrong Characters UART Communication with PICAXE

Author Message
Vampire05
Regular Member

Joined: 06/12/2020
Location: Germany
Posts: 88
Posted: 09:01pm 22 Apr 2021
Copy link to clipboard 
Print this post

Hello People,

I need your help, please. I connected a PICAXE Microcontroller to a Micromite (or Computer) over UART. The Baudrate is 4800. When i send the String "1234abcd" on the PICAXE -> i receive the String "g3fO'N" on Micromite / Computer. The Only Character, that is received correctly is the "U".

Here is the PICAXE Code:

main:
sertxd("1234abcd")
pause 1000
goto main


The Baudrate must be correct, because the Terminal in the PICAXE Editor shows (at 4800 baud) the right Charecters.

Are there special UART options on the PICAXE?
Edited 2021-04-23 07:01 by Vampire05
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5907
Posted: 09:07pm 22 Apr 2021
Copy link to clipboard 
Print this post

It looks like your signal is inverted.

Jim
VK7JH
MMedit   MMBasic Help
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3016
Posted: 09:09pm 22 Apr 2021
Copy link to clipboard 
Print this post

Typical PICAXE communication is "inverted"--idles opposite of what the micromite expects. Try

Serout pin#,T4800_4, ("1234abcd")

The "T" in T4800 stands for "True", i.e. non-inverted.

SERTXD will always be inverted.

~
Edited 2021-04-23 07:11 by lizby
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
Vampire05
Regular Member

Joined: 06/12/2020
Location: Germany
Posts: 88
Posted: 09:18pm 22 Apr 2021
Copy link to clipboard 
Print this post

Thats it:

Serout pin#,T4800_4, ("1234abcd")


Now it works.  
Thank you very much guys!
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024