Well, i really dont know why i didnt test the version using buffered output. But i've tested it now, and the program takes only almost 5 secs. well, seems that the problem was the 'lot' of calls that pint() makes (in that case).

i'll check the DMA and i think that the problem is solved.

thank you all.