How to imitate Serial? #1568
Unanswered
espruino-discuss
asked this question in
JavaScript
Replies: 1 comment
-
Posted at 2021-07-29 by @gfwilliams What Espruino device are you running this on? I guess maybe converting the data to the While what you're doing seems possible, I think using setInterval isn't really going to work for you, since the JS execution speed may not be fast enough, and any extra code that runs will delay execution. However, you do have some other options:
Hardware SPI probably won't run at exactly the right baud rate (depending on the board you're using) but software SPI should be fine |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2021-07-28 by kervanaslan
Hello all,
I'm working on a HBS(Home bus system) with mitsumi MM1192 chip (http://pdf.datasheetcatalog.com/datasheet_pdf/mitsumi-electric/MM1192XD.pdf)
I can run this chip with Serial(19200,{tx:A2,parity='even'});
It works like Serial but there is some differences about HBS protocol.
in serial protocol 0x80 looks like this
but in home bus it is like (Each bits frequency is 52 micro seconds)
Thats why I have created a function to convert hex to home bus binary array.
And I'm trying to push this data to mitsumi MM1192 with digitalWrite.
Please don't care the hextohomebus function, may be it is wrong, i didn't test it.
But here I'm getting a memory error, probably I'm doing something wrong.
My question is
1- What I am doing wrong?
2- Is there a way to ride homebus with espruino?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions