Enhanced 16F chips

Thread Starter

elementalrage

Joined Jul 30, 2009
59
Why not just move to the 18F and C? No bank switching. Much easier.
The circuit board has already been designed for the 16F688 14 pin chip. The 16F1824 is the enhanced version of that chip.

It will be nice to have on-board PWM as well as other features with the 16F1824.
 

maxpower097

Joined Feb 20, 2009
816
........................................................................................................................................
 
Last edited:
I'm reading up on the 18F pics right now. Bank switching was a minimal annoyance when I was playing with PICS with 3 or 4 banks, but, trust me dude, it is a royal pain the in butt on these enhanced midrange PICs despite being pretty cool in the bells and whistle department. I was porting some code over from a 16F818 to a 16F1934 and I found myself constantly having do give banking commands. It was driving my up the wall moving a stored value to W, bank selecting the SPI buffer, moving W to SSPBUF, bank selecting the PIR rigester, testing the flag, bank selecting the SPI buffer, moving SSPBUF to W, bank selecting the user file, and then storing it in the user file. It makes programming no fun, honestly.

This is as opposed to the 18F where I could just MOVFF USERFILE1,SSPBUF , then test the flag, then do MOVFF SSPBUF, USERFILE2 ....or that's what I have understood so far from reading the 18F1220 datasheet.
 

thatoneguy

Joined Feb 19, 2009
6,359
The enhanced add some peripherals, and make them as compiler friendly as possible without breaking the basic concept. There are many C compilers out now that produce code that is better than most people end up writing in assembly (unless you are in the top 20% of assembly code authors).

There is a bit of overhead when dealing with larger number manipulation, but it is done very efficiently. Compiled languages let you get what you want going quickly, rather than spending many hours trying to figure out a trick.

Bytes count on mass production items, where every last bit is used to save 9 cents per copy. Most commercially programmed PIC boards, such as interfaces, controllers, etc, wouldn't even hit the evaluation limit code size of the nicer compilers. (Though if you are selling that many, you should be buying the top of the line compiler.)

In short, if you only work with assembly, don't get into the advanced cores, unless you like a needless challenge.
 

Thread Starter

elementalrage

Joined Jul 30, 2009
59
The BANKs aren't that big of an issue, they just take up too much Program Space. The real killer is crossing the 2k Word boundary and having to deal with PCLATH - yuk!

I still like the 16F series for smaller projects.
 

Markd77

Joined Sep 7, 2009
2,806
Then I'm just gonna abandon the P10,P12,P16 chips all together.
I like the 10Fs at the moment, they don't have banks because they don't have enough RAM. No pages or interrupts either.
I think they are perfect for beginners, for small projects, and as helper chips for bigger projects.
 

retched

Joined Dec 5, 2009
5,207
I like the 10Fs at the moment, they don't have banks because they don't have enough RAM. No pages or interrupts either.
I think they are perfect for beginners, for small projects, and as helper chips for bigger projects.
Im playing with them too.. I picked up a handfu--palmfu---shotglass full-

I picked up four 10f204 to play with.

nice little chip. Has a capacitive touch input pin, comparator, built-in 4mhz osc.. and a timer.. And thats about it ;)

I am liking them alot. GOod for 555 "replacement" type applications with more accuracy.
 
Top