Can a smart pin receive and buffer serial data ?
Bean
Posts: 8,129
Looking at the smart pin modes it looks like it can receive a single character.
Is there a way to use the streamer to automatically store more characters ?
Or must you use an interrupt ?
Thanks,
Bean
P.S. Happy Thanksgiving to all.
Is there a way to use the streamer to automatically store more characters ?
Or must you use an interrupt ?
Thanks,
Bean
P.S. Happy Thanksgiving to all.
Comments
For small stuff like key presses, polling works fine. For bulk data, it's either set it up for temporary burst or dedicate a whole cog like the original full-duplex-serial. Msrobots has done one of the latter already.
Or you can try interrupts.
Thanks for the help,
Bean
If it's any help this is what I use in TAQOZ for serial. While the serial receive interrupts and buffers characters, I find it is easier to transmit without buffering because this is a far more efficient way at high speeds. I think I've tested mine up to about 12Mbd.
Thanks that helps a lot.
Bean
P.S. Can you explain the line "rdlong PTRA,#@_TERMINAL" ?