![]() | ![]() | ![]() |
| | |||||||
| 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) |
| I don't know what software comes with the K8048 programmer, but ideally you can write, debug and compile the code fully in mplab then just load the final hex file into your programmer software. The K8048 looks like a good introduction board because of the built-in buttons, leds etc. The only limitations with it are that it does not appear to support the newer 18F series and has no facility to use ZIF sockets to make life easier if often transfering pics between programmer and breadboards. However, you could easily upgrade later to a dedicated programmer with built-in ZIF socket (there are plenty of them on ebay). For the breadboard, I use a fairly large (7"x5") one as it gives plenty of room for circuits and a 7805 5V regulater is fitted, fed from a seperate DC supply. | |
| |
| | (permalink) |
| is there a better programmer for similar money? | |
| |
| | (permalink) |
| Hello. Actually I have the K8048 and I should warn you that it has some problems. I was using it when someday just started to bahave oddly. I though it was only mine but after a search in google I saw that it was not! http://www.google.co.uk/search?q=k80...utf-8&oe=utf-8 There are people that suggesting hardware solutions which sometimes work. In my case it didn't and I didn't want to spend more time with this, so I looked for a new one. Also I hated that fact that it uses power supply, beacuse your PC has one anyway! Cost me about £40 in UK with a new powersupply (i think!) Anyway. I found this programmer from ebay which I liked very much. It is fully USB meaning that power and data goes through USB. No PSU. It cost me less than the other one. It arrived 2 days ago. I checked it and it was working, and the package includes everything you need. I think it is very good. What do the experts say? http://cgi.ebay.co.uk/Enhanced-K149-...QQcmdZViewItem Also if you are new to this I would suggest you try a very nice simulator. It is very very helpful to get you started. You can do simple things first and observe the results. I tried other simulators which were not so accurate some times. You can check it out here: http://www.oshonsoft.com/downloads.html | |
| |
| | (permalink) |
| that looks like a good programmer how good is the software? | |
| |
| | (permalink) |
| I am including 3 screenshots to see the menus and the features. | |
| |
| | (permalink) |
| would you recomend it over the K8048? | |
| |
| | (permalink) |
| Look. I ordered this through ebay for £26 (I think!), the guy sent is very well packed and with a serial cable, and a USB cable. I pluged it in and worked perfectly with USB. Now for deep down technical differences I dont know. But I would recommend it for sure over the other one. If somebody know some technical interesting differences I would be also glad to read them. | |
| |
| | (permalink) |
| Hey build the Inchworm ICD2 compatable. Schematics are on my site. I've got to update that old site and post the manual. Programs all 18Fxxxx and most 16Fxxxx parts. Uses MPLAB and you get a debugger too. Search these forums for inchworm.
__________________ Bill Home of the Firefly PIC Tutor Inchworm ICD2 http://www.blueroomelectronics.com | |
| |
| | (permalink) |
| only the home page of your site is active and to be honest usb support is very good for me personally | |
| |
| | (permalink) | |
| Hi there, Iam new to PIC. I have just installed the MPLAB IDE and started out going by the help file in using IDE. after loading the f452tmpo.asm and 18F452.lkr , it asked me to go to Project>build all and I did it. But, I was getting the following error repeatedly. Thats why Iam unable to move ahead. when do we get this error and How to eliminate it? Quote:
| ||
| |
| | (permalink) |
| ragece777, The template file f452tmpo.asm calls an include file (P18f452.inc) which should have the old "__config" commands for setting the configuration bits commented out. eg. ;Program Configuration Register 1H ; __CONFIG _CONFIG1H, _OSCS_OFF_1H & _RCIO_OSC_1H The new format is to use config commands instead: eg. ; Power-up Timer: CONFIG PWRT = ON ;Enabled ; Watchdog Timer: CONFIG WDT = OFF ;Disabled etc. The P18f452.inc file mentions this and shows what settings are available - but does not actually have them setup for you, so you need to set them using the "config" commands. I have found it is easier to put them all into a seperate file - eg. "config1.inc" and call that file from your program, that way you can easily make different configs for each new project. | |
| |
| | (permalink) |
| You will also want a +5v voltage reg and the appropriate caps, and an xtal with the appropriate stability caps. You will want a programming header cable so you can program the chip on the board (ICP). In fact it helps to have several. I have one for plugging into a header and one terminated in individual, labelled pins so I can plug the wires onto the protoboard. I strongly recommend an ICD2 programmer if you're buying a new one! http://www.sparkfun.com/commerce/pro...?products_id=5 That's top of the line, and will support any PIC out there and should be able to support any future PIC. ICD is nice. You can stop the processor and read out all the variables and config registers. More than twice as much, but it's a far better deal. Buy a couple of extra ICD cables with it.
__________________ I thought what I'd do was I'd pretend I was one of those deaf-mutes. | |
| |
| | (permalink) |
| after doing a bit more reasearch I've got a few more question, to do any arithmatic to a mumber you first have to put it tn the w register? data can be stored in the general purpose regester? how do you stor 10 bit mumbers such as those generated by the 16f877 adc inputs? is it possible to display a number grater than 8 bits by using pins of two ports? can the adc input of 16f877 be changed from 10 bit to 8 bit? | |
| |
| | (permalink) |
| Hi there, The W register is just the working register you don't need to move any value of the register you want to manipulate into the W register first. Any number of value up to 255 (FF) can be stored in any of the general purpose registers. If you want to store a larger number you will have to use multiple registers. As for the A/D results yes you can change the reading from 10bit to 8bit this is setup in one of the A/D control registers. For the output of 10bits you would have to do this in software as I don't think there is any feature on the PIC's to do this in any other way at the moment. Hope this helps Regards Pete | |
| |
| | (permalink) | |
| Quote:
By placing the result with the MSB into the MSB of the ADRESULT High register, that register "effectively" contains the higher eight bits with the LSB two bits in the ADRESULT Low register, which user can leave out if one wants only eight bit accuracy.
__________________ L.Chung | ||
| |