Searching \ for '[PIC:] MM5369 Substitute Won't Build Hex File (New' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devices.htm?key=pic
Search entire site for: 'MM5369 Substitute Won't Build Hex File (New'.

Exact match. Not showing close matches.
PICList Thread
'[PIC:] MM5369 Substitute Won't Build Hex File (New'
2004\11\22@162352 by Ed Edmondson

flavicon
face
I have the .asm file from the "Designing For Dollars" application note
number DS40160A/4_008 which will allow the 12C508A to be used to replace an
MM5369. Other than the error in the main title (MHz should be Hz) this code
is supposed to be functional as printed.

When I import the .asm file into MPLAB 6.62 I receive the following errors.

Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "I:\Program Files\MPLAB IDE\MCHIP_Tools\mpasmwin.exe" /q
/p12C508A "mm5369.asm" /l"mm5369.lst" /e"mm5369.err"

Error[122]   I:\ED'S\MICROCHIP INC\12C508 - 509\ASM FILES\MM5369.ASM 66 :
Illegal opcode (Data.W)

Error[122]   I:\ED'S\MICROCHIP INC\12C508 - 509\ASM FILES\MM5369.ASM 67 :
Illegal opcode (Data.W)

Error[122]   I:\ED'S\MICROCHIP INC\12C508 - 509\ASM FILES\MM5369.ASM 68 :
Illegal opcode (Data.W)

Error[122]   I:\ED'S\MICROCHIP INC\12C508 - 509\ASM FILES\MM5369.ASM 69 :
Illegal opcode (Data.W)

Error[122]   I:\ED'S\MICROCHIP INC\12C508 - 509\ASM FILES\MM5369.ASM 75 :
Illegal opcode (Data.W)

Warning[205] I:\ED'S\MICROCHIP INC\12C508 - 509\ASM FILES\MM5369.ASM 249 :
Found directive in column 1. (END)

Halting build on first failure as requested.

BUILD FAILED: Mon Nov 22 13:59:19 2004

Could this be because I am trying to use the 12C508A version of the device
because that is all I have?

Thanks,
Ed

____________________________________________

2004\11\22@174204 by Spehro Pefhany

picon face
At 02:23 PM 11/22/2004 -0700, you wrote:
{Quote hidden}

No, it's because the Data.W directive is no longer supported by MPASM.

If you delete the ID word section (you could use __idlocs, but it's
not required) and change to using the __config
directive it will assemble.

It seems to run 30ppm slow for both outputs, however, if MPSIM tells the
truth.

Best regards,

Spehro Pefhany --"it's the network..."            "The Journey is the reward"
spam_OUTspeffTakeThisOuTspaminterlog.com             Info for manufacturers: http://www.trexon.com
Embedded software/hardware/analog  Info for designers:  http://www.speff.com




____________________________________________

2004\11\22@192141 by Ed Edmondson

flavicon
face
No, it's because the Data.W directive is no longer supported by MPASM.

>>If you delete the ID word section (you could use __idlocs, but it's not
>>required)

I did this:


; ID0  Data.W H'0000'
; ID1  Data.W H'0000'
; ID2  Data.W H'0000'
; ID3  Data.W H'0007'

;   and the Fuses...

 ORG H'0FFF'

_CONFIG  Data.W MCLREnabled + NoCodeProtect + WDTEnabled + XTOsc ; Added
underscore

I got this:

Warning[207] I:\ED'S\MICROCHIP INC\12C508 - 509\ASM FILES\MM5369E.ASM 84 :
Found label after column 1. (_CONFIG)

This is just a warning, correct?

Error[122]   I:\ED'S\MICROCHIP INC\12C508 - 509\ASM FILES\MM5369E.ASM 84 :
Illegal opcode (MCLREnabled)

A problem?

Warning[205] I:\ED'S\MICROCHIP INC\12C508 - 509\ASM FILES\MM5369E.ASM 258 :
Found directive in column 1. (END)

Another warning, Correct?

Halting build on first failure as requested.
BUILD FAILED: Mon Nov 22 17:08:23 2004

It seems to run 30ppm slow for both outputs, however, if MPSIM tells the
truth.

This isn't really a problem if you are sync'd to the 60Hz line frequency?
Or, does the code have to be rewritten to correct this discrepancy?

Thanks,
Ed



----- Original Message -----

<Snip>

____________________________________________

2004\11\22@215837 by Spehro Pefhany

picon face
At 05:21 PM 11/22/2004 -0700, you wrote:
>No, it's because the Data.W directive is no longer supported by MPASM.
>
>>>If you delete the ID word section (you could use __idlocs, but it's not
>>>required)
>
>I did this:
>
>
>; ID0  Data.W H'0000'
>; ID1  Data.W H'0000'
>; ID2  Data.W H'0000'
>; ID3  Data.W H'0007'
>
>;   and the Fuses...
>
>  ORG H'0FFF'
>
>_CONFIG  Data.W MCLREnabled + NoCodeProtect + WDTEnabled + XTOsc ; Added
>underscore

You need a *double* underscore, as I suggested.

>I got this:
>
>Warning[207] I:\ED'S\MICROCHIP INC\12C508 - 509\ASM FILES\MM5369E.ASM 84 :
>Found label after column 1. (_CONFIG)
>
>This is just a warning, correct?

No.

>Error[122]   I:\ED'S\MICROCHIP INC\12C508 - 509\ASM FILES\MM5369E.ASM 84 :
>Illegal opcode (MCLREnabled)
>
>A problem?

Related to above.

>Warning[205] I:\ED'S\MICROCHIP INC\12C508 - 509\ASM FILES\MM5369E.ASM 258
>: Found directive in column 1. (END)
>
>Another warning, Correct?

Yes, just indent it to make the warning go away.

>Halting build on first failure as requested.
>BUILD FAILED: Mon Nov 22 17:08:23 2004
>
>It seems to run 30ppm slow for both outputs, however, if MPSIM tells the
>truth.
>
>This isn't really a problem if you are sync'd to the 60Hz line frequency?
>Or, does the code have to be rewritten to correct this discrepancy?

Probably not, depending on the details of the application. The original
chip does not have a "sync" input.

>Thanks,
>Ed

The author probably made an off-by-one error in division routines (hey, what
do you expect for free), so it's off by a total of two cycles in one 60Hz
waveform (about 15ppm each). The original division ratio was
chosen by the NatSemi engineers so it would be within <1.5ppm with a perfect
NTSC colorburst crystal frequency.

Best regards,

Spehro Pefhany --"it's the network..."            "The Journey is the reward"
.....speffKILLspamspam@spam@interlog.com             Info for manufacturers: http://www.trexon.com
Embedded software/hardware/analog  Info for designers:  http://www.speff.com




____________________________________________

2004\11\23@030334 by Philip Pemberton

face picon face
In message <003801c4d0f2$67e41380$6401a8c0@edscomputer>
         "Ed Edmondson" <dredwinjrspamKILLspambresnan.net> wrote:

>  _CONFIG  Data.W MCLREnabled + NoCodeProtect + WDTEnabled + XTOsc ; Added
> underscore

Try this:

__CONFIG  MCLREnabled + NoCodeProtect + WDTEnabled + XTOsc


Later,
--
Phil.                              | Acorn Risc PC600 Mk3, SA202, 64MB, 6GB,
.....philpemKILLspamspam.....philpem.me.uk              | ViewFinder, 10BaseT Ethernet, 2-slice,
http://www.philpem.me.uk/          | 48xCD, ARCINv6c IDE, SCSI
... He's a potato Jim!, Let's gouge out all of his eyes
____________________________________________

More... (looser matching)
- Last day of these posts
- In 2004 , 2005 only
- Today
- New search...