Lcd Hello World pic18f4550

here is ccs code :#include #fuses HS,NOWDT,NOPROTECT,NOLVP#use delay(clock=4000000)#include void main() {lcd_init();lcd_putc("Hello!");}LCD pins D0-D3 are not used and PIC D3 is not used.D0 enableD1 rsD2 rwD4 D4D5 D5D6 D6D7 D7 [Read More]
Tags: PIC

strange errors in ProgICD2

I prefer using mplab programmer itself but inorder to program pic 16f84 there is no other choice.
Tags: PIC

LED Blink pic18f4550

here is the code written in ccs :#include #fuses HS,NOWDT,NOPROTECT,NOLVP#use delay(clock=4000000)void main() { while (TRUE) { output_high(PIN_D1); delay_ms(500); output_low(PIN_D1); delay_ms(500); }}remeber to select PCH 16 bit to compilepin1 ---> vccpin11 ---> vccpin12 ---> gndpin13 & pin14 ---> crystal + 20pf capacitorpin20 ---> led+resistor(470 ohm)pin31 ---> gndpin32 ---> vcc [Read More]
Tags: PIC

Lcd Hello World pic16f84a

here is the mikroC code:// LCD module connectionssbit 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;// End LCD module connectionschar *text =... [Read More]
Tags: PIC