View Full Version : Passing arrays PBP <-> Assembly
Charles Linquis
- 15th April 2006, 07:28
I need to write an assembly language ISR that fills an array and then passes that array to PBP for processing. If I dimension the array in PBP, how can I determine the first address of that array so that my assembly ISR can sequentially load it? Or is there an easier way?
I'm using 18F chips.
Ron Marcus
- 15th April 2006, 12:27
I need to write an assembly language ISR that fills an array and then passes that array to PBP for processing. If I dimension the array in PBP, how can I determine the first address of that array so that my assembly ISR can sequentially load it? Or is there an easier way?
I'm using 18F chips.
Take a look at the hardware async serial communications routine on the Melabs website. It is exactly what you want, but it does it in the form of a ring buffer. If you don't need this feature, just reset the pointers to 0 after the transfer is complete. I believe the name is "Aserbuf" or something close to that. There is a version written for the 18 series.
paul borgmeier
- 15th April 2006, 14:12
Also see this recent post
http://www.picbasic.co.uk/forum/showthread.php?t=3694
Paul Borgmeier
Salt Lake City, Utah
USA
Charles Linquis
- 16th April 2006, 01:01
Both sources were good, and I got it working.
Thanks!
Charles Linquist
Powered by vBulletin® Version 4.1.7 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.