![]() | ![]() | ![]() |
| | #61 |
|
I wonder how an AVR vs 18F PIC thread would look, or AVR vs dsPIC... | |
| |
| | #62 |
|
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) www.simonsphotography.org.uk/ - My other hobby www.rushdenrotaract.org.uk/ - make a difference and have fun ! Never buy "Trust" products, all mine broke !!! | |
| |
| | #63 | |
| 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 ) but it's still a great chip to start with.
| ||
| |
| | #64 |
|
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
__________________ bananasiong | |
| |
| | #65 | |
| Quote:
__________________ I AM the exeption that disproves the rule in many ways but the rules still apply (unfortunately) www.simonsphotography.org.uk/ - My other hobby www.rushdenrotaract.org.uk/ - make a difference and have fun ! Never buy "Trust" products, all mine broke !!! | ||
| |
| | #66 |
|
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 | |
| |
| | #67 |
|
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) www.simonsphotography.org.uk/ - My other hobby www.rushdenrotaract.org.uk/ - make a difference and have fun ! Never buy "Trust" products, all mine broke !!! | |
| |
| | #68 |
|
Soon Soon, I've been so busy lately I've not had time to work on the book.
| |
| |
| | #69 | |
| 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?
__________________ bananasiong | ||
| |
| | #70 |
|
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
| |
| |
| | #71 |
|
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.
__________________ bananasiong | |
| |
| | #72 |
|
waiting for the new book.
__________________ F.N. | |
| |
| | #73 |
|
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. | |
| |
| | #74 |
|
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.
| |
| |
| | #75 |
|
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.
| |
| |
|
| Tags |
| book, pic, write |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| Title | Starter | Forum | Replies | Latest |
| Electronic Systems (General Electronics) | ThermalRunaway | Electronic Books | 43 | 3rd August 2009 12:32 PM |
| Visual Basic for Electronics Engineering Applications | ThermalRunaway | Electronic Books | 25 | 26th November 2008 09:56 AM |
| High ADC sampling rate PIC, 18F needed? | bananasiong | Micro Controllers | 24 | 28th October 2007 01:13 PM |
| Need some help with a code provided by ATMEL | ikalogic | Micro Controllers | 1 | 23rd January 2007 03:46 PM |
| Recomended book for the Electronics "newb" | windozeuser | General Electronics Chat | 1 | 21st July 2005 08:04 PM |