Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 19th August 2007, 11:52 AM   (permalink)
Default pic16f84 help needed

i am trying to use pic16f84 but can'nt do so . please some one help me i have created uJDM programmer which is successfully writing hex file in pic. but when i put pic in circuit (e.g led flasher ) it do'nt work. please help me.
yokivo (yokivo(at)yahoo(dot)com)
yokivo is offline  
Old 19th August 2007, 02:43 PM   (permalink)
Default

I don't think too many people will be able to help you with the information provided.

Try posting your code and if you don't have schematics, post how you have your circuit wired (ie. what ports and pins go to what).
Kyle-s4h is offline  
Old 19th August 2007, 05:29 PM   (permalink)
Default

As Kyle-s4h said, post your .ASM code and schematic. Then we at least have a chance to help with your problem.
OY2L is offline  
Old 20th August 2007, 04:30 AM   (permalink)
Default

If there is no PIC in the programmer also some software’s verify success after programming. But actually there was no any PIC in the programmer.

Single transistor uJDM programmer well working with the 84A PIC. Better post the coding as earlier mentioned. So we can determine which is wrong.
__________________
Gayan

My Website
http://gsmicro.blogspot.com/
Gayan Soyza is offline  
Old 20th August 2007, 04:46 AM   (permalink)
Default

Quote:
Originally Posted by Gayan Soyza
If there is no PIC in the programmer also some software’s verify success after programming. But actually there was no any PIC in the programmer.

Single transistor uJDM programmer well working with the 84A PIC. Better post the coding as earlier mentioned. So we can determine which is wrong.
Haha, that's crap software
Luckily the software I use doesn't. I won't show verify or programming success if there is no PIC But it shows erase completed even there is no PIC.
I seldom use the erase button because I've set it to auto erase before programming.
__________________
Superman returns..
bananasiong is offline  
Old 24th August 2007, 07:46 AM   (permalink)
Default

Ok here is asm and schematic i used please tell me if i have some problem with it. thanks in advance.



;File DEMO.ASM
;Assembly code for PIC16F84 micro controller
;Blinks LED's on the outputs in a rotating pattern.
;With 75khz osc, each LED stays on half a second.
;CPU configuration
; (its a 16F84,RC Oscillator, watchdog timer off, power-up timer on)
processor 16f84
include <p16f84.inc>
_config _RC_OSC &_WDT_OFF &_PWRITE_ON
;Declare variables at 2 memory locations.
J equ H'1F' ;J=Address hex 1F
K equ H'1E' ;K=Address hex 1E
;Program
org 0 ;start at address 0
;Set port B as output and initialize it
movlw B'00000000' ;w : =00000000 binary
tris PORTB ;port B ctrl register := w
movlw B'00000001' ;w := 00000001 binary
movwf PORTB ;port B itself := w
;Rotate the bits of port B leftward
mloop: rlf PORTB,f
;Waste some time by executing nested loops.
movlw D'50' ;w := 50 decimal
movwf J ;J :=w
jloop: movwf K ;K :=w
kloop: decfsz J,f ;J = J -1, skip next if zero
goto kloop
decsz J,f ;J = J - 1, skip next if zero
goto jloop
;Do it all again
goto mloop
end


[IMG]C:\Documents and Settings\ansr1\My Documents\My Pictures\ch.bmp[/IMG]
yokivo is offline  
Old 24th August 2007, 08:15 AM   (permalink)
Default

After _config line apply this coding & see but its better use 4.7K resister & 22pf capacitor in your RC oscillator.


Code:
	org	0x0000
	
	bsf	STATUS,RP0
	clrf	TRISA
	clrf	TRISB
	bcf	STATUS,RP0
	clrf	PORTB
	clrf	1Fh
	clrf	1Eh

Main	bcf	STATUS,C
	movlw	b'00000001'
	movwf	PORTB
	call	DELAY
	rlf	PORTB,f
	call	DELAY
	btfss	STATUS,C
	goto	$-3
	goto	Main

DELAY	decfsz	1Fh,f
	goto	$-1
	decfsz	1Eh,f
	goto	$-3
	Return

	end
__________________
Gayan

My Website
http://gsmicro.blogspot.com/

Last edited by Gayan Soyza; 24th August 2007 at 08:19 AM.
Gayan Soyza is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
PIC16F84 Queries vicgray Micro Controllers 19 1st June 2007 09:52 AM
Need PIC16F84A Cool Project Agent 009 Micro Controllers 158 11th March 2007 07:15 AM
pic16f84 programmer schematic needed! AMPdeck Micro Controllers 13 9th October 2004 03:13 AM
Which PIC16F84? Jeggyman Micro Controllers 8 13th May 2004 03:25 PM
pic16f84 to control ac appliances vortech1 Micro Controllers 2 27th April 2004 03:07 PM



All times are GMT. The time now is 11:20 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker