Comments on: Blinking LED using PIC Microcontroller with Hi-Tech C https://electrosome.com/blinking-led-pic-microcontroller-hi-tech-c/ You Inspire.....We Create..... Sat, 17 Mar 2018 01:53:42 +0000 hourly 1 https://wordpress.org/?v=6.1.1 By: Utkarsh Verma https://electrosome.com/blinking-led-pic-microcontroller-hi-tech-c/#comments/7018 Sat, 17 Mar 2018 00:39:02 +0000 https://electrosome.com/?p=6773#comment-7018 You have got one thing wrong. To initialize pins as output, TRIS registers need to be set to 0, not one.

]]>
By: Iuly https://electrosome.com/blinking-led-pic-microcontroller-hi-tech-c/#comments/6973 Sat, 30 Dec 2017 14:45:00 +0000 https://electrosome.com/?p=6773#comment-6973 need a lil help, i have 16F876A, with the folowing code

start

banksel TRISB
banksel TRISC
movlw 0XF0
movwf TRISB
movwf TRISC
movlw 0XF0
banksel PORTB
banksel PORTC

main

bcf PORTB,0
bcf PORTC,3
; nop
; nop
call delay8b
call delay8b
call delay8b
call delay8b
call delay8b
call delay8b
call delay8b
call delay8b
call delay8b

bsf PORTB,0
bsf PORTC,3
call delay8b
call delay8b
call delay8b
call delay8b
call delay8b
bcf PORTC,0
bcf PORTC,1
bcf PORTC,2
bcf PORTC,4
call delay8b
call delay8b
call delay8b
call delay8b
call delay8b
call delay8b
call delay8b
goto main

delay8b

movlw 0xFF
movwf TEMP1
d13 movlw 0xFF
movwf TEMP2
decfsz TEMP1
goto d12
goto d1r; RET
d12 decfsz TEMP2
goto d12
goto d13
d1r return
; remaining code goes here
goto main

END ; directive ‘end of program’
but I can’t make my rgb to function, can any1 help me ?

]]>
By: Dhara https://electrosome.com/blinking-led-pic-microcontroller-hi-tech-c/#comments/6860 Fri, 25 Aug 2017 10:07:00 +0000 https://electrosome.com/?p=6773#comment-6860 Its working
We can use delay as the separate function
It works in hardware also

]]>
By: Suraj Agarbal https://electrosome.com/blinking-led-pic-microcontroller-hi-tech-c/#comments/6595 Tue, 03 Jan 2017 01:52:00 +0000 https://electrosome.com/?p=6773#comment-6595 In reply to Ligo George.

hi,
plz help me with this.
cofig as same it given in above exmple.

#include
#define _XTAL_FREQ 4000000
void main()
{
TRISB=0X00;
PORTB=0X00;
while(1)
{
PORTB=0XFF;
_delay_ms(100);
PORTB=0X00;
_delay_ms(100);
}
}

]]>
By: Ligo George https://electrosome.com/blinking-led-pic-microcontroller-hi-tech-c/#comments/6476 Sun, 27 Nov 2016 07:33:00 +0000 https://electrosome.com/?p=6773#comment-6476 In reply to Irvin.

You need a pic microcontroller programmer (a hardware unit) for that.

]]>
By: Irvin https://electrosome.com/blinking-led-pic-microcontroller-hi-tech-c/#comments/6401 Tue, 04 Oct 2016 11:04:00 +0000 https://electrosome.com/?p=6773#comment-6401 How to program the PIC microchip? where will i program it and where will i plug it? new student here.

]]>
By: Ligo George https://electrosome.com/blinking-led-pic-microcontroller-hi-tech-c/#comments/5776 Sun, 24 Jan 2016 07:49:00 +0000 https://electrosome.com/?p=6773#comment-5776 In reply to Sumon Ahmed.

What was the error ? Make sure that you choosen the correct compiler.

]]>
By: Sumon Ahmed https://electrosome.com/blinking-led-pic-microcontroller-hi-tech-c/#comments/5754 Mon, 18 Jan 2016 08:47:00 +0000 https://electrosome.com/?p=6773#comment-5754 In reply to Ligo George.

Sir, I am a student.I recently start to program of PIC16f877a.for blink led.I installed
1. MPLAB IDE v8.92,
2. picc-9_82 win,
3. picclite-setupnew,
4. univesal toolsuite -1.37 on my computer.

and I learn about c code, like decimal,binary,hexadecimal and octal language.
I showed some example from web site.I try to built blinkled.c file.but the feedback will built failed.Pls anyone help me to built binkled.c program.wait for feedback.

thanks you……

]]>
By: Ligo George https://electrosome.com/blinking-led-pic-microcontroller-hi-tech-c/#comments/5422 Sat, 03 Oct 2015 09:57:00 +0000 https://electrosome.com/?p=6773#comment-5422 In reply to Wafi Zaini.

Try changing your microcontroller.

]]>
By: idigo charles https://electrosome.com/blinking-led-pic-microcontroller-hi-tech-c/#comments/5375 Wed, 30 Sep 2015 19:01:00 +0000 https://electrosome.com/?p=6773#comment-5375 Help my Proteus 8 shuts down each time I run a simimulation, any assistance pls. Its a cracked version.

]]>