Propeller chip P8X32A-D40 without additional hardware. Where to start from?
sv3ora
Posts: 9
Hello,
This would have been probably asked before but I am a newcommer to the microcontrollers area.
I am waiting for a single 40-pin dip P8X32A-D40 to arrive soon. I do not have any development kit and I wish not to purchase one currently. The information on the website is a bit confusing for me so I would like to know some things.
1. Is there any way to program the chip (ICSP?) without using any development board or USB?
I am thinking like connecting the chip to an available COM port and some kind of homemade ICSP programmer for it. Any thoughts about a siotable programmer to build?
2. Since I have a C and C++ PC programming experience (not embedded) I would like to try c++ better.
Is simple IDE the appropriate suite to download to my computer?
3. In simple IDE I do not see a way to choose the appropriate COM port?
Thank you very much
This would have been probably asked before but I am a newcommer to the microcontrollers area.
I am waiting for a single 40-pin dip P8X32A-D40 to arrive soon. I do not have any development kit and I wish not to purchase one currently. The information on the website is a bit confusing for me so I would like to know some things.
1. Is there any way to program the chip (ICSP?) without using any development board or USB?
I am thinking like connecting the chip to an available COM port and some kind of homemade ICSP programmer for it. Any thoughts about a siotable programmer to build?
2. Since I have a C and C++ PC programming experience (not embedded) I would like to try c++ better.
Is simple IDE the appropriate suite to download to my computer?
3. In simple IDE I do not see a way to choose the appropriate COM port?
Thank you very much
Comments
Propeller is programmed via serial (COM) ports. There is no ICSP. However, DTR is typically used to reset the board before sending data. Please look at this schematic. http://forums.parallax.com/attachment.php?attachmentid=41503&d=1146622912 (Can't find the more recent one on the parallax site).
Yes. Please avoid using std:: namespace otherwise your code will immediately be too big.
Do you have COM1 or COM2 on your system? If not, you will need a PropPlug http://www.parallax.com/product/32201
What is confusing about it? The web people are always looking for ways to make it better.
-Phil
Thank you very much.
That is even better than I thought!
Yes I do have COM1. I do not know why I have not seen it before, but now COM1 appears in the top right corner. Perfect!
As a very beginner, I would expect a simple guide, explaining these things I have asked. It may be my mistake though, maybe I have not look for enough.
Oh by the way, I hate interrupts. The way the propeller handles these operations (because it is multi-core) is just perfect to my taste, just monitor for inputs using a spare core.
I really feel that it is worth it to begin learning embedded programming on this microcontroller, I am going to take my chances on it to see how it goes.
You mean that if I load the program to the micro, it can run as long as the micro power is not off. If I switch off the power, then I need to load the program again from the PC or alternativelly use an external eeprom?
A lot of beginners start with the Propeller Education Kit (PEK) rather than just a bare 40 pin chip. If you follow that link, you will find you can download the documentation for the Propeller Education Kit and with it you can build up your 40 pin dip to do whatever you want to try.
Yes, exactly!
-Phil
I will read the documents.
Best regards
All you need is power, and some decoupling capacitors and a serial connection to your PC. I used a transistor circuit to do that but I suggest a Prop Plug is a lot simpler.
A. As Phil mentioned, the EEPROM provides persistent storage for programs... so you don't have to load each and every time from the PC.
B. The crystal (@5Mhz) can allow you to not only go faster, it provides more precise timing than the internal oscillator.
BTW, you can build your own RS232 interface, if you want to do so.
It's quite fun and instructive I think. Start with almost nothing. Just the chip. Bring it up, check it out with some simple programs, flash some LEDs etc. Then add the crystal and try out some timing critical things, like servo driving. Then add the EEPROM and get a free running device for your little robot or whatever. Or add those resistors for some video action. Or tack on an SD card. And so on.
Perhaps Parallax should have a little starter kit and tutorial manual that progresses along those lines.
Any DIP-package chip to propose for this maximum size?
Use up to 4 Microchip 24LC1026 128KByte chips or equivalent (don't use 24LC1025 as it has strange addressing characteristics if i recall correctly).
The minimum size is 32KBytes, but that doesn't leave any room for non-volatile parameter storage.
Now I may get a little bit out of topic, but it is still a novice beginner question.