gregcan
- 8th October 2009, 13:46
Hi, New to PBP but have been using MPLAB for some time. My problem (and yes, I'm sure it is my problem!) is that I don't seem to be able to get config detail(ie: ANSEL=0) to be recognised in the generated HEX. when I view the config bits in MPLab after importing the PBP generated HEX I see the standard set for the micro (for example a 16f88 defaults to HS oscillator despite the PBP code specifying 4MHz internal osc.)
What am I missing???
Any assitance greatly appreciated.
Cheers
Greg.
Acetronics2
- 8th October 2009, 14:36
Hi, Greg
You are missing that :
'************************************************* ****************************
'Config processeur
'************************************************* ****************************
'
'@ __CONFIG _CONFIG1L, _WDT_OFF_1L & _WDTPS_128_1L
@ __CONFIG _CONFIG1H, _OSCS_OFF_1H & _XT_OSC_1H
@ __CONFIG _CONFIG2L, _BOR_OFF_2L & _BORV_27_2L & _PWRT_ON_2L
@ __CONFIG _CONFIG2H, _WDT_OFF_2H & _WDTPS_128_2H
'@ __CONFIG _CONFIG3L, _WDT_OFF_3L & _WDTPS_128_3L
@ __CONFIG _CONFIG3H, _CCP2MX_OFF_3H
@ __CONFIG _CONFIG4L, _STVR_OFF_4L & _LVP_OFF_4L & _DEBUG_OFF_4L
'@ __CONFIG _CONFIG4H, _WDT_ON_4H & _WDTPS_128_4H
@ __CONFIG _CONFIG5L, _CP0_OFF_5L & _CP1_OFF_5L & _CP2_OFF_5L & _CP3_OFF_5L
@ __CONFIG _CONFIG5H, _CPB_OFF_5H & _CPD_OFF_5H
@ __CONFIG _CONFIG6L, _WRT0_OFF_6L & _WRT1_OFF_6L & _WRT2_OFF_6L & _WRT3_OFF_6L
@ __CONFIG _CONFIG6H, _WRTC_OFF_6H & _WRTB_OFF_6H & _WRTD_OFF_6H
@ __CONFIG _CONFIG7L, _EBTR0_OFF_7L & _EBTR1_OFF_7L & _EBTR2_OFF_7L & _EBTR3_OFF_7L
@ __CONFIG _CONFIG7H, _EBTRB_OFF_7H
Explanations are here ( FAQ ) :
http://www.picbasic.co.uk/forum/showthread.php?p=2016#post2016
Note you may find templates and " keywods " in the MPASM Suite INC folder ( file xxFxxxx.inc depending upon your choosen processor )
Alain
Powered by vBulletin® Version 4.1.7 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.