Using port 5 as I/O's
Chris Harrison <[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
Hi all, I've have been been looking at the TINI as part of my final year project of my masters degree. As part of this I carried out some simple tests looking at the capabilities of using Port 5 as I/O's. I found that minim time to switch form high to low and back to high was approximately 1.7 ms (600Hz). This was implemented using the Java Class com.dalsemi.system.BitPort. This seemed relatively slow so i wrote comparative C code which directly programmed the register, which unsurprisingly was faster and took about 2.3 micro sec (400kHz). This however seems disproportional faster. So was wondering if anyone could give me a explanation to what is taking the time when using the BitPort class implementation and if there is any better way of using the bits on port 5 as I/O's using Java? Regards Chris _______________________________________________ TINI mailing list TINI-6tN4nzCoH/[email protected] To UNSUBSCRIBE, edit your profile, or see list archives: http://lists.dalsemi.com/mailman/listinfo/tini