Jallist Archive Mar 2003

Re: 16F84 to 16F628 Help

From: Stef <s.mientki(at)mailbox.kun.nl>
Date: 01 Mar 2003 19:34:58 +0100

hi Tom,

>I'm sure that there are many others that have gone before
>
yes, but it's almost a year ago, and these kind of things I forget fast, ...

> me and while I'm waiting for the chips to arrive, I thought I would ask for any tips or guidelines that anyone mighto tips or guidelines that anyone might offer.  I've read the information on Wouter's web page and it pretty much seemss  What do I need to know in regards to Jal?  I'm most curious about:
>
>1.  Here's the code I have in the first part of the program and it compiles OK.  Will the serial and jprint librariess Will the serial and jprint libraries still work just like in the 16f84?
>  include 16f628_4   -- target configuration: 16f628
>  include jlib   -- include the standard library
>  include serial
>
Yes, but you may/must  consider to use the real hardware serial port on 
the F628.
Look at the jallist, someone will have a compatible hardware library 
(I've written one too, but it uses microchip inc-files instead of jpic, 
so it's somewhat more complicated for you).
Also the other libraries will give no problem, because as you said F628 
is upwards compatible and JAL uses only the first RAM bank.

>  include jprint
>  include 16bit
>  pragma target osc xt 
>2. Do I need to include the assembly language listed on Wouter's web site:
>  movlw 7
>  movwf CMCON
>to get port A to work or is that taken care of with the above includes?
>
Yes

cheers,
Stef Mientki




Seiz System Engineering AbelCam AbelCam WebCam Software for Windows