Hello Everyone
I want to use controller's 8 pin as a switch and that will be run by DS1307 I2C RTC.
I also want to use Temperature Controller LM35 and PWM with controller.
I will also use RS232 communication with MAX232.
I have 2 option PIC16F887 and PIC16F877A.
So, can any one say me which controller is good to use here from this two.
and also say me software list that all I need to install to write code and dump program at run time using ICSP pin and to design circuit.
I have installed 3 software upto now i.e., pickit2 , MPASMWIN, MPLAB IDE.
what is different b/w pickit2 and MPASMWIN?
; progam to flash all of PortB pins on and off every 4 seconds
list p=16f877a
include p16f877a.inc
__CONFIG _CP_OFF & _WDT_OFF & _XT_OSC & _PWRTE_ON & _LVP_OFF
cblock 0X20 ; specify user regiaters
d1
d2
d3
COUNT
endc
org 0x000
GOTO Main
Main CLRF PORTB ; Set portb,c,d to digital outputs
CLRF PORTC
CLRF PORTD
BANKSEL TRISA
CLRF TRISB
CLRF TRISC
CLRF TRISD
BANKSEL 0
LOOP ; main program looP
CALL DELAY4s ; call this subrutine
MOVLW 0xFF
MOVWF PORTB ; Set port HIGH
CALL DELAY4s
MOVLW 0x00
MOVWF PORTB ; Set port LOW
GOTO LOOP
; SUBROUTINES
DELAY4s ; 4 SECOND DELAY
movlw 0x23
movwf d1
movlw 0xB9
movwf d2
movlw 0x09
movwf d3
Delay_0
decfsz d1, f
goto dly1
decfsz d2, f
dly1 goto dly2
decfsz d3, f
dly2 goto Delay_0
return
END ; END OF PROGRAM CODE
WrongThere is little difference between those 2 chips and nothing for you to worry about.
Go for the 877A as it the more modern of the two chips.
Wrong. 887 is more modern than 877A
Hi,
Thanks for the correction, misread it a 877 v 877A
However think the answer is still valid in the sense that the 877A is probably the more available and has more projects based on it than even the old 16F84A
With a few changes, code for 877A can be easily transferred to 887 (as for any PIC, datasheet reading is necessary).
887 has internal oscillator, it is cheaper than 877A, ...
For folks that are only doing Copy/Paste and then bragging on "their" project, I must say that those individuals are only attending "breaks" in between classes, rather than attending classes to LEARN something.
With a few changes, code for 877A can be easily transferred to 887 (as for any PIC, datasheet reading is necessary).
887 has internal oscillator, it is cheaper than 877A, ...
For folks that are only doing Copy/Paste and then bragging on "their" project, I must say that those individuals are only attending "breaks" in between classes, rather than attending classes to LEARN something.
as 887 has internal oscillator I no need to use any external oscillator, is it?
If yes then do i need to configure it's (887) any pin for oscillator?
Main movlw b'01100010' ; set internal osc to 4 mhz
movwf OSCCON
as 887 has internal oscillator I no need to use any external oscillator, is it?
If yes then do i need to configure it's (887) any pin for oscillator?
hi,
is it compulsory to use reset?
if I am not building reset button circuit in my circuit, is there any problem with that?
hello
i have used pic16f887 but now there is some problems with that. i mean its not working.
so, at the place of that ic can i use pic16f877a in my already made hardware?
is that any difference in code i have to made?
if yes then what i have to see before putting pic16f877a at the place of pic16f887.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?