Searching \ for '[PIC]: What PIC can do the job ?' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devices.htm?key=pic
Search entire site for: 'What PIC can do the job ?'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: What PIC can do the job ?'
2001\10\21@193310 by Lasse Madsen

flavicon
face
Hi all
I have finished the code i was writing and i've been using a 16F84 to write it on but the 16F84 is rather expensive so i would like to know which other (cheaper) PIC's my code would work on (or could be easily adapted for)
I was thinking of the 16C54A but i get "alot" of errors when i try to compile my code to that processor errors like "call function is not legal ...wrong address ... that sort of errors"
Im using 1 input and 3 output pins for my application and precise timing on the output using a 4MHz crystal so this must be keept in the selection of a cheaper pic. Maybe a 12C50x but i cant seem to find the PCLATH register in their datasheet does this leave these fine MCU's out  ?
Im also using these registers and addresses in my code:

ecount equ 0x0c  ; Variable
ncount equ 0x0d ; Variable
mcount equ 0x0e ; Variable count equ 0x1a  ; Variable
counter equ 0x1b ; Variable
movlw   high tb    ; code given to me from you guys :)
movwf   PCLATH  ; -"-
movf    PORTB,W ; -"-
andlw   7 ; -"-
tb addwf PCL,F ; -"-
call subroutine ...return ... ( i dont know if this is a function which is not supported on some chips but the 16C54 went crazy about call's in my code so i'd better tell you that i use call in my code)

Im not sure how much this code consumes (who can i tell?) but in IC PROG with a 16F84 it ends at address 0108 i dont know if this gives any ideas ? but to me it looks like 1/3 of the 1K availble in the 16F84

I hope that some one can tell me what cheap pic i can use from this informations if not please dont hessitate to respond and i will give you the entire code if you would want to look further into it.

Hope that someone has any ideas.

Best regards
Lasse Madsen

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\10\21@195125 by Ned Konz

flavicon
face
On Sunday 21 October 2001 04:32 pm, Lasse Madsen wrote:

> I have finished the code i was writing and i've been using a 16F84 to write
> it on but the 16F84 is rather expensive so i would like to know which other
> (cheaper) PIC's my code would work on (or could be easily adapted for)

How about the 16f627? It's less than half the price in small quantities, and
has the same amount of code space. Same pinout.

--
Ned Konz
currently: Stanwood, WA
email:     spam_OUTnedTakeThisOuTspambike-nomad.com
homepage:  http://bike-nomad.com

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\10\21@201042 by Tony Nixon

flavicon
picon face
With 4 available IO pins, if you use an external 4MHz crystal, you
should be able to use the 12C508 chip which has memory space up to
0x01FF, else use the 12C509.

Keep all subroutines in the first 256 ROM locations, and anything else
that changes the PCL register like tables eg. addwf PCL. PCLATH is not
used in this chip.

Don't forget the OSSCAL value in the last ROM location.

GP RAM starts at 0x07 and ends at 0x1F

These chips use 12 bit code as against your 16F84 which uses 14 bit
code.

Check your RAM bank switching code for things like accessing OPTION_REG
etc.

GP3 is an input pin only.

Check out the data sheet DS40139d to get more familier with the chip.

--
Best regards

Tony

mICros
http://www.bubblesoftonline.com
.....salesKILLspamspam@spam@bubblesoftonline.com



Lasse Madsen wrote:
{Quote hidden}

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\10\21@220413 by Bob Blick

face
flavicon
face
>I have finished the code i was writing and i've been using a 16F84 to
write it on but the 16F84 is rather expensive so i would like to know which
other (cheaper) PIC's my code would work on (or could be easily adapted for)

16F628 is the first that comes to mind.

>I was thinking of the 16C54A but i get "alot" of errors when i try to
compile my code to that processor errors like "call function is not legal
...wrong address ... that sort of errors"

Yes, that's a 12 bit PIC. The 16F84 and 16F628 are 14 bit PICs.

Cheers,

Bob Blick

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\10\22@114221 by Lasse Madsen

flavicon
face
> How about the 16f627? It's less than half the price in small quantities,
and
> has the same amount of code space. Same pinout.

This ic sounds good :)

Can i use my execisting 16F84 programmer for it ? and do i need to rewrite
some of my code other than changing the list=pxxxx etc.. ?

Thanks alot for the information

Best Regards
Lasse Madsen

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email listservspamKILLspammitvma.mit.edu with SET PICList DIGEST in the body


2001\10\22@122523 by Byron A Jeff

face picon face
On Mon, Oct 22, 2001 at 05:39:22PM +0200, Lasse Madsen wrote:
> > How about the 16f627? It's less than half the price in small quantities,
> and
> > has the same amount of code space. Same pinout.
>
> This ic sounds good :)
>
> Can i use my execisting 16F84 programmer for it ?

It should work. Be careful of differences in the CONFIG word. Read the
datasheets carefully.

> and do i need to rewrite
> some of my code other than changing the list=pxxxx etc.. ?

At the very minimum you'll have to take PORTA out of analog comparator mode.
Specifically you need to write a 0x7 to the CMCON register to turn them off.

BAJ

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email .....listservKILLspamspam.....mitvma.mit.edu with SET PICList DIGEST in the body


2001\10\22@172710 by uter van ooijen & floortje hanneman

picon face
> > How about the 16f627? It's less than half the price in small quantities,
> and
> > has the same amount of code space. Same pinout.
>
> This ic sounds good :)
>
> Can i use my execisting 16F84 programmer for it ? and do i need to rewrite
> some of my code other than changing the list=pxxxx etc.. ?

- different fuses
- RAM start at different address (and there is much more of it)
- disable the A/D
- disable LVP when programming (RB3 or is it 4 must be tied low)

Wouter van Ooijen

Van Ooijen Technische Informatica: http://www.voti.nl
Jal compiler for PIC uC's:  http://www.xs4all.nl/~wf/wouter/pic/jal

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email EraseMElistservspam_OUTspamTakeThisOuTmitvma.mit.edu with SET PICList DIGEST in the body


More... (looser matching)
- Last day of these posts
- In 2001 , 2002 only
- Today
- New search...