#pragma option f0 /* remove page breaks from listing file */ /* * COP8C Code Development System * Tutorial Example * IOPORT.C * This code may be adapted for any purpose * when used with the COP8C Code Development * System. No warranty is implied or given * as to their usability for any purpose. * * (c) Copyright 2000 Byte Craft Limited * 421 King St.N., Waterloo, ON, Canada, N2J 4E4 * VOICE: 1 (519) 888 6911 * FAX : 1 (519) 746 6751 * email: support@bytecraft.com * * REVISION HISTORY * v1.00 AL 01/2000 Initial Version. */ #include #include /*_ioport_*/ void main(void) { DDR(PORTL,IIIIOIII); /* set PORTL.3 to an output */ while(1) /* loop forever */ PORTLD.3 = !PORTLD.3; /* toggle the output pin */ } /*_ioport_*/