theworm Posted January 13, 2008 Report Share Posted January 13, 2008 Hi, I can have access on a pickit 2, but I don't understand if I can program the pic on the core board!Is it possible? What are the pins on the core board?Thank's Quote Link to comment Share on other sites More sharing options...
TK. Posted January 13, 2008 Report Share Posted January 13, 2008 It should be described in the manuals which are comming with the debugging tool. But so far I know, PICkit get use of the low-voltage programming mode, accordingly the RB5 pin cannot be accessed by the firmware anymore - you won't be able to use a LCD.I'm sure that there are many people here who could burn and test the PIC for you. Where are you living?Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
theworm Posted January 14, 2008 Author Report Share Posted January 14, 2008 But I don't understand very well what you are saying.Why I won't be able to use a LCD? My english is poor...so I have difficult to understand...sorry..I want to burn the pic on the core module, and connect the other modules after....mm...or is it my elettronic kwonledge very poor?!.....I live in Italy, near Venice.I'll try many ways, and if don't work....I'll ask someone to burn my pics for me!!!Thank's a lot!! Quote Link to comment Share on other sites More sharing options...
TK. Posted January 14, 2008 Report Share Posted January 14, 2008 It was clear to me, that you probably won't understand the technical details, therefore my answer is "it won't work"There are many MIDIbox users from italy, you could ask in the italy section of the forum for help-> http://www.midibox.org/forum/index.php/board,20.0.htmlBest Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
JMS Posted January 22, 2009 Report Share Posted January 22, 2009 pickit2 confirmed working with my midiboxen pics... by me, earlier today... EDIT(EDIT): the pic was burnt in HVP mode on a DIY icsp adapter with the pic out of the midibox core...LCD works... i've got a ready message waiting for me to pick an app to upload from mios.i burnt the bootloader with the pickit2, stuck the pic in the core and plugged it into the output of my radium 49 usb/midi keyboard and sent the mios blindly with no midi input from the core. i did crank up the delay a few ms though just to be safe.picture of my schematic for the DIY icsp programming adapter is attached below. it uses an ic socket, a 6 pin header and 5 short lengths of stripped out cat5 cable... the schematic would be looking at the board from the bottom (single sided etched pcb) (short the jumper on pin 38 to make it work right)EDIT: scale the layout so the pins are 0.100" apart if you are going to etch it! Quote Link to comment Share on other sites More sharing options...
stryd_one Posted January 23, 2009 Report Share Posted January 23, 2009 LVP mode is no good, you need to use HVP mode. LVP makes one of the pins (which we need) unavailable. What's more, running apps could brick it. Quote Link to comment Share on other sites More sharing options...
JMS Posted January 23, 2009 Report Share Posted January 23, 2009 once the bootloader code is burnt on the chip.. it disables the pin 38 for lvp use via a config bit.unless i am completely missing something here... this process works.asking because i am curious, not to be rude... how could it brick a chip? Quote Link to comment Share on other sites More sharing options...
stryd_one Posted January 23, 2009 Report Share Posted January 23, 2009 Maybe something has changed... If you search (put 'LVP HVP' (sans quotes) in the box and select 'find any'), you'll find plenty of examples where it doesn't work. I won't quote myself (doesn't serve much purpose hehe), so here's a quote from TK:this pin is only important to select the correct programming mode on a "virgin" or erased flash. Once the configuration data has been uploaded, the LVP flag is disabled and you don't have to take care about it anymore.Another:Please keep in mind that the LVP mode won't workDetails from smash:No....It sounds like your PICs were programmed using low voltage programming mode, when high voltage mode is required. (LVP vs. HVP) if you are reading the datasheets. Are you using a JDM? If so you need a pulldown resistor connected to RB5 to invoke HVP mode. (See http://www.avishowtech.com/mbhp/mbhp_jdmR2.html under "Design Modifications:")Burning the bootloader in LVP mode allocates port pins to serial ISP that MIOS needs for other things, notably LCD display pins.Dejavu:Re: the beginnings of my very own midibox! :DThe possible brick-age could come from the LVP programming being active, and the pin connected. In bizarre circumstances the LCD could put the PIC in programming mode... Course, the config should prevent that. Quote Link to comment Share on other sites More sharing options...
JMS Posted January 23, 2009 Report Share Posted January 23, 2009 Maybe something has changed... If you search (put 'LVP HVP' (sans quotes) in the box and select 'find any'), you'll find plenty of examples where it doesn't work.Me being (sorta) new to the whole pic programming thing... i get confused easy with all the terminology. seems as though my programmer will do either mode and the pic i am using was programmed in HVP with the adapter i made as long as the jumper in my schematic above is connected.stryd_one, thanks for pointing out my mistake in the post.short story, you can use a pickit 2 and my adapter to program a pic for midibox. Quote Link to comment Share on other sites More sharing options...
stryd_one Posted January 23, 2009 Report Share Posted January 23, 2009 seems as though my programmer will do either mode and the pic i am using was programmed in HVP with the adapter i made as long as the jumper in my schematic above is connected.<cartman>sweeeeet. Quote Link to comment Share on other sites More sharing options...
JMS Posted January 25, 2009 Report Share Posted January 25, 2009 I started this wiki page, if anyone has any edits, additions or better info feel free to insert it! This process worked for me, so it should work for others. For now it's under the tools section, wasn't sure where it should be.. but I think it should at least be there somewhere!Pickit2 - Programming the core bootloader with a pickit2.WIKI LINK: http://www.midibox.org/dokuwiki/doku.php?id=pickit2 Quote Link to comment Share on other sites More sharing options...
stryd_one Posted January 25, 2009 Report Share Posted January 25, 2009 Doco good! Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.