Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronic Content > Electronic Books

Notices


Electronic Books Recommended books of interest to any electronic enthusiasts.

Reply
 
Thread Tools Display Modes
Old 13th January 2008, 04:21 PM   (permalink)
Default

I wonder how an AVR vs 18F PIC thread would look, or AVR vs dsPIC...
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Reply With Quote
Old 13th January 2008, 04:28 PM   (permalink)
Default

well as I'm new to pics I don't know if 18F is more difficult to program in assembly than 16F pics
but I think one 16F should be mentioned
__________________
I AM the exeption that disproves the rule in many ways but the rules still apply (unfortunately)

my site:www.simons-photography.com
http://rushdenrotaract.org.uk
see also
http://www.bigstockphoto.com/account...fid=m2URATYch5
http://www.redbubble.com/people/simonsphotography
Thunderchild is offline  
Reply With Quote
Old 13th January 2008, 04:40 PM   (permalink)
Default

Quote:
Originally Posted by Thunderchild
well as I'm new to pics I don't know if 18F is more difficult to program in assembly than 16F pics
but I think one 16F should be mentioned
Ahh there's the popular belief, IMO the 18F is no harder to learn than a modern 16F.
The minimal need for bank switching and that RAM starts at 0x00 helps.
You also never need to worry about RMW if you use LATx
The 18F was designed with C in mind and you can even get a decent free C18 compiler.
IMO the 18F1320 is a nice 18pin starter chip, it's not as fully featured as many (no comparators, no SPI, no internal clock 4xPLL ) but it's still a great chip to start with.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Reply With Quote
Old 15th January 2008, 04:32 PM   (permalink)
Default

Yes, it's good to have the knowledge of 14-bit core's 35 instructions. Many of the 75 instructions in 18F are similar to 16Fs'. The bank switching in PIC18 makes my life easier. When using PIC16, I always check the datasheet for the bank of that particular register (even the 'find' of pdf can be used, but it is still time consuming).
I don't know C18, even haven't used all the 75 instructions in PIC18 :P
__________________
Superman returns..
bananasiong is offline  
Reply With Quote
Old 15th January 2008, 04:41 PM   (permalink)
Default

Quote:
Originally Posted by bananasiong
Yes, it's good to have the knowledge of 14-bit core's 35 instructions. Many of the 75 instructions in 18F are similar to 16Fs'. The bank switching in PIC18 makes my life easier. When using PIC16, I always check the datasheet for the bank of that particular register (even the 'find' of pdf can be used, but it is still time consuming).
I don't know C18, even haven't used all the 75 instructions in PIC18 :P
exactly learning the 16F MCUs is 2/3 the way of learning the 18F as you already know the MCU architechture and half the instructions
__________________
I AM the exeption that disproves the rule in many ways but the rules still apply (unfortunately)

my site:www.simons-photography.com
http://rushdenrotaract.org.uk
see also
http://www.bigstockphoto.com/account...fid=m2URATYch5
http://www.redbubble.com/people/simonsphotography
Thunderchild is offline  
Reply With Quote
Old 15th January 2008, 05:12 PM   (permalink)
Default

I've got to start posting 18F tips of the day.
Todays:
You can treat W just like any other file register.
Eg:
Code:
decfsz WREG
Very handy for delay routines...
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Reply With Quote
Old 15th January 2008, 05:33 PM   (permalink)
Default

well have you any pages ready to show us ?
__________________
I AM the exeption that disproves the rule in many ways but the rules still apply (unfortunately)

my site:www.simons-photography.com
http://rushdenrotaract.org.uk
see also
http://www.bigstockphoto.com/account...fid=m2URATYch5
http://www.redbubble.com/people/simonsphotography
Thunderchild is offline  
Reply With Quote
Old 15th January 2008, 08:46 PM   (permalink)
Default

Soon Soon, I've been so busy lately I've not had time to work on the book.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Reply With Quote
Old 16th January 2008, 03:26 PM   (permalink)
Default

Quote:
Originally Posted by blueroomelectronics
I've got to start posting 18F tips of the day.
Todays:
You can treat W just like any other file register.
Eg:
Code:
decfsz WREG
Very handy for delay routines...
Oh really??!!?? I didn't know about this even I'm using a PIC18
Is this applied for all the instructions that associated with the RAM?

Is WREG defined in the include file? Or can I straight away use w?
__________________
Superman returns..
bananasiong is offline  
Reply With Quote
Old 16th January 2008, 03:55 PM   (permalink)
Default

You can use WREG right away it is defined in the .inc file, it's just another SFR in the 18F and above PICs. I got the idea from Pommies servo program (he does it with the 16F PIC using an addlw $FF sneaky)
Code:
Delay        
    dcfsnz  WREG    
    return              
    bra     Delay
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Reply With Quote
Old 16th January 2008, 04:01 PM   (permalink)
Default

Oh I see, thanks
I'm using the Delay part of Pommie's servo program as well. Still remember it is 8*w instruction cycle
Didn't notice WREG in 18F, seems I have to somehow modify my program especially the delay part.
__________________
Superman returns..
bananasiong is offline  
Reply With Quote
Old 23rd January 2008, 01:19 AM   (permalink)
Default

waiting for the new book.
__________________
F.N.
Funny NYPD is offline  
Reply With Quote
Old 29th March 2008, 06:41 PM   (permalink)
Default

This was such a great project, what ever happened to it? Is there anything I can do to help it get on track again?
__________________
Mechanical Engineers make weapons.
Civil Engineers make targets.
43617373 is offline  
Reply With Quote
Old 29th March 2008, 06:46 PM   (permalink)
Default

I've been so busy with the Ladybug project I've only got a little time to work on it but I'll keep going.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Reply With Quote
Old 5th April 2008, 05:04 PM   (permalink)
Default

if you guys did this i'd get it and make a donation regardless. i've found it a bit tricky finding pic info and making a free information book would be a really big help for all of us new people. i was deathly afraid of pics when i started so i went with a bs2. now i know how inefficient they are and how much cheaper/better pics alone are.
mashersmasher is offline  
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Electronic Systems (General Electronics) ThermalRunaway Electronic Books 39 4th October 2008 10:56 AM
Visual Basic for Electronics Engineering Applications ThermalRunaway Electronic Books 22 27th August 2008 07:40 PM
High ADC sampling rate PIC, 18F needed? bananasiong Micro Controllers 24 28th October 2007 12:13 PM
Need some help with a code provided by ATMEL ikalogic Micro Controllers 1 23rd January 2007 02:45 PM
Recomended book for the Electronics "newb" windozeuser General Electronics Chat 1 21st July 2005 07:04 PM



All times are GMT. The time now is 10:35 PM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.