![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | Thread Tools | Display Modes |
| | (permalink) |
| Experienced Member | Well some of you may know I'm working on a motorized robot platform called Mongoose and for its processor I've chosen the PIC 18F2525 (a 16F886 can also be used). See the thread in Robotics for info & pictures. I chose the 18F2525 because
I like it, I would even go so far to say if you've used the 16 series PICs the 18 series will seem easy. For starters you don't need STATUS, RP0 nearly as much (not used it yet)
Lots of CONFIG settings can be a little daunting at first but are manageable. Appears you set CONFIG differently than the 16 series ie CONFIG1H = 0x40 (simpler actually) |
| | |
| | (permalink) | |
| Experienced Member | Quote:
I found it easier to copy them from there into a separate INC file for each project and change any settings there. | |
| | |
| | (permalink) |
| New Member | Hi, The 18F2525 comes in 28/PDIP 300mil. What does the 300mil means? I found a 40 pins version, 48kWords, great for user who are familiar with the 16F877 and need the extra memory. |
| | |
| | (permalink) | |
| Experienced Member | Quote:
| |
| | |
| | (permalink) |
| Experienced Member | Once you go 18F you'll be reluctant to go back to the 16F series. The only gotchas I've found so far are the read-write-modify ones and I had one design that used to glitch at random intervals. Turned out that if it had an interrupt iwhen running a particular line of code it wouldn't execute the next instruction after the return. This was cured after a week of debugging by using the "RETURN FAST" command. |
| | |
| | (permalink) |
| Experienced Member | read-write-modify has been fixed if you use the LAT command I thought. I'm not that familiar with its extended commands but it is in fact easier to use than 16 series chips. |
| | |
| | (permalink) |
| New Member | I surely appreciate a larger memory for my case as I need to do a lot of real time calculation for my project. Anyway, I ordered a sample of both today. I'm very new to PIC and I have only worked on 16F877A using CCS C compiler. I wonder how it works on 18F. |
| | |
| | (permalink) |
| Experienced Member | The 18F series comes with a nice C18 compiler from Microchip. The Student edition is free. |
| | |
| | (permalink) |
| Experienced Member | C compiler for pics is not as useful as for pc though. Many different #pragma's need to be memorized in order to use it. I wonder if code from C18 can be ported to C30? This would be very useful for code reuse in 30F series. |
| | |
| | (permalink) |
| Experienced Member | The addition of LAT register The increase of RAM memory The extra (useful) instructions Bank switching less frequent(?) and simpler makes, (to me), for not thinking of going back to 16F family.
__________________ Agustín Tomás In theory, there is no difference between theory and practice. In practice, however, there is. |
| | |
| | (permalink) |
| New Member | the #pragma statements are very compiler dependent. I'm using general preprocessor directives here, which are the standard C. I only taught myself using C, because assembly language is just too much for my project. I have a lot of complex real time calculation like sorting and masking, it's just not feasible for writing in assembly, imagine bugging through thousands of line. |
| | |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Latest |
| Interfacing 4000 series CMOS to 74HC series TTL | kd4pbj | General Electronics Chat | 11 | 22nd January 2007 04:52 PM |
| Difference between 4000 series and 7400 series? | ghall426 | General Electronics Chat | 17 | 1st January 2007 01:00 AM |
| 40 Series IC. | lord loh. | General Electronics Chat | 2 | 18th February 2006 04:05 AM |
| Basic Charts for series AC circuits | walters | General Electronics Chat | 2 | 23rd June 2005 10:35 AM |
| Caps in series or.... | captainkirksdog | General Electronics Chat | 5 | 26th November 2003 11:14 AM |