Exact match. Not showing close matches.
PICList
Thread
'[PIC]: 18f programmer problems'
2002\08\16@104853
by
Wouter van Ooijen
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
2002\08\16@114456
by
=?iso-8859-1?Q?F=E1bio_Pereira?=
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 removed}
2002\08\16@124326
by
Wouter van Ooijen
> 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.
Thanks, that might be the point that I was missing, I will try it this
evening or tomorrow!
Did you put up a web page about your programmer?
Wouter van Ooijen
-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products
--
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
2002\08\16@150400
by
Wouter van Ooijen
> must hold down the SDATA line and the SCLK line HIGH for at
That was indeed the missing link. Seems to be working now, apart from
swapped bytes and other small details.
thanks!
Wouter van Ooijen
-- -------------------------------------------
Van Ooijen Technische Informatica: http://www.voti.nl
consultancy, development, PICmicro products
--
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
More... (looser matching)
- Last day of these posts
- In 2002
, 2003 only
- Today
- New search...