alf schuster wrote: > > Hi, following problem: > My intention is to buffer serial data from a RS232 interface which works > > at a baud rate of 115.2kB and give the buffered data out every 10ms > sequently. > I have to receive and store 240 bytes of data from the serial port. > Is there a simple method to make the storing routine thinking that it > has a continous RAM of 240 bytes length? > Every solution is wellcome! > Thanks in advance - A. Schuster Here's a stab at it, (untested) movlw 0xA0 movwf FSR movlw d'240' movwf Count InLoop call receive ; get a byte movwf INDF incf FSR movlw 0xF0 xorwf FSR,W btfss STATUS,Z goto UCount movlw 0x30 addwf FSR bsf STATUS,IRP ; accesses RP 2 & 3 UCount decfsz Count goto InLoop Done... -- Best regards Tony mICros http://www.bubblesoftonline.com mailto:sales@bubblesoftonline.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics