![]() |
![]() |
![]() |
|
|
|||||||
| Notices |
| Electronic Books Recommended books of interest to any electronic enthusiasts. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
I wonder how an AVR vs 18F PIC thread would look, or AVR vs dsPIC...
|
|
|
|
|
|
|
(permalink) |
|
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 |
|
|
|
|
|
|
(permalink) | |
|
Quote:
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 |
||
|
|
|
|
|
(permalink) |
|
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..
|
|
|
|
|
|
|
(permalink) | |
|
Quote:
__________________
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 |
||
|
|
|
|
|
(permalink) |
|
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 |
|
|
|
|
|
|
(permalink) |
|
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 |
|
|
|
|
|
|
(permalink) |
|
Soon Soon, I've been so busy lately I've not had time to work on the book.
|
|
|
|
|
|
|
(permalink) | |
|
Quote:
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..
|
||
|
|
|
|
|
(permalink) |
|
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
|
|
|
|
|
|
|
(permalink) |
|
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..
|
|
|
|
|
|
|
(permalink) |
|
waiting for the new book.
__________________
F.N. |
|
|
|
|
|
|
(permalink) |
|
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. |
|
|
|
|
|
|
(permalink) |
|
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.
|
|
|
|
|
|
|
(permalink) |
|
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.
|
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| 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 |