PIC12F Series

General discussion relating to the library modules supplied with the compiler

Moderators: David Barker, Jerry Messina

Post Reply
Widgetman
Posts: 136
Joined: Sun Dec 16, 2007 7:39 pm
Location: Florida

PIC12F Series

Post by Widgetman » Sun Jan 18, 2009 2:26 pm

Hi,
I was wondering if there was support for the PIC12F510 part, and if there are any examples I could look at on how to use the A/D for voltage measurement. Any help would ge greatly appreciated.
Thanks

rmteo
Posts: 237
Joined: Fri Feb 29, 2008 7:02 pm
Location: Colorado, USA

Post by rmteo » Sun Jan 18, 2009 3:20 pm

SF support 18F parts only.
Will Swordfish Support the 16 Series of PIC Microcontroller?

Highly unlikely. Architecturally, the 16 series does not lend itself well to a structured high level language. It can be done - but it always involves compromising or constraining the language in some way. I accept this will impact on potential sales, but this isn't what Swordfish is about. The only absolute regarding development is that the compiler must be robust. As a code writer, you must trust the tools you use. Everything else is secondary. This is our primary objective. Finite resources means we must maintain a clear focus regarding development in order to achieve this objective.

User avatar
octal
Registered User
Registered User
Posts: 586
Joined: Thu Jan 11, 2007 12:49 pm
Location: Paris IDF
Contact:

Post by octal » Sun Jan 18, 2009 3:34 pm

I really do not understand people who want to use high level language on an mcu with only 38 sram and (most important) 2 stack levels :(

These MCUs are only suited for ASM. it's better to use asm on them. There is a little support in at a certain extent HITECH C compiler Pro (latest version), but it's still a rudimentary support. really the best solution for these MCU is asm.

Regards

Widgetman
Posts: 136
Joined: Sun Dec 16, 2007 7:39 pm
Location: Florida

Thanks All

Post by Widgetman » Sun Jan 18, 2009 4:32 pm

Hi,
Thanks for the replies. I guess it is true you can't teach a ole dog new tricks. I wrote ASM Pic code many years ago when the parts came out, but that does not mean I want to still do it in assembly when I could possible write it in basic. Is it possible the 18F13K50 part is covered yet ? I am trying to find a PIC part with a A/D on it that is cheap to use.
Thanks

rmteo
Posts: 237
Joined: Fri Feb 29, 2008 7:02 pm
Location: Colorado, USA

Post by rmteo » Sun Jan 18, 2009 4:53 pm

I do not know of any PIC18F that does not have ADC (correct me if I am wrong). I would stay away from the 18F13K50 for now as it is a 3.3V part (as is every member of the "J" and "K" families). Get something like PIC18F2620 to start with - or 4620 if you need 40 pins.

Widgetman
Posts: 136
Joined: Sun Dec 16, 2007 7:39 pm
Location: Florida

Thansk For The Help

Post by Widgetman » Sun Jan 18, 2009 4:59 pm

Thanks for the help RMTEO. I am still looking for a 8-20 pin part that I can support with the Swordfish compiler and also has a A/D I can measure analog voltages with. I need to measure 0-1.5VDC with a PIC and monitor it to make sure it stays within a range.
Widgetman

Widgetman
Posts: 136
Joined: Sun Dec 16, 2007 7:39 pm
Location: Florida

Post by Widgetman » Sun Jan 18, 2009 5:04 pm

Hi,
Looking at the 18F13K50 part it seems it has 9 ADC channels in it. It also is a 5V part which is what I am looking to use. Has anyone had any experience with this part yet ? I see Swordfish supports it.
Thanks

rmteo
Posts: 237
Joined: Fri Feb 29, 2008 7:02 pm
Location: Colorado, USA

Post by rmteo » Sun Jan 18, 2009 5:11 pm

Unless your design is so constrained by available PCB real estate, there is really no advantage in going for a low pin count device - except perhaps for saving a few pennies. PIC18F's start at 18 pins:
http://www.microchip.com/ParamChartSear ... &pageId=74

Yes, you correct about some "K" parts being 5V - apologize for my mistake. Check the datasheet for 18F13K50. It is designed to be a low cost USB part.

User avatar
ohararp
Posts: 194
Joined: Tue Oct 03, 2006 11:29 pm
Location: Dayton, OH USA
Contact:

Post by ohararp » Mon Jan 19, 2009 4:11 am

Why not try the 18F1220. I think the cost on these is about $1.00-$1.50. I use them in my single tube nixie clocks without a problem
Thanks Ryan
$25 SMT Stencils!!!
www.ohararp.com/Stencils.html

tenaja
Posts: 4
Joined: Mon Dec 22, 2008 12:46 am

Post by tenaja » Wed Jan 21, 2009 6:26 pm

Or, use Proton for the smaller pic's. They are nice for when price matters because of quantities.

Post Reply