Skip to content

bangjii/arduino-serial9bit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

arduino-serial9bit

  1. Open directory "C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino"
  2. Backup original files :
  • HardwareSerial.cpp
  • HardwareSerial.h
  • HardwareSerial_private.h
  1. Replace with files in HardwareSerial9bit folder

How To Use?

/*
  Using arduino mega, because there's more than one serial hardware
  - Serial 0 for debug printing (serial from usb)
  - Serial 2 for serial 9 bit reading (serial from 16, 17 arduino)
*/
void setup (){
  Serial.begin (115200);  // debugging prints
  //Serial1.begin (115200, SERIAL_8N1, true);  // 9 bit mode
  Serial2.begin (9600, SERIAL_8N1, true);  // 9 bit mode
  Serial.println ("--- starting ---");
}

void loop (){
  if (Serial2.available ()){
    Serial.println((int) Serial2.read (), HEX);
  }
}

issues

https://forum.arduino.cc/t/solved-9-bit-serial-problem/496726/4

manuel-rabade/Alt9SoftSerial#1

https://github.com/nzin/xpressnet_arduino

https://forum.arduino.cc/t/uart-with-9-bits/612497

https://github.com/addibble/SoftwareSerial9

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published