Coilgun Power

Microcontroller/Coilgun Ideas and Support
 
Main HomeMain Home  ­HomeHome  ­FAQFAQ  ­SearchSearch  ­MemberlistMemberlist  ­UsergroupsUsergroups  ­RegisterRegister  ­Log inLog in  
Share | 
 

 does PICkit2 work with PICflash from MikroE?

View previous topic View next topic Go down 
Goto page : Previous  1, 2
AuthorMessage
Admin
Admin


Posts: 115
Join date: 2008-03-26
Location: USA, California

PostSubject: Re: does PICkit2 work with PICflash from MikroE?   Wed May 07, 2008 2:45 pm

You may need to check the fuses. They can sometimes make the thing not work. Also check the data sheet to see if an ADC of something needs to be turned off. I am not too familiar with basic (only used it with the basic stamp and that was PBASIC). If I were you I would learn C. It is not too hard to learn and allows for inline assembly and lower level work when needed.
Justin
Back to top Go down
View user profile http://coilgunpower.com
DaveyPocket



Posts: 74
Join date: 2008-04-01

PostSubject: Still doesn't work   Thu May 08, 2008 3:00 pm

I downloaded MikroC, I compiled some code, exported the hex, and it still doesn't work. Did you use MikroC on the source code for your 3x3x3, if so, how did you get it to work? Because I'm having serious trouble getting the thing to work, I didn't get it to work once with MikroC or MikroBASIC, I'm modifying the samples, it doesn't seem to do anything. I made some from scratch, still doesn't do anything. I need some help.
Back to top Go down
View user profile
DaveyPocket



Posts: 74
Join date: 2008-04-01

PostSubject: Nevermind.   Thu May 08, 2008 5:34 pm

Please disregard the previous post, I had the clock setting on the chip set incorrectly. Had it set to 10 MHz, when my crystal is 4 MHz silent
Back to top Go down
View user profile
Admin
Admin


Posts: 115
Join date: 2008-03-26
Location: USA, California

PostSubject: Re: does PICkit2 work with PICflash from MikroE?   Thu May 08, 2008 6:28 pm

Does it work? Yes I used MikroC. If you have it set to 10MHz then the only thing different should be the delays will be to long.
Justin
Back to top Go down
View user profile http://coilgunpower.com
DaveyPocket



Posts: 74
Join date: 2008-04-01

PostSubject: Works.   Fri May 09, 2008 11:22 am

Yes it does work. I just needed to change some settings in the config. And yes, changing it to 10 MHz will make it go slower, but I also think I forgot to connect the PIC to the crystal when breadboarding. xD
Back to top Go down
View user profile
Admin
Admin


Posts: 115
Join date: 2008-03-26
Location: USA, California

PostSubject: Re: does PICkit2 work with PICflash from MikroE?   Fri May 09, 2008 2:18 pm

That would do it! With MikroC the only reason you need to tell it the speed is because using some of the built in functions like delay_ms are not real functions but they are generated by the compiler based on the speed. That is why you can not use variables with that, the delay is pre-determined for accuracy.
Justin
Back to top Go down
View user profile http://coilgunpower.com
 

does PICkit2 work with PICflash from MikroE?

View previous topic View next topic Back to top 
Page 2 of 2Goto page : Previous  1, 2

Permissions of this forum:You cannot reply to topics in this forum
Coilgun Power :: PIC Microcontrollers :: Programmers-