Hi again,
Can anyone give me code for reading adcin at exactly 1ms intervals for 1 second. I'm using a 20Mhz OSC on a 16F876. The code below is too slow presumeably as I haven't allowed for the execution times of the other instructions. Any pointers gladly receved. Ta

for x = 1 to 1000
adcin 1,potv
hserout [dec x," ",dec potv,13,10]
pause 1 '1ms delay
next x