ah xiang
Newbie level 4
- Joined
- Mar 7, 2015
- Messages
- 6
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 46
This is my program on MicroC PRO
And this is the problem
Someone hlep me!!!
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 sbit LCD_RS at RB4_bit; sbit LCD_EN at RB5_bit; sbit LCD_D4 at RB0_bit; sbit LCD_D5 at RB1_bit; sbit LCD_D6 at RB2_bit; sbit LCD_D7 at RB3_bit; sbit LCD_RS_Direction at TRISB4_bit; sbit LCD_EN_Direction at TRISB5_bit; sbit LCD_D4_Direction at TRISB0_bit; sbit LCD_D5_Direction at TRISB1_bit; sbit LCD_D6_Direction at TRISB2_bit; sbit LCD_D7_Direction at TRISB3_bit; int value ; char value1 [15] ; void main() { TRISA.RA0=1; ADC_INIT(); LCD_INIT(); lcd_cmd(_lcd_cursor_off); lcd_cmd(_lcd_clear); lcd_out(1,1,"temperature"); delay_ms(2000); lcd_cmd(_lcd_clear); lcd_out(1,1," temp "); while(1) { value=adc_read(0); value=value*0.488; floattostr(value,value1); lcd_chr(2,9,39); lcd_out(2,10,"C"); lcd_out(2,1,value1); delay_ms(500); } }
And this is the problem
Someone hlep me!!!
Last edited by a moderator: