Hi,
I am trying to modulate a serial pulse from my PC but the results seem a little delayed, for example if I transmit 0x20 onto PORTA, bit 3 thus:
+----+----+----+----+----+----+ +----+----+ | | | | | | | | ------+ +----+ +-------- A i get this out on PORTA, bit 0: B +-+ +-+ +-+ +-+ +-+ +-+ +-+ +-+ +-+ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ----------+ +-+ +-+ +-+ +-+ +-+ +-+ +--------+ +-+ +--------The gap between the signal changing on porta (A), and the software detecting it and pulsing bit 0 (B)seems unduly long. it is certainly more than one run through of the main loop..
I have a suspision it is to do with the A to D converters, but I'm a little concerned about interrupt on change..
Any Ideas??