Henrik, thanks for your reply.
Yes, I am getting all of the 16bit data out of the CF card. With the REPEAT....UNTIL after each block data call (4x256)
and with the GOSUB dat....RETURN used only once as a GOSUB. It isn't a timing issue with the CF card, it's that
the pulse counting "until i = 65535" seems to not work after running the program 5 times when using the GOSUB...RETURN.
Yes, I'm playing to a DAC.
The REPEAT...UNTIL is from the PBP manual and I adjusted it to work with my output pin. I'm new at this, so getting
it to work in the first place is a big deal.
The way I understand the sample from the manual:
i = 0 zeros out the word variable count
REPEAT
RD[i] = 1 aliasies the RD pin (PORTC.1 pin) to i and sets this pin HIGH to start.
i = i + 1 adds the count to word variable i
PULSOUT RD, 4 pulses the RD pin low
UNTIL i = 65535 keeps pulsing low until i variable reaches a count of 65535
This works except for the fifth time when used with the GOSUB....RETURN.
It's like the UNTIL i = 65535 hasn't counted up and stopped the pulsing.
Thanks.
Bookmarks