CCS Archives - electroSome https://electrosome.com/topic-tag/ccs/ You Inspire.....We Create..... Sun, 11 Dec 2016 17:55:06 +0000 en-US hourly 1 https://wordpress.org/?v=6.1.1 PIC Microcontroller LCD Programming Problem – CCS C https://electrosome.com/topic/pic-microcontroller-lcd-programming-problem-ccs-c/ Sun, 11 Dec 2016 12:11:32 +0000 https://electrosome.com/reply/13343/ Hello sir, I have used the LCD code for 16f877A. The HEX file in your example when loaded to the PIC works fine. But when I create a new project in CCS and compile the same program as yours, the hex file generaed  is of 3KB (your HEX file is of 5KB) and when it […]

The post PIC Microcontroller LCD Programming Problem – CCS C appeared first on electroSome.

]]>
PIC C Compiler and HC-SR04 Ultrasonic Sensor https://electrosome.com/topic/picc-compilier-ultrasonic-sensor/ Mon, 08 Dec 2014 14:09:32 +0000 https://electrosome.com/topic/picc-compilier-ultrasonic-sensor/ What is wrong. The below code. Please help me. #include "C:\Users\enhee\Documents\lcd16f873a.h" #define use_portb_lcd TRUE #include <LCD.C> #byte timer1=0x10 #bit  trigger=0x07.2 #bit  echo=0x07.1 #bit on_off=0x10.0 unsigned char zai=12; void main() { float a; set_tris_c(0x02); timer1=0x10; setup_adc_ports(NO_ANALOGS); setup_adc(ADC_OFF); setup_spi(SPI_SS_DISABLED); setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1); setup_timer_1(T1_DISABLED); setup_timer_2(T2_DISABLED,0,1); setup_comparator(NC_NC_NC_NC); setup_vref(FALSE); lcd_init(); lcd_gotoxy(1,1); printf(lcd_putc,"zai medregch"); for(;;) { set_timer1(0x0000); trigger=1; delay_us(10); trigger=0; while(!echo);      […]

The post PIC C Compiler and HC-SR04 Ultrasonic Sensor appeared first on electroSome.

]]>