Picdem™ 17 demonstration board user’s guide – Arizona Picdem 17 User Manual

Page 66

Advertising
background image

PICDEM™ 17 Demonstration Board User’s Guide

DS39024B-page 60

2001 Microchip Technology Inc.

OpenUSART2(USART_TX_INT_OFF&USART_RX_INT_OFF&USART_ASYNCH_MODE&

USART_EIGHT_BIT&USART_CONT_RX,25);

// Send a carriage return and linefeed

PutsUSART2(crlf);

// Initialize the count variable

i = 0;

while(1)

{

// Convert the count variable to ASCII

ubtoa(i,str);

// Print the string

PutsUSART2(str);

// Print a carriage return and linefeed

PutsUSART2(crlf);

// Wait for a while

Delay10KTCYx(250);

Delay10KTCYx(250);

// Increment the count variable

i++;

}

}

Advertising