PORTA.7 share a couple of things
OSC1
CLKI
T1OSI
My first bet would be that you haven't set the OSC to internal... and if you did
this make the whole thing running @ 32KHzCode:OSCCON=0 ' ' ' ' ' ' OSCCON = %00000001![]()
PORTA.7 share a couple of things
OSC1
CLKI
T1OSI
My first bet would be that you haven't set the OSC to internal... and if you did
this make the whole thing running @ 32KHzCode:OSCCON=0 ' ' ' ' ' ' OSCCON = %00000001![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Yes, it's supposed to be running at 32khz internal. I am programming the '914 via ICSP, and other chips via the ME Labs USB programmer. Do you think this could make a difference?
O.K., after half a day of fighting this problem, I found the solution. When the MPASM check box is checked, you have the option of checking three additional boxes. I had the box marked "INHX8M" checked. When I checked the "INHX8S" box instead, the programs run O.K.
Where is this documented?
In the MPASM assembler help file, somewhere under Hex file format.
It's a bit ODD that INHX8S fixed it...Code:Hex File Formats (.hex, .hxl, .hxh) The MPASM assembler and MPLINK linker are capable of producing ASCII text hex files in different formats. Format Name Format Type File Extension Use Intel Hex Format INHX8M .hex 8-bit core device programmers Intel Split Hex Format INHX8S .hxl, .hxh odd/even programmers Intel Hex 32 Format INHX32 .hex 16-bit core device programmers
Last edited by mister_e; - 5th February 2009 at 14:52.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Alas, I was wrong! Iam still unable to program 16F914 using MPASM and ICSD. I can program using PBP, however. I am able to program 12F635 using either PBP or MPASM and the standard 40 pin ZIF socket from MELABS. I have asked MELABS for help with this.
Thank you for your help Mister e
What are your config fuse settings?
If you're using the internal osc set for 31kHz, then you'll want to make sure you have config setting for internal osc set.
Thank you, Bruce. I just tried it again with the following line:
__config_DEBUG_OFF_FCMEN_OFF_IESO_OFF_BOD_OFF_CPD_ OFF_MCLRE_OFF_PWRTE_ON_WDT_OFF_INTRC_OSC_NOCLKOUT
It made no difference. Compiles in MPASM with no errors, but will not run:
__config_DEBUG_OFF_FCMEN_OFF_IESO_OFF_BOD_OFF_CPD_ OFF_MCLRE_OFF_PWRTE_ON_WDT_OFF_INTRC_OSC_NOCLKOUT
OPTION_REG = %11000000
INTCON = 0
PIE1 = 0
PIE2 = 0
ANSEL = 0
TRISA = %00000000
TRISB = %00100001
TRISC = %00000000
TRISD = %00000000
TRISE = %1000
OSCCON = %00000001
CMCON0 = 7
ADCON0 = 0
WDTCON = 0
SSPCON = 0
CCP1CON = 0
CCP2CON = 0
CLEAR
LCDPS = %00110000
LCDCON = 0
LCDSE0 = 0
LCDSE1 = 0
LCDSE2 = 0
PORTA.7 = 1
LED1 VAR PORTA.7
Main:
PORTA.7 = 1
pause 10
PORTA.7 = 0
pause 10
goto Main
Any other suggestions?
Bookmarks