Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 8th September 2006, 11:23 AM   (permalink)
Default

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.
picasm is offline  
Old 8th September 2006, 02:33 PM   (permalink)
Default

is there a better programmer for similar money?
user1453 is offline  
Old 8th September 2006, 05:06 PM   (permalink)
Default

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
demestav is offline  
Old 8th September 2006, 06:25 PM   (permalink)
Default

that looks like a good programmer how good is the software?
user1453 is offline  
Old 8th September 2006, 07:05 PM   (permalink)
Default

I am including 3 screenshots to see the menus and the features.
Attached Images
File Type: jpg prog1.jpg (118.2 KB, 14 views)
File Type: jpg prog2.jpg (120.0 KB, 5 views)
File Type: jpg prog3.jpg (120.3 KB, 6 views)
demestav is offline  
Old 9th September 2006, 12:05 AM   (permalink)
Default

would you recomend it over the K8048?
user1453 is offline  
Old 9th September 2006, 12:56 AM   (permalink)
Default

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.
demestav is offline  
Old 9th September 2006, 01:47 AM   (permalink)
Default

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
William At MyBlueRoom is offline  
Old 9th September 2006, 07:52 AM   (permalink)
Default

only the home page of your site is active

and to be honest usb support is very good for me personally
user1453 is offline  
Old 12th September 2006, 07:54 AM   (permalink)
Default Query

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:
Clean: Deleting intermediary and output files.
Clean: Deleted file "F:\Raghav\f452tmpo.o".
Clean: Deleted file "F:\Raghav\f452tmpo.ERR".
Clean: Deleted file "f452tmpo.lst".
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p18F452 "f452tmpo.asm" /l"f452tmpo.lst" /e"f452tmpo.err" /o"f452tmpo.o"
Warning[230] F:\RAGHAV\F452TMPO.ASM 46 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
Warning[230] F:\RAGHAV\F452TMPO.ASM 47 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
Warning[230] F:\RAGHAV\F452TMPO.ASM 48 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
Warning[230] F:\RAGHAV\F452TMPO.ASM 49 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
Warning[230] F:\RAGHAV\F452TMPO.ASM 50 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
Warning[230] F:\RAGHAV\F452TMPO.ASM 51 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
Warning[230] F:\RAGHAV\F452TMPO.ASM 52 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
Warning[230] F:\RAGHAV\F452TMPO.ASM 53 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
Warning[230] F:\RAGHAV\F452TMPO.ASM 54 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
Warning[230] F:\RAGHAV\F452TMPO.ASM 55 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
Warning[230] F:\RAGHAV\F452TMPO.ASM 56 : __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPLink.exe" "10f200.lkr" "F:\Raghav\f452tmpo.o" /o"Newbee.cof" /M"Newbee.map"
MPLINK 3.94, Linker
Copyright (c) 2005 Microchip Technology Inc.
Error - section '.config' can not fit the absolute section. Section '.config' start=0x00300000, length=0x0000000e
Errors : 1

BUILD FAILED: Tue Sep 12 12:18:19 2006
Thanx in advance.
ragece777 is offline  
Old 12th September 2006, 01:07 PM   (permalink)
Default

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.
picasm is offline  
Old 12th September 2006, 07:15 PM   (permalink)
Default

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.
Oznog is offline  
Old 16th September 2006, 06:02 PM   (permalink)
Default

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?
user1453 is offline  
Old 16th September 2006, 06:31 PM   (permalink)
Default Re: Questions

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
Micro82 is offline  
Old 17th September 2006, 10:49 AM   (permalink)
Default

Quote:
Originally Posted by Micro82
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.
The word "change" is misleading. The A/D result is always 10-bit and user has no control to ask the A/D converter to perform 8-bit conversion. However, user has a choice of how to place the 10 bit result into two 8-bit registers.

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
eblc1388 is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 10:08 PM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker