![]() | ![]() | ![]() |
| | |||||||
| 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) |
| Ok so I've come accross PIC's and am interested my question is have I understood things right so far and what should I do next? First the code is written in a text editor (textpad or mplab?) It is then converted into hex (mplab or another program?) Then the coed is sent to another program which outputs the data on the serial port This is then feed into the programmer hardware The PIC is now programmed Can PIC's be reprogrammed? Is it worth spending £20 on a programming board? (includes a pic, can handel 8p 14p 18p and 28p in 300mm ) what is a good first pic to tinker with? do different pic's requrie different assembler code? any good tutorials for assembler? can multiple pic's be chainded to perform more complex functions, how would they communicate? Sorry for all the questions, I've done some reaserch but want to confirm what I think. | |
| |
| | (permalink) | |||||||
| Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
| ||||||||
| |
| | (permalink) |
| any kits dor the uk that use usb? | |
| |
| | (permalink) |
| Hi there, Yes, from what you have explained that about right. 1) Write you code. 2) Assemble you code. 3) Program you PIC using the .HEX file your assembler create using you desired PIC programmer & Supported Software. As far as different PIC's are concerned there are so many on the market these days will all sorts of different features. It's all depending on what you want to do with them. Using more than one PIC for a project isn't the best way of doing things as you will probably find that there would be a PIC on the market that would be better suited for what you're doing. Communicating between two PIC's also depends on what your application requires. There are many different ways, E.g. SPI, Parallel Slave Port ect, ect. As for a good device to start withb there are a number of devices here are a few, 16F88, 16F627, 16F628, 16F877 ect ect If you want to be a bit more daring you can also try the 18F series which I have found are easier to use in some ways. It's also depends on what programming background you have if you have a C programming background then PIC C programming may be better suited to you. Hope this helps Regards Pete | |
| |
| | (permalink) |
| programming experience so far has been mainly javascript and HTML | |
| |
| | (permalink) |
| I would advise you to keep to MPASM for starting off then Regards Pete | |
| |
| | (permalink) | |
| Quote:
As suggested, start with assembler and MPASMWIN. | ||
| |
| | (permalink) |
| what is the difference between PIC16F628-04/P and PIC16F627-04/P one is more expensive, why? | |
| |
| | (permalink) |
| The 627 has 1K of program memory, the 628 has 2K. That is the only difference I see. | |
| |
| | (permalink) |
| would it be possible using a pic to have it count in binary up and down by increments of say +/-4 and +/-1 between the values of 0 and 40 depending on which one of four buttons is pressed? | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) |
| If you have a value in the w register and power down the pic, when the pic is powered up again will the pic be able to reuse the value stored? can more than one number be stored in the w register? | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) | |
| Quote:
Generally you wouldn't want W to hold anything anyway, it's the only working register you've got!. If you want to restore data?, most PIC's have a small data EEPROM area where you can store permanent data in non-voltatile memory. | ||
| |
| | (permalink) |
| ok, thanks for the help, I'll get K8048 PIC Microcontroller Programmer Kit for £20 PIC16F628 led's ressistors capacitors and a breadboard I'll use the compiler and programmer that come with the kit and write the assembler code in mplab for the simulator, once happy I'll compile the code with the program that came with the k8048 kit any improvements I should make on that list? | |
| |