Can anyone tell me what happened to it?
Also any assembly example to re-program it? (I tried to write a assembly code for it, but always getting errors with configuring and etc...)
Code: Select all
	list		p=12c508	
	#include	<p12c508.inc>
CounterL equ 0Dh
CounterH equ 0Eh
i set 0
	ORG     0x000             
	nop			  
  	goto    main              
	ORG     0x004             
	
main  
	
	banksel		TRISIO
	movlw		0x00
	movwf		TRISIO
	banksel		GPIO
	movlw		0x00
	movwf		GPIO
my_loop
	banksel		GPIO
while i<5
	movlw		b'00000001'
	movwf		GPIO
Call Delay
	movlw		b'00000010'
	movwf		GPIO
Call Delay
	movlw		b'00000100'
	movwf		GPIO
Call Delay
	movlw		b'00001000'
	movwf		GPIO
Call Delay
i=i+1
endw
i set 0
while i<5
	movlw		b'00001000'
	movwf		GPIO
Call Delay
	movlw		b'00000100'
	movwf		GPIO
Call Delay
	movlw		b'00000010'
	movwf		GPIO
Call Delay
	movlw		b'00000001'
	movwf		GPIO
Call Delay
i=i+1
endw
i set 0
while i<5
	movlw		b'00000001'
	movwf		GPIO
Call Delay
	movlw		b'00000010'
	movwf		GPIO
Call Delay
	movlw		b'00000100'
	movwf		GPIO
Call Delay
	movlw		b'00001000'
	movwf		GPIO
Call Delay
	movlw		b'00000100'
	movwf		GPIO
Call Delay
	movlw		b'00000010'
	movwf		GPIO
Call Delay
i=i+1
endw
	goto		my_loop
;*****Delay loop*****
Delay	decfsz CounterL,1
		goto Delay
		decfsz CounterH,1
		goto Delay
		return
	end
MPlab wrote:----------------------------------------------------------------------
Debug build of project `D:\PIC\12c508A\my\My test.mcp' started.
Preprocessor symbol `__DEBUG' is defined.
Sat Jun 02 11:57:59 2012
----------------------------------------------------------------------
Make: The target "D:\PIC\12c508A\my\code.o" is out of date.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPASMWIN.exe" /q /p12C508A "code.asm" /l"code.lst" /e"code.err" /d__DEBUG=1
Message[301] C:\PROGRAM FILES\MICROCHIP\MPASM SUITE\P12C508.INC 37 : MESSAGE: (Processor-header file mismatch. Verify selected processor.)
Message[312] D:\PIC\12C508A\MY\CODE.ASM 17 : Page or Bank selection not needed for this device. No code generated.
Error[113] D:\PIC\12C508A\MY\CODE.ASM 19 : Symbol not previously defined (TRISIO)
Message[312] D:\PIC\12C508A\MY\CODE.ASM 20 : Page or Bank selection not needed for this device. No code generated.
Message[312] D:\PIC\12C508A\MY\CODE.ASM 26 : Page or Bank selection not needed for this device. No code generated.
Warning[205] D:\PIC\12C508A\MY\CODE.ASM 28 : Found directive in column 1. (while)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 31 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 34 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 37 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 40 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 31 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 34 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 37 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 40 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 31 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 34 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 37 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 40 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 31 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 34 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 37 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 40 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 31 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 34 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 37 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 40 : Found opcode in column 1. (Call)
Warning[205] D:\PIC\12C508A\MY\CODE.ASM 43 : Found directive in column 1. (endw)
Warning[205] D:\PIC\12C508A\MY\CODE.ASM 46 : Found directive in column 1. (while)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 49 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 52 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 55 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 58 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 49 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 52 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 55 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 58 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 49 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 52 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 55 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 58 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 49 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 52 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 55 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 58 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 49 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 52 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 55 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 58 : Found opcode in column 1. (Call)
Warning[205] D:\PIC\12C508A\MY\CODE.ASM 60 : Found directive in column 1. (endw)
Warning[205] D:\PIC\12C508A\MY\CODE.ASM 65 : Found directive in column 1. (while)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 68 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 71 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 74 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 77 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 80 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 83 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 68 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 71 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 74 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 77 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 80 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 83 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 68 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 71 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 74 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 77 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 80 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 83 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 68 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 71 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 74 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 77 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 80 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 83 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 68 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 71 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 74 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 77 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 80 : Found opcode in column 1. (Call)
Warning[203] D:\PIC\12C508A\MY\CODE.ASM 83 : Found opcode in column 1. (Call)
Warning[205] D:\PIC\12C508A\MY\CODE.ASM 85 : Found directive in column 1. (endw)
Warning[227] D:\PIC\12C508A\MY\CODE.ASM 96 : Substituting RETLW 0 for RETURN pseudo-op
Halting build on first failure as requested.
----------------------------------------------------------------------
Debug build of project `D:\PIC\12c508A\my\My test.mcp' failed.
Preprocessor symbol `__DEBUG' is defined.
Sat Jun 02 11:58:01 2012
----------------------------------------------------------------------
BUILD FAILED
Thank you.


