From: Jan Panteltje on 9 Feb 2010 08:13 On a sunny day (Mon, 8 Feb 2010 17:53:35 -0500) it happened "Paul E. Schoen" <paul(a)peschoen.com> wrote in <BD0cn.57430$s%.25209(a)newsfe18.iad>: >> Thank you, good they know about it. >> I am not sure what the bit value is by default, but I do see that the >> assembler >> writes a zero there. >> So I added a line of code to my programmer that overrules any input, and >> sets >> that bit to one (or leaves it at one). >> Chip works great now, have the internal clock at 16 MHz and 4 x PLL >> enabled for 64 MHz, >> seems to work. >> Just playing around with it. >> Wrote some macros to port the old 16F690 instructions... > >I got a response from Microchip and they glossed over my questions about >the erroneous documentation and the possible wrong default bit setting in >the silicon, and instead told me that the new version of MPLAB does support >this device. Shame on me for confusing them. No, not your fault, Microchip should release complete specs. That will make life easier for programmers like those who write gpasm, as then the debug bit can just be a CONFIG option for this chip, so it should be in P18F14K22.INC. It should *not* be something that the programmer software does. Anyways, I do not use debug, never do, last time was in the eighties with CP/M. Usually when people grab to debug it means they have no oversight of what they are doing. How do you think I concluded it was the debug feature that was the problem? Using debug? Come on guys, learn to program! And that means analysis, most cases what is the problem has already showing all symptoms clearly in front of your nose. Two things you need to have: 1) A clear mind, and 2) know about successive approximation. So that was a little bit of philosophy :-) > Probably ADD so they only >remembered the last paragraph. I left a comment and maybe I will hear a >response, but they marked the issue as "resolved". But not closed... My experience with 'help desks' of any company is very very bad. Latest was with Vodafone, I asked them where the transmitter mast for my GSM phone was, (so I could erect an external antenna to get better reception for GPRGS modem at home), and they simply ignored the question... and gave some stupid answer about that if enough complaints came in they would move the beam a bit (perhaps). Now Vodafone is not doing very well, can you imagine why, I will be out of there as soon as anything better manifests. >There is another thread about this device and apparently there is a problem >in the MSSP module: >http://www.microchip.com/forums/tm.aspx?m=474280 I have ported a rather complicated program from 16F690 to 18F14K22, and needed quite a few modifications. as register have beend added, flags have been moved to other registers, the instruction set has changed, other things have changed, but i got it all working including WDT, BOR, and interrupts, but have not tried MSSP SPI yet, as I do not need it. But it likely is some user config problem. Reading datasheets, at times I go over it again, and try out all those cool hardware peripherals. It really is a very nice chip. >Glad you got it working. > >Paul I may publish that asm that later, on the io_pic page. The asm file is >3900 lines, but I included a lot of docs into it. Memory about half full Program 7500 bytes at address 0x000000 ID 0 bytes at address 0x200000 Config 14 bytes at address 0x300000 EEPROM 0 bytes at address 0xf00000 I think the programmer software is now pretty much finished, only thing to add would be more 18F PIC types. And that at version 0.2! http://panteltje.com/panteltje/pic/jppp18/index.html
From: Jan Panteltje on 9 Feb 2010 08:18
On a sunny day (Mon, 08 Feb 2010 16:01:01 -0800) it happened Jon Kirwan <jonk(a)infinitefactors.org> wrote in <c491n5l6kb7po60nkepodf4mcgv7iu9ru8(a)4ax.com>: >>Glad you got it working. > >I'm sure he is, too. Spehro may have saved him a lot of >wrangling. Of course he did not save me time, he recommended that chip to me :-) Else I would be doing something else :-) Thank you Spehro ! hehe LOL Well, at least the world now has a better programmer: http://panteltje.com/panteltje/pic/jppp18/index.html |