SW006010 Microchip Technology, SW006010 Datasheet - Page 62

no-image

SW006010

Manufacturer Part Number
SW006010
Description
MPLAB 17C SOFTWARE
Manufacturer
Microchip Technology
Datasheets

Specifications of SW006010

Tool Function
Compiler
Tool Type
Compiler
Processor Series
PIC17C
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
MPLAB®
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
MPLAB
apRNOVS^-page 58
C17 C Compiler Libraries
2.12.2
#include <p17c756.h>
#include <timers16.h>
#include <usart16.h>
void main (void)
{
}
int result;
char str[7];
// configure timer0
OpenTimer0(TIMER_INT_OFF&T0_SOURCE_NT&T0_PS_1_32);
// configure USART
OpenUSART1(USART_TX_INT_OFF&USART_RX_INT_OFF&
while(1)
{
}
CloseTimer0();
CloseUSART1();
return;
while(!PORTBbits.RB3); //wait for RB3 high
result = ReadTimer0(); //read timer
if(result>0xc000)
putsUSART1(str);
WriteTimer0(0);
uitoa(result,str);
break;
Example of Use
USART_ASYNCH_MODE&USART_EIGHT_BIT&
USART_CONT_RX, 25);
//print string
//close modules
//write new value
//convert to string
 2002 Microchip Technology Inc.

Related parts for SW006010