-->
Page 1 of 1

Doing carefully timed serial with ESP8266/Arduino?

PostPosted: Wed Nov 06, 2019 2:19 pm
by Thomas Cherryhomes
Hi, I am currently developing firmware for a network adapter for Atari 8-bit systems,
and I am putting the results of my code, here: http://github.com/tschak909/atariwifi

But for the moment, am constantly rewriting the sketch to do a vast number of tests in order to get the serial timing correct.

The Atari 8-bit serial IO bus (SIO) bus runs at 19200bps, but has very tight timing for commands versus data. You can see a description of the protocol timing on page 155 of this document:
http://www.virtualdub.org/downloads/Alt ... Manual.pdf

The problem here is that the serial data I am receiving from the computer is getting out of sync, and I need to find a way to reset everything serially when the COMMAND line (in my case, pin 14 on my ESP12) goes low. (this means the beginning of a command will be sent approximately a millisecond later.)

Am I going to need to disable interrupts for a time, to do this, or?

-Thom