![]() |
![]() |
![]() |
|
|
|||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
I was looking online for simple PIC Projects, and I found this http://www.talkingelectronics.com/pr...n/SimonP3.html. I was wondering how would I program the chip? I saw the asm code, but any tips on how I would go about doing that? Would I just save as a asm file and import to chip (using Inchworm+)
|
|
|
|
|
|
|
(permalink) |
|
You need to compile the asm code into a hex file which then gets loaded onto the pic. You can use MPLab to do this.
Update: Why not just take the .hex file from the site? |
|
|
|
|
|
|
(permalink) |
|
Yes I saw that but would I save it as a .hex file and import to chip?
|
|
|
|
|
|
|
(permalink) |
|
This is what I got when I programmed it. I trust it will work?
Code:
MPLAB ICD 2 Ready Programming Target... ...Validating configuration fields ICDWarn0033: MPLAB ICD 2 does not support programming this device if both the internal oscillator and internal MCLR are selected. You may continue programming, but you are encouraged to cancel, reconfigure your device, and try again. ...Erasing Part ...Programming Program Memory (0x0 - 0x28F) Verifying... ...Program Memory ...Verify Succeeded Programming Configuration Bits .. Config Memory Verifying configuration memory... ...Verify Succeeded ...Programming succeeded 03-Feb-2008, 16:14:12 MPLAB ICD 2 Ready |
|
|
|
|
|
|
(permalink) |
|
You should heed that warning, you may not be able to reprogram the PIC if you don't.
As long as it's the exact same PIC and the same target schematic it should work fine. PS I looked at the schematic, and there was no need to force MCLR_OFF as he's tied MCLR to VDD. PPS a 4.5V (3xAA) supply would be much easier to build than his switching design. ![]() Last edited by blueroomelectronics; 3rd February 2008 at 09:32 PM. |
|
|
|
|
|
|
(permalink) |
|
I erased the PIC and programmed it, so I guess it works?
|
|
|
|
|
|
|
(permalink) |
|
Ok thanks hooray.
|
|
|
|
|
|
|
(permalink) |
|
Before I build this thing, any important things to say?
what about the stuff in red? Should I build that too? Does the code look ok? Well I will let you know here in one moment how it turned out... |
|
|
|
|
|
|
(permalink) |
|
Actually I don't Know if I programmed it correctly. I copied the hex file and saved it as a hex file, but it still says it's a hex.txt file. Can you turn it into a hex so I don't kill the pic with random stuff?
|
|
|
|
|
|
|
(permalink) |
|
Change
__CONFIG 3F18h to __CONFIG 3F38h That should get rid of the warning. |
|
|
|
|
|
|
(permalink) |
|
I cannot get the asm file to work. I am getting 318 Errors when I cut and paste the code into MPLAB. How do I get it working. SKYPE?
|
|
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) |
|
ok, I put the hex into MPLAB and saved it as a hex file. I then programmed the chip and I am hoping it will work.
|
|
|
|
|
|
|
(permalink) |
|
ok here is what my screen looks like. Does everything look correct? I saved it as a hex file and It should work. I imported the hex file and pressed program. This is where I am at right now. I AM NOT USING THE ASM SO DON'T BOTHER WITH THAT.
|
|
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Latest |
| finshed testing 8x16 dot matrix game | danny009 | Electronic Projects Design/Ideas/Reviews | 14 | 8th February 2008 09:30 AM |
| Bio-med game interface. | teckjunkie | Electronic Projects Design/Ideas/Reviews | 7 | 29th June 2007 01:36 PM |
| how can i connect a game buzzer to a computer??? | eleanor | General Electronics Chat | 4 | 18th October 2006 07:37 PM |
| An pong game whithout an single semiconductor or vacum tube. | Someone Electro | Chit-Chat | 2 | 10th August 2005 08:23 AM |
| Help me on basketball's game clock and shot clock! | syaw_007 | Electronic Projects Design/Ideas/Reviews | 1 | 6th September 2004 09:50 PM |