Re: Moving from 16f690 to 610 being a pain

Nov 19, 2007 2 Replies


Have you set up the oscillator and other configuration options such as


> WDT correctly? he config settings and available options vary between
> models.
>
> If that doesn't help, have you looked at the assembly code it
> generates?

i've added: #pragma DATA _CONFIG, _WDT_OFF & _HS_OSC to no avail.


also, my .asm looks good:



main ; { main ; function begin BSF STATUS, RP0 CLRF gbl_ansel CLRF gbl_trisc MOVLW 0xFF BCF STATUS, RP0 MOVWF gbl_portc label268438880 GOTO label268438880 ; } main function end


i'm digging in to what other config settings there may be, and doublechecking the compiler output further


Suggest you look at the actual config setting bit by bit and make sure it's what it should be for that particular chip.

Also, does this very simple program do what you'd expect when you step through it in MPSIM? Are the SFRs set correctly? Do the output port pins change state in the simulation?

Best regards, Spehro Pefhany

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

THANK YOU. sourceboost defaults the MCLRE bit to 1, and sets the oscillator to RC, thus disabling the internal oscillator. i will REALLY remember to check this manually, bit by bit FIRST from now on. oddly enough, sourceboost is using the same config values for the 610 as the 690. small world, eh ?

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required