Hi Wouter, I succesfully wrote a 18F programmer (that one I sent you). Your command sequence looks OK, but remember: after the last write command (1111) you need to send a NOP command with the following characteristics: it must hold down the SDATA line and the SCLK line HIGH for at least the P9 time. In your command sequence I didn't found such final sequence ... Good luck Ps.: I'm in contact with Bonny Gjizen (IC-PROG) and I sent him my program too. He could succesfully program the 18F routines and IC-PROG can now read/write the new 18F2xx and 18F4xx devices. If you need anything, please e-mail me. ----- Original Message ----- From: "Wouter van Ooijen" To: Sent: Friday, August 16, 2002 11:47 AM Subject: [PIC]: 18f programmer problems > I have a problem developing an 18f programmer. I can do an erase, read > and write the eeprom, read the chip's ID, read code, but *not* write > code. I (try to) use single-pane writing. Can anyone see a problem in > the sequence below? > > Wouter > > -- set single pane > target_send_20( 0b_0000, 0x0E, 0x3C ) > target_send_20( 0b_0000, 0x6E, 0xF8 ) > target_send_20( 0b_0000, 0x0E, 0x00 ) > target_send_20( 0b_0000, 0x6E, 0xF7 ) > target_send_20( 0b_0000, 0x0E, 0x06 ) > target_send_20( 0b_0000, 0x6E, 0xF6 ) > target_send_20( 0b_1100, 0x00, 0x00 ) > > -- select flash > target_send_20( 0b_0000, 0x8E, 0xA6 ) > target_send_20( 0b_0000, 0x9C, 0xA6 ) > > -- set address > target_send_20( 0b_0000, 0x0E, 0x00 ) > target_send_20( 0b_0000, 0x6E, 0xF8 ) > target_send_20( 0b_0000, 0x0E, 0x00 ) > target_send_20( 0b_0000, 0x6E, 0xF7 ) > target_send_20( 0b_0000, 0x0E, 0x00 ) > target_send_20( 0b_0000, 0x6E, 0xF6 ) > > -- load data > target_send_20( 0b_1101, 0x11, 0x22 ) > target_send_20( 0b_1101, 0x33, 0x44 ) > target_send_20( 0b_1101, 0x55, 0x77 ) > target_send_20( 0b_1111, 0x66, 0x88 ) > > wait_100us( 12 ) > > -- > 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