Forum Replies Created
Viewing 5 posts - 1 through 5 (of 5 total)
-
AuthorPosts
-
January 9, 2015 at 1:23 pm in reply to: Interfacing HC-SR04 Ultrasonic Sensor with PIC 16F676 using Hi-Tech C #10442sahuParticipant
you- Remove unnecessary statements
me- i think here every statements is necessary
you- Optimize the Lcd_Port() by using single statement, eg : PORTC = a by making necessary changes in the circuit diagram.
me – if i use single statement, eg : PORTC ,then no need Lcd_Port()
January 9, 2015 at 3:12 am in reply to: Interfacing HC-SR04 Ultrasonic Sensor with PIC 16F676 using Hi-Tech C #10438sahuParticipantwhat’s the way reduce the code size ?
sahuParticipantwhat wrong with me `
a = ADC_Read(0); involts =a*5000/255; delayMs(10); { Lcd_Clear(); Lcd_Set_Cursor(1,1); Lcd_Write_String("Mains"); /* Lcd_Set_Cursor(1,10); Lcd_Write_Char(involts%10 + 48); involts = involts/10; Lcd_Set_Cursor(1,9); Lcd_Write_Char(involts%10 + 48); involts = involts/10; Lcd_Set_Cursor(1,8); Lcd_Write_Char(involts%10 + 48); */ sprintf(s, "Float = %f", involts); Lcd_Set_Cursor(1, 10); Lcd_Write_String(s); Lcd_Set_Cursor(1,13); Lcd_Write_String("VOLT");
found error as
lib\doprnt.c; 837. bad call to typeSub()
`sahuParticipantThank you Sir
sahuParticipantPlease give me a example of first method.
-
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)