I change the RB7 pin on the rising edge, and hold it while it transitions to the lowest edge. This ensures that it gets latched on the lowest edge. And yes, I am outputting Lsb first. Also, I raise MCLR from 0 -> 12V via a switch on my PSU, so that seems to be fast enough, doesn't it? And I will try taking a look at your code for the algorithm. Thank you Jai On Sun, Jul 21, 2002 at 07:30:25PM +0200, wouter van ooijen & floortje hanneman wrote: > Are you outputting in the correct order (lowest bit first) and changing on > the correct clock (I thing the PIC latches on falling), and did you put the > PIC in program mode (MCLR rise fast enough). > > Wouter van Ooijen > -- > Van Ooijen Technische Informatica: http://www.voti.nl > Jal compiler, Wisp programmer, WLoader bootloader, PICs kopen > > > ----- Original Message ----- > From: Jai Dhar > To: > Sent: Sunday, July 21, 2002 11:45 PM > Subject: [PIC]: > > > > HI, > > > > I'm trying to code and make my own pic programmer for a 16f84. As a very > simple starting point, I thought I would just try and write any command and > read it back to verify it. So I follow this procedure: > > > > output 6 bits of 0x2 - 00 0010 (load program data) > > output a start bit - 0 > > output 14 bits of any command > > output a stop bit > > output 6 bits of 0x8 - 00 1000 (cycle program command) > > output 6 bits of 0x4 - 00 0010 (read program data command) > > > > After I issue the last command, I cycle the clock 16 times and monitor RB7 > for voltage changes, and I do'nt get anything. I know I'm sending/clocking > RB6 and RB7 correctly because I have led's hooked up. What am I doing wrong? > > > > Thank you > > > > -- > > http://www.piclist.com hint: PICList Posts must start with ONE topic: > > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads > > > > > > > > -- > http://www.piclist.com hint: The list server can filter out subtopics > (like ads or off topics) for you. See http://www.piclist.com/#topics > -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics