¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

pickit2 questions


 

I just built an ATU-100 and it powered up fine.? I wound the transformer for 5:1 to use it for QRP.
?
I am struggling to edit the EEPROM settings with a pickit2.? I am using pickitminus software (the only software that could see the pickit2).
When I read from the ATU I get all zeroes in both the Program Memory and EEPROM Data sections.? If I edit and write to the ATU it appears to work, but when I reread from the ATU it is still all zeroes.
?
Do I need to do something with the software to get the pickit2 to read/write properly?? Would I be better off with a pickit3?
?
Thanks.
?
Mike, KL7MJ


 

Hi Mike,
Most of the ATU-100's are shipped with the protection bits set, so you can¡¯t read or write to the EEPROM.
If you want to modify the EEPROM values, you will need to reprogram the PIC. There are several threads that cover this.
Example: /g/ATU100/message/2111
?
The hex file and User Manual are available from the GitHub site.

In brief, the steps I did using a PICkit were as follows.
Import the reference GitHub hex file.
Turn off the protection settings in the tools tab.
? Enable Code Protect. Set to off.
? Enable Data Protect. Set to off.
Write the image to the PIC. This will write the program and data values.
Read back the PIC and the program and data values should be shown.
?
I had to update a few of the EEPROM address (cell) values, since the defaults were not set up for an OLED display.
Addr 0x00 - Changed from 4E to 78 (SH1106 I2C address)
Addr 0x01 - Changed from 01 to 05 (0.96 Inch OLED inverted)
Addr 0x07 - Changed from 01 to 00 (Offset down = 0)
Addr 0x08 - Changed from 02 to 00 (Offset from left = 0)
After updating the values, WRITE back to the PIC.
Read back the values and check they are as expected.
?
Other EEPROM values can be changed as required (refer to the User Manual).
Addr 0x05 - Minimum power. Default value 05 (5W). Change to 01 for 1W.? ?
Addr 0x31 - Tandem match turns ratio. Default value 10 (10:1). Change to 05 for 5:1 ratio.
?
I hope the information helps.
73, Dave


 

I understand your frustration.? Went through the same myself.? Got everything working in the end and before I forgot what I did I did a post on the forum with the steps I took.
?
Post number is 2111.? Hope that proves useful?


 

Thanks for the help, I¡¯m making progress. I can write and read back from the ATU.
The EEPROM data looks good, but the Program Memory section is filled with F¡¯s.
When I apply power nothing happens - no display and no relay chatter. Have I messed up the pic¡¯s program memory?
?
73,
Mike, KL7MJ?


 

Hi Mike,
Did you change both the code protect and data protect to "off" before programming.
I recall some people saying that you have to do an ERASE before programming if you change the protect options, but I don't think I had to do that.
73, Dave


 

Dave,
I turned off both protects before writing. I also did a read before importing/writing. That read came back with F¡¯s for both regions.?

73,
Mike, KL7MJ?


 

Hi Mike,
It¡¯s a couple of years since I last programmed my ATU-100.
Does the device show as expected when connected to the programmer?
I have attached a screenshot when I was programming the PIC.
?
?
Are all connections okay between the programmer and ATU-100 connector?
?
?
Are you powering the board from the programmer or via the ATU-100 power input?
?
If you are reading back 0xFF in all locations, it seems like the device has been erased, but it is not being programmed.
73, Dave


 

Dave -
Thanks for the pictures.? I used external power the first time I tried (and failed) to program the ATU, but just used the programmer's power when I was able to write to the ATU.
I may have been using an incomplete hex file.? I'll try again tomorrow and hopefully it'll work!
?
73,
Mike, KL7MJ
?


 

Hi Mike,
Okay, that sounds good.
The current hex file should be ¡°atu_100_fw_EXT_32.hex¡±.
Remember, to get the OLED display to work, the EEPROM locations previously provided will need to be updated.
I hope all goes well.
73, Dave