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: GermanyPosts: 88 |
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: AustraliaPosts: 5907 |
It looks like your signal is inverted. Jim VK7JH MMedit MMBasic Help |
||||
lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3016 |
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: GermanyPosts: 88 |
Thats it: Serout pin#,T4800_4, ("1234abcd") Now it works. Thank you very much guys! |
||||
Print this page |