And how have you got MCLR connected?
Redo your program adding these two lines at the top...
Code:@ DEVICE pic16F628, INTRC_OSC_NOCLKOUT @ DEVICE pic16F628, MCLR_OFF
And how have you got MCLR connected?
Redo your program adding these two lines at the top...
Code:@ DEVICE pic16F628, INTRC_OSC_NOCLKOUT @ DEVICE pic16F628, MCLR_OFF
Just pull up the MCLR pin with a 4.7k resistor. Or change the "MCLR Pin function" to "Input pin" on the meProg Configuration section.
See you!!!!!!!!!
THANKS BOTH OF YOU,
it still does not work
I SEE SOME THINGS HERE:
THERE ARE TWO ILLEGAL OPCODES FOR F16F628 when running the program,
THE MEPROG CONFIGURATION IS IRRELEVANT TO THE PROGRAM?:
1- DEVICE .....INTRC_OSC_NOCLKOUT (set up on osc type on the configuration?)
2- DEVICE.....MCLR_OFF (MCLR_IN set up on the reconfiguration),
(the PICF628 is selected)
I add @ DEVICE PIC16F628, __config 0x3D18 to use internal OSC.
and remove @ DEVICE PIC16F628, INTRC_OSC_NOCLKOUT,
it does not work!!
Find the 16F628.inc file in your PBP directory. The comment out the fuse lines with a ';'
Then use the config statements from Melanie.Code:NOLIST ifdef PM_USED LIST include 'M16F62x.INC' ; PM header ; device pic16F628, xt_osc, wdt_on, pwrt_on, mclr_on, lvp_off, protect_off XALL NOLIST else LIST LIST p = 16F628, r = dec, w = -302 INCLUDE "P16F628.INC" ; MPASM Header ; __config _XT_OSC & _WDT_ON & _PWRTE_ON & _MCLRE_ON & _LVP_OFF & _CP_OFF NOLIST endif LIST
http://www.picbasic.co.uk/forum/showthread.php?t=543
Read post #1 and #5.
Dave
Always wear safety glasses while programming.
thanks for your attention.
I did check in the .inc of the 16F628, all defined terms are there.
should i have a little bit of time to understand and figure out
thanks again
Minh Le
Bookmarks