Code Monkey home page Code Monkey logo

Comments (3)

gfwilliams avatar gfwilliams commented on September 22, 2024 1

Ok, just added 7 bit support via software. If you use one of the latest cutting edge builds I think this should be fixed.

It should all be fine apart from 8O1 which will now error, as this can't be done with the chip's hardware

from espruino.

gfwilliams avatar gfwilliams commented on September 22, 2024

Hi,

Sorry for the delay - I've just looked into this, and unfortunately the actual UART hardware on the nRF52832 chip doesn't support 7 bit or non-even parity: https://infocenter.nordicsemi.com/pdf/nRF52832_PS_v1.4.pdf

I'm wondering what the best way of handling this is... 7 bit + parity is effectively transmitted/received the same as 8 bit without parity, so I guess we could detect if 7 bit is specified and if so could mask of the received data to 7 bits - parity wouldn't be checked but at least you'd get the right data.

Do you need to be able to send data as well? If so then we'd have to calculate the parity bit inside Espruino and then set the top bit of the data we send to that, but it could work...

PS: I also randomly get serial readings when I power the Puck.js with a CR2032 battery

Have you got ground connected as well as serial RX/TX? If not then that could explain the bad readings?

from espruino.

estallio avatar estallio commented on September 22, 2024

Thanks! It works now :)

from espruino.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.