Hi Folks,

I'm working on a project where I'm simultaneously receiving, manipulating, and transmitting serial data. This data comes and goes in 64-byte chunks.

I'd like to set up an interrupt routine in assembly language to receive the data, and then use PBP to handle the rest of the functionality.

Serial reception will be through the chip's UART (an 18F part) and transmission will be done in software. The incoming and outgoing baud rates are wildly different, so I can't just use the TX side of the same UART.

Nor can I receive a packet, reset the UART to a different baud rate and then retransmit, as I'll miss critical incoming data.

Therefore, the transmit and receive threads need to run concurrently and independently.

Here's the question:

If I define an array in PBP like this:

DataIN VAR byte[64]

how do I access it from within the .asm routine?

I'm sure it's not difficult, but I can't quite wrap my brain around it.

I know that a single PBP variable Foo can be accessed as _Foo in assembly. But how does it work with an array?

JEC