Finally I had time to start from the scratch, check everything once more
and now I have "FF 18F66k22 must do list":
project>add files to project> p18f66k22.cfg
-p18f-main.cfg
constant clock=d'64000000' ; Hz
-p18f66k22.cfg
constant flash_write_inner_loop = d'64'
#define PLL ENABLE ; ENABLE or DISABLE
-ff-pic18.asm
3x replace
PIR2, EEIF, A -> PIR6, EEIF, A
clrf PIE1, A ; Disable all peripheral interrupts
clrf PIE2, A
Should we clean the new additional PIE registers? I guess so.
clrf PIE3-PIE6.
@Peter:
Thanks for locating the missing 'forget' command.
@Mikael:
Right, clock frequency has to be specified in p18fmain.cfg but it wasn't
enough to get correct baud rate as PLL was disabled in p18f66k22.cfg. I
changed a few things simultaneously so I got confused when it finally
started working.
I'll send you updated register definitions for 65K22 66K22 85K22 86K22
in mail as pic18f_regs.txt is not really usefull for me.
@Craig:Interactivity is the exact reason why I'm trying to turn to Forth
again. Number of different sensors and modules that I have to put in
function has increased recently and I have a serious bottleneck with
drivers and testing.
If you (or anyone) need 64 pin in DIP, I can solder TQFP or QFN on
adapter or just send you empty adapter if you prefer. Still have 5-6
left unused from some previous project.
TBH I am not so much interested in xxK22 chips, but (pin compatible)
xxK90 as my instruments need LCD driver. That's the reason why I'm
asking for UART2 because UART1 shares pins with LCD. I'll try to patch
this soon.
Thanks to everyone for your input,
Zdravko
|