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
 
Tools
Old 29th April 2008, 04:21 PM   #16
Default

Quote:
Originally Posted by Gayan Soyza
Code:
movlw    b'00000011'    ;set bit 0,1
movwf    PORTB
Or if you don't want to affect the rest of the bits in PORTB, use iorwf instead.
__________________
bananasiong
bananasiong is offline  
Old 19th October 2008, 05:30 AM   #17
Default

I am using PIC starter programmer

when I programmed it this error shows up
Code:
PICSTART Program\Verify Report
19-Oct-2008, 08:28:21

Device Type: PIC16F84A
Address Range 0-17


Program Memory Errors

Address  Good  Bad

0000:    1683  FFFF
0001:    3000  FFFF
0002:    0085  FFFF
0003:    1283  FFFF
0004:    3002  FFFF
0005:    0085  FFFF
0006:    200B  FFFF
0007:    3000  FFFF
0008:    0085  FFFF
0009:    200B  FFFF
000A:    2804  FFFF
000B:    3011  FFFF
000C:    008C  FFFF
000D:    305D  FFFF
000E:    008D  FFFF
000F:    3005  FFFF
0010:    008E  FFFF
0011:    0B8C  FFFF
0012:    2814  FFFF
0013:    0B8D  FFFF
0014:    2816  FFFF
0015:    0B8E  FFFF
0016:    2811  FFFF
0017:    0008  FFFF


Configuration Memory Errors

Field :		Oscillator
Expected:	XT
Received:	RC

Field :		Power Up Timer
Expected:	On
Received:	Off
The codes which I am using is
Code:
    list      p=16F84A             ; list directive to define processor
    #include <p16F84a.inc>         ; processor specific variable definitions

    __CONFIG   _CP_OFF & _WDT_ON & _PWRTE_ON & _XT_OSC


	cblock	0x0c
	d1
	d2
	d3
	endc

		bsf		STATUS,5
		movlw	00h
		movwf	TRISA
		bcf		STATUS,5

START	movlw	02h
		movwf	PORTA
		call 	Delay2sec
		movlw	00h
		movwf	PORTA
		call 	Delay2sec
		goto	START


Delay2sec
			;1999996 cycles
	movlw	0x11
	movwf	d1
	movlw	0x5D
	movwf	d2
	movlw	0x05
	movwf	d3
Delay2sec_0
	decfsz	d1, f
	goto	$+2
	decfsz	d2, f
	goto	$+2
	decfsz	d3, f
	goto	Delay2sec_0

			;4 cycles (including call)
	return
	END
Any suggestion why this error shows up?
__________________
Hesham Ismail Mohammed Sharif
Thank me if you want
uaefame is offline  
Old 19th October 2008, 05:41 AM   #18
Default

Are you using a Microchip PICStart+ programmer or something called a PIC Starter?
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com/
blueroomelectronics is offline  
Old 19th October 2008, 07:56 AM   #19
Default

Don't worry problem solved I was buring the PIC 16F84a codes into PIC 16F818. Btw. I was using PIC start+.

Thanks for replying
__________________
Hesham Ismail Mohammed Sharif
Thank me if you want
uaefame is offline  
Reply

Tags
16f84, calling, delay

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Atmel, assembly:displaying on lcd Haidy Micro Controllers 13 11th February 2008 09:13 PM
Motor Controllers and serial comm? RedCore Micro Controllers 18 3rd July 2007 02:27 AM
Randomness of 16F84 program - sometimes works somtimes doesn FusionITR Micro Controllers 10 28th February 2006 10:06 AM
Delay routine not working gregmcc Micro Controllers 6 18th September 2005 06:23 PM
Effects stephenpic Micro Controllers 6 19th January 2004 12:57 PM



All times are GMT. The time now is 03:26 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker