PDA

View Full Version : USART input buffer help



kacho
- 10th June 2004, 16:10
Hi ,
I`m working with Melabs example (serbufAx.bas)interrupt driven input buffer for USART using Assembly interrupt.
This rutine work OK . But I need capture an big string (92 elements) complete . HOW ??.
The maximum array value that work is 64 only ?.
Exist any ASM routine for reserve more space for array variable ?

Thanks for your help .

Kacho

Melanie
- 11th June 2004, 10:32
The memory arrangement on some PIC's poses problems allocating large buffer sizes. If the PIC you're using is one of those then you can try a number of things...

1. Have your string defined as the FIRST variable in your program. If this does not work then...

2. Run two smaller buffers and when one gets filled up you simply switch to using the second one. This will need some coding change on your part... but remember you should only be using the example codes as precisely that - an example - they are there for you to learn and understand what is going on, and subsequently, with that knowledge you can go and do your own to fit your application better.

Melanie

kacho
- 11th June 2004, 14:14
Thank`s Melanie ,

Could you show me an example ?. I don.t have much experience about this ....

Regards


Kacho