![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| is it possiable to some how wook something like an SD card to a PIC and/or AVR microcontroller so that it has a whole bunch of memory? Last edited by Guyfrom7up; 21st September 2007 at 03:47 AM. | |
| |
| | (permalink) |
| most small AVR and PICs do not have externally visible data and address lines, so at most you can use external memory to save data only - you can't store code. Not sure what you want to store in the external memory... but usually you can save quite a bit of data though. | |
| |
| | (permalink) |
| Like boxer4 says, you can add an SD card to store data, but not to run programs from - but PIC's usually have more than enough program memory anyway. But you need to be more explicit with your question. | |
| |
| | (permalink) |
| Maybe the PiC might have enough internal memory, I'm going to try and make a device like an arduino board, but you can store multiple programs on it and select a program on a screen. After that you can plug stuff like LED's into it. | |
| |
| | (permalink) |
| Choose an 18F PIC then, these have a lot of memory space, should be no problem. | |
| |
| | (permalink) |
| "A whole bunch of memory" is colorful but.... How many K Bytes of memory do you need? | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| What about external EEPROM's? Lol my signature is bigger than the entire text of this post Draws your attention away | |
| |
| | (permalink) |
| This is a major project. The Arduino uses a ATmega168 which has 16K bytes of flash. You should be able to use a 18F PIC and no external memory. The PIC18F chips come with up to 64K words flash (128K bytes) onboard. I am not sure what level you are at so I will try to keep it simple. Please forgive me if any of what follows is too elementary. The Arduino board system uses 2 parts. A JAVA IDE that runs on a PC/MAC and a set of libraries that run on the AVR. When one system generates code for another it is know as cross platform development. In this case the PC/MAC is development platform and the AVR/PIC is the target platform. The IDE on the PC/MAC generates code that runs on the Arduino AVR/PIC. The system is cross platform. The code generated for the Arduino may or may not be specific to the AVR's instruction set. The library that runs on the AVR certainly is. If you choose to setup an Arduino using a PIC you must be prepared to port (modify for use on another system) the AVR code library to the PIC. If the IDE generates AVR specific code you must retarget (generate PIC instead of AVR) it to generate PIC code. It is possible that the code used to generate the AVR code within the IDE is isolated or even table driven. If so that will make retargeting it much less difficult but not easy. In short you need to be fluent on both the AVR and the PIC of choice to make this work. EDIT: You may also run into speed/timing problems during the port. After you do the port you still need to modify the code to store multiple programs and make use of the extra resources on PIC. If you want to do this I suggest you contact the people who did the original code and get to know them and their code. They may even make you part of the project. If you are thinking of starting from scratch, it would be a lot more work. Last edited by 3v0; 22nd September 2007 at 12:44 AM. | |
| |
| | (permalink) | |
| Quote:
Now if you would like to utilize External Memory Bus for whatever reason, looking into the PIC18F87J50 series of micros. Supports up to 2Mbytes. These are 80 pin devices. The use of 80-pins and greater than 16K of program is so outside the scope of this forum | ||
| |
| | (permalink) | |
| Quote:
I have a working version of the conversion algorithm, and that (together with the library code that it has pulled in) has taken up nearly 75% of the available program memory. I'm beginning to think that I may have to go to a design with 2 PICs, one doing USB to a PC and various other functions and the other doing the co-ordinate conversion and then communicate between them with I2C or SPI or something similar. | ||
| |
| | (permalink) |
| So to have I: ORG 0X3FFF MAIN: | |
| |
| | (permalink) |
| Well the thing to reiterate is that with the exception of the few External Memory Bus parts, external memory cannot hold program data. Well it can hold slow "interpreted code", where the program memory contains an interpreter and the external data is pseudoinstructions like BASIC Stamp data. This is very slow. Technically program data can be read from any source and burned into onboard program memory to be run like any other program except that it's slow, it's a sensitive process, and the part can only sustain rewrites a limited number of times before wearing out. So, basically, the answer is "no", you can't do this with a PIC unless you've got that External Memory Bus. In truth people rarely need to do this anyways.
__________________ I thought what I'd do was I'd pretend I was one of those deaf-mutes. | |
| |
| | (permalink) | |
| Quote:
You don't need- or even want- floating point ops for this. They're incredibly slow and floating point accuracy is sometimes difficult to predict.
__________________ I thought what I'd do was I'd pretend I was one of those deaf-mutes. | ||
| |
| | (permalink) | |||
| Quote:
Quote:
Quote:
Last edited by David James; 22nd September 2007 at 05:18 PM. | ||||
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Title | Starter | Forum | Replies | Latest |
| Can i make an Intelligent Switch by using PIC 16F84A | rukshankb | Micro Controllers | 3 | 22nd September 2007 04:58 PM |
| PIC Timing | baberjaved | Micro Controllers | 10 | 21st September 2007 02:06 AM |
| Four PIC with One LCD.. | meera83 | Micro Controllers | 13 | 20th September 2007 07:40 AM |
| Parking Space Detection | dmiga | Electronic Projects Design/Ideas/Reviews | 4 | 16th June 2004 01:05 AM |
| Protect a memory space for pic877? | EYF | Micro Controllers | 1 | 12th November 2003 11:07 AM |