Vale, no se por qué tenía en mente que la transmisión debía ser en serie, pero claro, en paralelo me ahorro muuucho tinglado.
"The Commodore 64 gives you complete control over Port B on VIA chip #1. Eight lines for input or output are available, as well as 2 lines for handshaking with an outside device. The I/O lines for Port B are controlled by two locations. One is the port itself, and is located at 56577 ($DD01 hex). Naturally you PEEK it to read an input, or POKE it to set an output. Each of the eight I/O lines can be set up as either an input or an output by setting the data direction register properly. It is located at 56579 ($DD03 hex)."
Vale, o sea, que según esto, uso el puerto B del commodore con un puerto del pic, y le paso los bits tal cual. Configuro la dirección $DD03 como entrada, y simplemente con un peek en $DD01, leo los datos que le estén llegando al puerto... así de fácil?
Y una pregunta boba... si quiero mandar los datos en palabras de 8 bits. Es decir, madar 8 bits, el C64 los lee, otros 8 bits, el C64 lee, etc... Hay alguna manera sencilla de saber cuándo el Commodore ha leído, para mandarle otros 8 bits? Algún Flag o algo por el estilo?? Tiene algo que ver con esto? as well as 2 lines for handshaking with an outside device
Muchas gracias, Jeff. Me ha sido muy útil!