Professional Documents
Culture Documents
* Project name:
* Copyright:
* Revision History:
20120116:
* Description:
* Test configuration:
MCU: PIC18F87K22
http://ww1.microchip.com/downloads/en/DeviceDoc/39960b.pdf
http://www.mikroe.com/eng/products/view/815/easypic-pro-v7-
development-system/
http://www.mikroe.com/eng/products/view/7/mikroc-pro-for-pic/
* NOTES:
- Place LM35 in proper position and place jumper J4 in the upper position (RA3).
(board specific)
*/
// LCD module connections
float temp;
char txt[15];
void main() {
ANCON0 = 0x00; // Configure PORTB pins as digital
ANCON2 = 0x00;
ANSEL3_bit = 1;
Lcd_Cmd(_LCD_CURSOR_OFF); // Cursor of
temp_res = 0;
do {
txt[4] = 0;
} while(1);